[2025-04-11 00:00:05] Production.INFO: next invoice date [2025-04-11 00:00:05] Production.INFO: 2025-05-11 [2025-04-11 00:00:05] Production.INFO: getdaysdiff [2025-04-11 00:00:05] Production.INFO: +30 [2025-04-11 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,30,30,'RMScheduler',2025-04-11 00:00:05,1,0,,,0) [2025-04-11 00:00:05] Production.INFO: next invoice date [2025-04-11 00:00:05] Production.INFO: 2025-05-11 [2025-04-11 00:00:05] Production.INFO: getdaysdiff [2025-04-11 00:00:05] Production.INFO: +30 [2025-04-11 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,30,30,'RMScheduler',2025-04-11 00:00:05,1,0,,,0) [2025-04-11 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:00:06 [end_date_ymd] => 2025-04-11 00:00:06 [RateCDR] => 1 ) [2025-04-11 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:00:06' and `end` < '2025-04-11 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:00:19] Production.INFO: count ==532 [2025-04-11 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-10 21:00:06 - End Time 2025-04-11 00:00:06 [2025-04-11 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880405', 'tblTempUsageDetail_20' ) start [2025-04-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880405', 'tblTempUsageDetail_20' ) end [2025-04-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880405', 'tblTempVendorCDR_20' ) start [2025-04-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880405', 'tblTempVendorCDR_20' ) end [2025-04-11 00:00:20] Production.INFO: ProcessCDR(1,14880405,1,1,2) [2025-04-11 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880405', 'tblTempUsageDetail_20' ) start [2025-04-11 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880405', 'tblTempUsageDetail_20' ) end [2025-04-11 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:00:24] Production.INFO: ==12907== Releasing lock... [2025-04-11 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-11 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:01:05 [end_date_ymd] => 2025-04-11 00:01:05 [RateCDR] => 1 ) [2025-04-11 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:01:05' and `end` < '2025-04-11 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:01:19] Production.INFO: count ==108 [2025-04-11 00:01:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:01:05 - End Time 2025-04-11 00:01:05 [2025-04-11 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880411', 'tblTempUsageDetail_20' ) start [2025-04-11 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880411', 'tblTempUsageDetail_20' ) end [2025-04-11 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880411', 'tblTempVendorCDR_20' ) start [2025-04-11 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880411', 'tblTempVendorCDR_20' ) end [2025-04-11 00:01:19] Production.INFO: ProcessCDR(1,14880411,1,1,2) [2025-04-11 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880411', 'tblTempUsageDetail_20' ) start [2025-04-11 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880411', 'tblTempUsageDetail_20' ) end [2025-04-11 00:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:01:23] Production.INFO: ==12997== Releasing lock... [2025-04-11 00:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:01:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:02:05 [end_date_ymd] => 2025-04-11 00:02:05 [RateCDR] => 1 ) [2025-04-11 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:02:05' and `end` < '2025-04-11 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:02:18] Production.INFO: count ==108 [2025-04-11 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:02:05 - End Time 2025-04-11 00:02:05 [2025-04-11 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880416', 'tblTempUsageDetail_20' ) start [2025-04-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880416', 'tblTempUsageDetail_20' ) end [2025-04-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880416', 'tblTempVendorCDR_20' ) start [2025-04-11 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880416', 'tblTempVendorCDR_20' ) end [2025-04-11 00:02:18] Production.INFO: ProcessCDR(1,14880416,1,1,2) [2025-04-11 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880416', 'tblTempUsageDetail_20' ) start [2025-04-11 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880416', 'tblTempUsageDetail_20' ) end [2025-04-11 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:02:22] Production.INFO: ==13073== Releasing lock... [2025-04-11 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:03:05 [end_date_ymd] => 2025-04-11 00:03:05 [RateCDR] => 1 ) [2025-04-11 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:03:05' and `end` < '2025-04-11 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:03:18] Production.INFO: count ==108 [2025-04-11 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:03:05 - End Time 2025-04-11 00:03:05 [2025-04-11 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880421', 'tblTempUsageDetail_20' ) start [2025-04-11 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880421', 'tblTempUsageDetail_20' ) end [2025-04-11 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880421', 'tblTempVendorCDR_20' ) start [2025-04-11 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880421', 'tblTempVendorCDR_20' ) end [2025-04-11 00:03:18] Production.INFO: ProcessCDR(1,14880421,1,1,2) [2025-04-11 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880421', 'tblTempUsageDetail_20' ) start [2025-04-11 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880421', 'tblTempUsageDetail_20' ) end [2025-04-11 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:03:22] Production.INFO: ==13148== Releasing lock... [2025-04-11 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:04:05 [end_date_ymd] => 2025-04-11 00:04:05 [RateCDR] => 1 ) [2025-04-11 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:04:05' and `end` < '2025-04-11 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:04:19] Production.INFO: count ==108 [2025-04-11 00:04:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:04:05 - End Time 2025-04-11 00:04:05 [2025-04-11 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880426', 'tblTempUsageDetail_20' ) start [2025-04-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880426', 'tblTempUsageDetail_20' ) end [2025-04-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880426', 'tblTempVendorCDR_20' ) start [2025-04-11 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880426', 'tblTempVendorCDR_20' ) end [2025-04-11 00:04:20] Production.INFO: ProcessCDR(1,14880426,1,1,2) [2025-04-11 00:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880426', 'tblTempUsageDetail_20' ) start [2025-04-11 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880426', 'tblTempUsageDetail_20' ) end [2025-04-11 00:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:04:23] Production.INFO: ==13220== Releasing lock... [2025-04-11 00:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:04:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:05:05 [end_date_ymd] => 2025-04-11 00:05:05 [RateCDR] => 1 ) [2025-04-11 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:05:05' and `end` < '2025-04-11 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:05:32] Production.INFO: count ==110 [2025-04-11 00:05:32] Production.ERROR: pbx CDR StartTime 2025-04-10 21:05:05 - End Time 2025-04-11 00:05:05 [2025-04-11 00:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880431', 'tblTempUsageDetail_20' ) start [2025-04-11 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880431', 'tblTempUsageDetail_20' ) end [2025-04-11 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880431', 'tblTempVendorCDR_20' ) start [2025-04-11 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880431', 'tblTempVendorCDR_20' ) end [2025-04-11 00:05:32] Production.INFO: ProcessCDR(1,14880431,1,1,2) [2025-04-11 00:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880431', 'tblTempUsageDetail_20' ) start [2025-04-11 00:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880431', 'tblTempUsageDetail_20' ) end [2025-04-11 00:05:35] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:05:36] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:05:36] Production.INFO: ==13289== Releasing lock... [2025-04-11 00:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:05:36] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:06:05 [end_date_ymd] => 2025-04-11 00:06:05 [RateCDR] => 1 ) [2025-04-11 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:06:05' and `end` < '2025-04-11 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:06:29] Production.INFO: count ==110 [2025-04-11 00:06:29] Production.ERROR: pbx CDR StartTime 2025-04-10 21:06:05 - End Time 2025-04-11 00:06:05 [2025-04-11 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880436', 'tblTempUsageDetail_20' ) start [2025-04-11 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880436', 'tblTempUsageDetail_20' ) end [2025-04-11 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880436', 'tblTempVendorCDR_20' ) start [2025-04-11 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880436', 'tblTempVendorCDR_20' ) end [2025-04-11 00:06:29] Production.INFO: ProcessCDR(1,14880436,1,1,2) [2025-04-11 00:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880436', 'tblTempUsageDetail_20' ) start [2025-04-11 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880436', 'tblTempUsageDetail_20' ) end [2025-04-11 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:06:32] Production.INFO: ==13365== Releasing lock... [2025-04-11 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:06:32] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:07:06 [end_date_ymd] => 2025-04-11 00:07:06 [RateCDR] => 1 ) [2025-04-11 00: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-04-10 21:07:06' and `end` < '2025-04-11 00: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-04-11 00:07:29] Production.INFO: count ==110 [2025-04-11 00:07:29] Production.ERROR: pbx CDR StartTime 2025-04-10 21:07:06 - End Time 2025-04-11 00:07:06 [2025-04-11 00:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880441', 'tblTempUsageDetail_20' ) start [2025-04-11 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880441', 'tblTempUsageDetail_20' ) end [2025-04-11 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880441', 'tblTempVendorCDR_20' ) start [2025-04-11 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880441', 'tblTempVendorCDR_20' ) end [2025-04-11 00:07:29] Production.INFO: ProcessCDR(1,14880441,1,1,2) [2025-04-11 00:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880441', 'tblTempUsageDetail_20' ) start [2025-04-11 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880441', 'tblTempUsageDetail_20' ) end [2025-04-11 00:07:33] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:07:33] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:07:33] Production.INFO: ==13440== Releasing lock... [2025-04-11 00:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:07:33] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:08:05 [end_date_ymd] => 2025-04-11 00:08:05 [RateCDR] => 1 ) [2025-04-11 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:08:05' and `end` < '2025-04-11 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:08:23] Production.INFO: count ==110 [2025-04-11 00:08:23] Production.ERROR: pbx CDR StartTime 2025-04-10 21:08:05 - End Time 2025-04-11 00:08:05 [2025-04-11 00:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880446', 'tblTempUsageDetail_20' ) start [2025-04-11 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880446', 'tblTempUsageDetail_20' ) end [2025-04-11 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880446', 'tblTempVendorCDR_20' ) start [2025-04-11 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880446', 'tblTempVendorCDR_20' ) end [2025-04-11 00:08:23] Production.INFO: ProcessCDR(1,14880446,1,1,2) [2025-04-11 00:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880446', 'tblTempUsageDetail_20' ) start [2025-04-11 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880446', 'tblTempUsageDetail_20' ) end [2025-04-11 00:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:08:27] Production.INFO: ==13510== Releasing lock... [2025-04-11 00:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:08:27] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:09:05 [end_date_ymd] => 2025-04-11 00:09:05 [RateCDR] => 1 ) [2025-04-11 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:09:05' and `end` < '2025-04-11 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:09:23] Production.INFO: count ==110 [2025-04-11 00:09:23] Production.ERROR: pbx CDR StartTime 2025-04-10 21:09:05 - End Time 2025-04-11 00:09:05 [2025-04-11 00:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880451', 'tblTempUsageDetail_20' ) start [2025-04-11 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880451', 'tblTempUsageDetail_20' ) end [2025-04-11 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880451', 'tblTempVendorCDR_20' ) start [2025-04-11 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880451', 'tblTempVendorCDR_20' ) end [2025-04-11 00:09:23] Production.INFO: ProcessCDR(1,14880451,1,1,2) [2025-04-11 00:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880451', 'tblTempUsageDetail_20' ) start [2025-04-11 00:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880451', 'tblTempUsageDetail_20' ) end [2025-04-11 00:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:09:26] Production.INFO: ==13620== Releasing lock... [2025-04-11 00:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:09:26] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:10:05 [end_date_ymd] => 2025-04-11 00:10:05 [RateCDR] => 1 ) [2025-04-11 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:10:05' and `end` < '2025-04-11 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:10:19] Production.INFO: count ==118 [2025-04-11 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:10:05 - End Time 2025-04-11 00:10:05 [2025-04-11 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880456', 'tblTempUsageDetail_20' ) start [2025-04-11 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880456', 'tblTempUsageDetail_20' ) end [2025-04-11 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880456', 'tblTempVendorCDR_20' ) start [2025-04-11 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880456', 'tblTempVendorCDR_20' ) end [2025-04-11 00:10:19] Production.INFO: ProcessCDR(1,14880456,1,1,2) [2025-04-11 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880456', 'tblTempUsageDetail_20' ) start [2025-04-11 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880456', 'tblTempUsageDetail_20' ) end [2025-04-11 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:10:22] Production.INFO: ==13692== Releasing lock... [2025-04-11 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:11:06 [end_date_ymd] => 2025-04-11 00:11:06 [RateCDR] => 1 ) [2025-04-11 00: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-04-10 21:11:06' and `end` < '2025-04-11 00: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-04-11 00:11:19] Production.INFO: count ==142 [2025-04-11 00:11:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:11:06 - End Time 2025-04-11 00:11:06 [2025-04-11 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880462', 'tblTempUsageDetail_20' ) start [2025-04-11 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880462', 'tblTempUsageDetail_20' ) end [2025-04-11 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880462', 'tblTempVendorCDR_20' ) start [2025-04-11 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880462', 'tblTempVendorCDR_20' ) end [2025-04-11 00:11:19] Production.INFO: ProcessCDR(1,14880462,1,1,2) [2025-04-11 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880462', 'tblTempUsageDetail_20' ) start [2025-04-11 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880462', 'tblTempUsageDetail_20' ) end [2025-04-11 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:11:22] Production.INFO: ==13770== Releasing lock... [2025-04-11 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:12:05 [end_date_ymd] => 2025-04-11 00:12:05 [RateCDR] => 1 ) [2025-04-11 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:12:05' and `end` < '2025-04-11 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:12:18] Production.INFO: count ==143 [2025-04-11 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:12:05 - End Time 2025-04-11 00:12:05 [2025-04-11 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880467', 'tblTempUsageDetail_20' ) start [2025-04-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880467', 'tblTempUsageDetail_20' ) end [2025-04-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880467', 'tblTempVendorCDR_20' ) start [2025-04-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880467', 'tblTempVendorCDR_20' ) end [2025-04-11 00:12:18] Production.INFO: ProcessCDR(1,14880467,1,1,2) [2025-04-11 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880467', 'tblTempUsageDetail_20' ) start [2025-04-11 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880467', 'tblTempUsageDetail_20' ) end [2025-04-11 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:12:23] Production.INFO: ==13841== Releasing lock... [2025-04-11 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:12:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:13:05 [end_date_ymd] => 2025-04-11 00:13:05 [RateCDR] => 1 ) [2025-04-11 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:13:05' and `end` < '2025-04-11 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:13:19] Production.INFO: count ==141 [2025-04-11 00:13:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:13:05 - End Time 2025-04-11 00:13:05 [2025-04-11 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880472', 'tblTempUsageDetail_20' ) start [2025-04-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880472', 'tblTempUsageDetail_20' ) end [2025-04-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880472', 'tblTempVendorCDR_20' ) start [2025-04-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880472', 'tblTempVendorCDR_20' ) end [2025-04-11 00:13:19] Production.INFO: ProcessCDR(1,14880472,1,1,2) [2025-04-11 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880472', 'tblTempUsageDetail_20' ) start [2025-04-11 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880472', 'tblTempUsageDetail_20' ) end [2025-04-11 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:13:22] Production.INFO: ==13913== Releasing lock... [2025-04-11 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:14:06 [end_date_ymd] => 2025-04-11 00:14:06 [RateCDR] => 1 ) [2025-04-11 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:14:06' and `end` < '2025-04-11 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:14:19] Production.INFO: count ==142 [2025-04-11 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:14:06 - End Time 2025-04-11 00:14:06 [2025-04-11 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880477', 'tblTempUsageDetail_20' ) start [2025-04-11 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880477', 'tblTempUsageDetail_20' ) end [2025-04-11 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880477', 'tblTempVendorCDR_20' ) start [2025-04-11 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880477', 'tblTempVendorCDR_20' ) end [2025-04-11 00:14:19] Production.INFO: ProcessCDR(1,14880477,1,1,2) [2025-04-11 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880477', 'tblTempUsageDetail_20' ) start [2025-04-11 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880477', 'tblTempUsageDetail_20' ) end [2025-04-11 00:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:14:24] Production.INFO: ==13988== Releasing lock... [2025-04-11 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:14:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:15:05 [end_date_ymd] => 2025-04-11 00:15:05 [RateCDR] => 1 ) [2025-04-11 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:15:05' and `end` < '2025-04-11 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:15:18] Production.INFO: count ==140 [2025-04-11 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:15:05 - End Time 2025-04-11 00:15:05 [2025-04-11 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880482', 'tblTempUsageDetail_20' ) start [2025-04-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880482', 'tblTempUsageDetail_20' ) end [2025-04-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880482', 'tblTempVendorCDR_20' ) start [2025-04-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880482', 'tblTempVendorCDR_20' ) end [2025-04-11 00:15:18] Production.INFO: ProcessCDR(1,14880482,1,1,2) [2025-04-11 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880482', 'tblTempUsageDetail_20' ) start [2025-04-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880482', 'tblTempUsageDetail_20' ) end [2025-04-11 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:15:21] Production.INFO: ==14060== Releasing lock... [2025-04-11 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:16:05 [end_date_ymd] => 2025-04-11 00:16:05 [RateCDR] => 1 ) [2025-04-11 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:16:05' and `end` < '2025-04-11 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:16:18] Production.INFO: count ==138 [2025-04-11 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:16:05 - End Time 2025-04-11 00:16:05 [2025-04-11 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880487', 'tblTempUsageDetail_20' ) start [2025-04-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880487', 'tblTempUsageDetail_20' ) end [2025-04-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880487', 'tblTempVendorCDR_20' ) start [2025-04-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880487', 'tblTempVendorCDR_20' ) end [2025-04-11 00:16:18] Production.INFO: ProcessCDR(1,14880487,1,1,2) [2025-04-11 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880487', 'tblTempUsageDetail_20' ) start [2025-04-11 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880487', 'tblTempUsageDetail_20' ) end [2025-04-11 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:16:22] Production.INFO: ==14133== Releasing lock... [2025-04-11 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:17:05 [end_date_ymd] => 2025-04-11 00:17:05 [RateCDR] => 1 ) [2025-04-11 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:17:05' and `end` < '2025-04-11 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:17:18] Production.INFO: count ==138 [2025-04-11 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:17:05 - End Time 2025-04-11 00:17:05 [2025-04-11 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880492', 'tblTempUsageDetail_20' ) start [2025-04-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880492', 'tblTempUsageDetail_20' ) end [2025-04-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880492', 'tblTempVendorCDR_20' ) start [2025-04-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880492', 'tblTempVendorCDR_20' ) end [2025-04-11 00:17:18] Production.INFO: ProcessCDR(1,14880492,1,1,2) [2025-04-11 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880492', 'tblTempUsageDetail_20' ) start [2025-04-11 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880492', 'tblTempUsageDetail_20' ) end [2025-04-11 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:17:22] Production.INFO: ==14209== Releasing lock... [2025-04-11 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:18:05 [end_date_ymd] => 2025-04-11 00:18:05 [RateCDR] => 1 ) [2025-04-11 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:18:05' and `end` < '2025-04-11 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:18:18] Production.INFO: count ==138 [2025-04-11 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:18:05 - End Time 2025-04-11 00:18:05 [2025-04-11 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880497', 'tblTempUsageDetail_20' ) start [2025-04-11 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880497', 'tblTempUsageDetail_20' ) end [2025-04-11 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880497', 'tblTempVendorCDR_20' ) start [2025-04-11 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880497', 'tblTempVendorCDR_20' ) end [2025-04-11 00:18:18] Production.INFO: ProcessCDR(1,14880497,1,1,2) [2025-04-11 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880497', 'tblTempUsageDetail_20' ) start [2025-04-11 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880497', 'tblTempUsageDetail_20' ) end [2025-04-11 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:18:21] Production.INFO: ==14283== Releasing lock... [2025-04-11 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:19:06 [end_date_ymd] => 2025-04-11 00:19:06 [RateCDR] => 1 ) [2025-04-11 00: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-04-10 21:19:06' and `end` < '2025-04-11 00: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-04-11 00:19:18] Production.INFO: count ==137 [2025-04-11 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:19:06 - End Time 2025-04-11 00:19:06 [2025-04-11 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880502', 'tblTempUsageDetail_20' ) start [2025-04-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880502', 'tblTempUsageDetail_20' ) end [2025-04-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880502', 'tblTempVendorCDR_20' ) start [2025-04-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880502', 'tblTempVendorCDR_20' ) end [2025-04-11 00:19:18] Production.INFO: ProcessCDR(1,14880502,1,1,2) [2025-04-11 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880502', 'tblTempUsageDetail_20' ) start [2025-04-11 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880502', 'tblTempUsageDetail_20' ) end [2025-04-11 00:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:19:24] Production.INFO: ==14359== Releasing lock... [2025-04-11 00:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:19:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:20:06 [end_date_ymd] => 2025-04-11 00:20:06 [RateCDR] => 1 ) [2025-04-11 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:20:06' and `end` < '2025-04-11 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:20:19] Production.INFO: count ==145 [2025-04-11 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:20:06 - End Time 2025-04-11 00:20:06 [2025-04-11 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880508', 'tblTempUsageDetail_20' ) start [2025-04-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880508', 'tblTempUsageDetail_20' ) end [2025-04-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880508', 'tblTempVendorCDR_20' ) start [2025-04-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880508', 'tblTempVendorCDR_20' ) end [2025-04-11 00:20:19] Production.INFO: ProcessCDR(1,14880508,1,1,2) [2025-04-11 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880508', 'tblTempUsageDetail_20' ) start [2025-04-11 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880508', 'tblTempUsageDetail_20' ) end [2025-04-11 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:20:22] Production.INFO: ==14430== Releasing lock... [2025-04-11 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:21:06 [end_date_ymd] => 2025-04-11 00:21:06 [RateCDR] => 1 ) [2025-04-11 00: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-04-10 21:21:06' and `end` < '2025-04-11 00: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-04-11 00:21:18] Production.INFO: count ==145 [2025-04-11 00:21:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:21:06 - End Time 2025-04-11 00:21:06 [2025-04-11 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880513', 'tblTempUsageDetail_20' ) start [2025-04-11 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880513', 'tblTempUsageDetail_20' ) end [2025-04-11 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880513', 'tblTempVendorCDR_20' ) start [2025-04-11 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880513', 'tblTempVendorCDR_20' ) end [2025-04-11 00:21:19] Production.INFO: ProcessCDR(1,14880513,1,1,2) [2025-04-11 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880513', 'tblTempUsageDetail_20' ) start [2025-04-11 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880513', 'tblTempUsageDetail_20' ) end [2025-04-11 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:21:22] Production.INFO: ==14505== Releasing lock... [2025-04-11 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:22:05 [end_date_ymd] => 2025-04-11 00:22:05 [RateCDR] => 1 ) [2025-04-11 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:22:05' and `end` < '2025-04-11 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:22:18] Production.INFO: count ==144 [2025-04-11 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:22:05 - End Time 2025-04-11 00:22:05 [2025-04-11 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880518', 'tblTempUsageDetail_20' ) start [2025-04-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880518', 'tblTempUsageDetail_20' ) end [2025-04-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880518', 'tblTempVendorCDR_20' ) start [2025-04-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880518', 'tblTempVendorCDR_20' ) end [2025-04-11 00:22:18] Production.INFO: ProcessCDR(1,14880518,1,1,2) [2025-04-11 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880518', 'tblTempUsageDetail_20' ) start [2025-04-11 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880518', 'tblTempUsageDetail_20' ) end [2025-04-11 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:22:22] Production.INFO: ==14574== Releasing lock... [2025-04-11 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:23:05 [end_date_ymd] => 2025-04-11 00:23:05 [RateCDR] => 1 ) [2025-04-11 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:23:05' and `end` < '2025-04-11 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:23:18] Production.INFO: count ==146 [2025-04-11 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:23:05 - End Time 2025-04-11 00:23:05 [2025-04-11 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880523', 'tblTempUsageDetail_20' ) start [2025-04-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880523', 'tblTempUsageDetail_20' ) end [2025-04-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880523', 'tblTempVendorCDR_20' ) start [2025-04-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880523', 'tblTempVendorCDR_20' ) end [2025-04-11 00:23:18] Production.INFO: ProcessCDR(1,14880523,1,1,2) [2025-04-11 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880523', 'tblTempUsageDetail_20' ) start [2025-04-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880523', 'tblTempUsageDetail_20' ) end [2025-04-11 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:23:21] Production.INFO: ==14651== Releasing lock... [2025-04-11 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:24:05 [end_date_ymd] => 2025-04-11 00:24:05 [RateCDR] => 1 ) [2025-04-11 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:24:05' and `end` < '2025-04-11 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:24:18] Production.INFO: count ==147 [2025-04-11 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:24:05 - End Time 2025-04-11 00:24:05 [2025-04-11 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880528', 'tblTempUsageDetail_20' ) start [2025-04-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880528', 'tblTempUsageDetail_20' ) end [2025-04-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880528', 'tblTempVendorCDR_20' ) start [2025-04-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880528', 'tblTempVendorCDR_20' ) end [2025-04-11 00:24:18] Production.INFO: ProcessCDR(1,14880528,1,1,2) [2025-04-11 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880528', 'tblTempUsageDetail_20' ) start [2025-04-11 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880528', 'tblTempUsageDetail_20' ) end [2025-04-11 00:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:24:23] Production.INFO: ==14765== Releasing lock... [2025-04-11 00:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:24:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:25:05 [end_date_ymd] => 2025-04-11 00:25:05 [RateCDR] => 1 ) [2025-04-11 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:25:05' and `end` < '2025-04-11 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:25:18] Production.INFO: count ==144 [2025-04-11 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:25:05 - End Time 2025-04-11 00:25:05 [2025-04-11 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880533', 'tblTempUsageDetail_20' ) start [2025-04-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880533', 'tblTempUsageDetail_20' ) end [2025-04-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880533', 'tblTempVendorCDR_20' ) start [2025-04-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880533', 'tblTempVendorCDR_20' ) end [2025-04-11 00:25:18] Production.INFO: ProcessCDR(1,14880533,1,1,2) [2025-04-11 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880533', 'tblTempUsageDetail_20' ) start [2025-04-11 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880533', 'tblTempUsageDetail_20' ) end [2025-04-11 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:25:22] Production.INFO: ==14836== Releasing lock... [2025-04-11 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:26:05 [end_date_ymd] => 2025-04-11 00:26:05 [RateCDR] => 1 ) [2025-04-11 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:26:05' and `end` < '2025-04-11 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:26:17] Production.INFO: count ==147 [2025-04-11 00:26:17] Production.ERROR: pbx CDR StartTime 2025-04-10 21:26:05 - End Time 2025-04-11 00:26:05 [2025-04-11 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880538', 'tblTempUsageDetail_20' ) start [2025-04-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880538', 'tblTempUsageDetail_20' ) end [2025-04-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880538', 'tblTempVendorCDR_20' ) start [2025-04-11 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880538', 'tblTempVendorCDR_20' ) end [2025-04-11 00:26:17] Production.INFO: ProcessCDR(1,14880538,1,1,2) [2025-04-11 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880538', 'tblTempUsageDetail_20' ) start [2025-04-11 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880538', 'tblTempUsageDetail_20' ) end [2025-04-11 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:26:22] Production.INFO: ==14908== Releasing lock... [2025-04-11 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:27:05 [end_date_ymd] => 2025-04-11 00:27:05 [RateCDR] => 1 ) [2025-04-11 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:27:05' and `end` < '2025-04-11 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:27:18] Production.INFO: count ==147 [2025-04-11 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:27:05 - End Time 2025-04-11 00:27:05 [2025-04-11 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880543', 'tblTempUsageDetail_20' ) start [2025-04-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880543', 'tblTempUsageDetail_20' ) end [2025-04-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880543', 'tblTempVendorCDR_20' ) start [2025-04-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880543', 'tblTempVendorCDR_20' ) end [2025-04-11 00:27:18] Production.INFO: ProcessCDR(1,14880543,1,1,2) [2025-04-11 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880543', 'tblTempUsageDetail_20' ) start [2025-04-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880543', 'tblTempUsageDetail_20' ) end [2025-04-11 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:27:21] Production.INFO: ==14978== Releasing lock... [2025-04-11 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:28:05 [end_date_ymd] => 2025-04-11 00:28:05 [RateCDR] => 1 ) [2025-04-11 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:28:05' and `end` < '2025-04-11 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:28:17] Production.INFO: count ==147 [2025-04-11 00:28:17] Production.ERROR: pbx CDR StartTime 2025-04-10 21:28:05 - End Time 2025-04-11 00:28:05 [2025-04-11 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880548', 'tblTempUsageDetail_20' ) start [2025-04-11 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880548', 'tblTempUsageDetail_20' ) end [2025-04-11 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880548', 'tblTempVendorCDR_20' ) start [2025-04-11 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880548', 'tblTempVendorCDR_20' ) end [2025-04-11 00:28:17] Production.INFO: ProcessCDR(1,14880548,1,1,2) [2025-04-11 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880548', 'tblTempUsageDetail_20' ) start [2025-04-11 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880548', 'tblTempUsageDetail_20' ) end [2025-04-11 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:28:21] Production.INFO: ==15049== Releasing lock... [2025-04-11 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:29:05 [end_date_ymd] => 2025-04-11 00:29:05 [RateCDR] => 1 ) [2025-04-11 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:29:05' and `end` < '2025-04-11 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:29:18] Production.INFO: count ==147 [2025-04-11 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:29:05 - End Time 2025-04-11 00:29:05 [2025-04-11 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880553', 'tblTempUsageDetail_20' ) start [2025-04-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880553', 'tblTempUsageDetail_20' ) end [2025-04-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880553', 'tblTempVendorCDR_20' ) start [2025-04-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880553', 'tblTempVendorCDR_20' ) end [2025-04-11 00:29:18] Production.INFO: ProcessCDR(1,14880553,1,1,2) [2025-04-11 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880553', 'tblTempUsageDetail_20' ) start [2025-04-11 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880553', 'tblTempUsageDetail_20' ) end [2025-04-11 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:29:21] Production.INFO: ==15120== Releasing lock... [2025-04-11 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:30:06 [end_date_ymd] => 2025-04-11 00:30:06 [RateCDR] => 1 ) [2025-04-11 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:30:06' and `end` < '2025-04-11 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:30:19] Production.INFO: count ==157 [2025-04-11 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:30:06 - End Time 2025-04-11 00:30:06 [2025-04-11 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880559', 'tblTempUsageDetail_20' ) start [2025-04-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880559', 'tblTempUsageDetail_20' ) end [2025-04-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880559', 'tblTempVendorCDR_20' ) start [2025-04-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880559', 'tblTempVendorCDR_20' ) end [2025-04-11 00:30:19] Production.INFO: ProcessCDR(1,14880559,1,1,2) [2025-04-11 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880559', 'tblTempUsageDetail_20' ) start [2025-04-11 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880559', 'tblTempUsageDetail_20' ) end [2025-04-11 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:30:22] Production.INFO: ==15197== Releasing lock... [2025-04-11 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:31:05 [end_date_ymd] => 2025-04-11 00:31:05 [RateCDR] => 1 ) [2025-04-11 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:31:05' and `end` < '2025-04-11 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:31:18] Production.INFO: count ==161 [2025-04-11 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:31:05 - End Time 2025-04-11 00:31:05 [2025-04-11 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880564', 'tblTempUsageDetail_20' ) start [2025-04-11 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880564', 'tblTempUsageDetail_20' ) end [2025-04-11 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880564', 'tblTempVendorCDR_20' ) start [2025-04-11 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880564', 'tblTempVendorCDR_20' ) end [2025-04-11 00:31:18] Production.INFO: ProcessCDR(1,14880564,1,1,2) [2025-04-11 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880564', 'tblTempUsageDetail_20' ) start [2025-04-11 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880564', 'tblTempUsageDetail_20' ) end [2025-04-11 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:31:21] Production.INFO: ==15276== Releasing lock... [2025-04-11 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:32:05 [end_date_ymd] => 2025-04-11 00:32:05 [RateCDR] => 1 ) [2025-04-11 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:32:05' and `end` < '2025-04-11 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:32:18] Production.INFO: count ==161 [2025-04-11 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:32:05 - End Time 2025-04-11 00:32:05 [2025-04-11 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880569', 'tblTempUsageDetail_20' ) start [2025-04-11 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880569', 'tblTempUsageDetail_20' ) end [2025-04-11 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880569', 'tblTempVendorCDR_20' ) start [2025-04-11 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880569', 'tblTempVendorCDR_20' ) end [2025-04-11 00:32:18] Production.INFO: ProcessCDR(1,14880569,1,1,2) [2025-04-11 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880569', 'tblTempUsageDetail_20' ) start [2025-04-11 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880569', 'tblTempUsageDetail_20' ) end [2025-04-11 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:32:22] Production.INFO: ==15347== Releasing lock... [2025-04-11 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:33:05 [end_date_ymd] => 2025-04-11 00:33:05 [RateCDR] => 1 ) [2025-04-11 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:33:05' and `end` < '2025-04-11 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:33:17] Production.INFO: count ==161 [2025-04-11 00:33:17] Production.ERROR: pbx CDR StartTime 2025-04-10 21:33:05 - End Time 2025-04-11 00:33:05 [2025-04-11 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880574', 'tblTempUsageDetail_20' ) start [2025-04-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880574', 'tblTempUsageDetail_20' ) end [2025-04-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880574', 'tblTempVendorCDR_20' ) start [2025-04-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880574', 'tblTempVendorCDR_20' ) end [2025-04-11 00:33:17] Production.INFO: ProcessCDR(1,14880574,1,1,2) [2025-04-11 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880574', 'tblTempUsageDetail_20' ) start [2025-04-11 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880574', 'tblTempUsageDetail_20' ) end [2025-04-11 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:33:21] Production.INFO: ==15418== Releasing lock... [2025-04-11 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:34:05 [end_date_ymd] => 2025-04-11 00:34:05 [RateCDR] => 1 ) [2025-04-11 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:34:05' and `end` < '2025-04-11 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:34:18] Production.INFO: count ==159 [2025-04-11 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:34:05 - End Time 2025-04-11 00:34:05 [2025-04-11 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880579', 'tblTempUsageDetail_20' ) start [2025-04-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880579', 'tblTempUsageDetail_20' ) end [2025-04-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880579', 'tblTempVendorCDR_20' ) start [2025-04-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880579', 'tblTempVendorCDR_20' ) end [2025-04-11 00:34:18] Production.INFO: ProcessCDR(1,14880579,1,1,2) [2025-04-11 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880579', 'tblTempUsageDetail_20' ) start [2025-04-11 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880579', 'tblTempUsageDetail_20' ) end [2025-04-11 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:34:22] Production.INFO: ==15493== Releasing lock... [2025-04-11 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:35:05 [end_date_ymd] => 2025-04-11 00:35:05 [RateCDR] => 1 ) [2025-04-11 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:35:05' and `end` < '2025-04-11 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:35:18] Production.INFO: count ==158 [2025-04-11 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:35:05 - End Time 2025-04-11 00:35:05 [2025-04-11 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880584', 'tblTempUsageDetail_20' ) start [2025-04-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880584', 'tblTempUsageDetail_20' ) end [2025-04-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880584', 'tblTempVendorCDR_20' ) start [2025-04-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880584', 'tblTempVendorCDR_20' ) end [2025-04-11 00:35:18] Production.INFO: ProcessCDR(1,14880584,1,1,2) [2025-04-11 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880584', 'tblTempUsageDetail_20' ) start [2025-04-11 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880584', 'tblTempUsageDetail_20' ) end [2025-04-11 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:35:21] Production.INFO: ==15564== Releasing lock... [2025-04-11 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:36:05 [end_date_ymd] => 2025-04-11 00:36:05 [RateCDR] => 1 ) [2025-04-11 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:36:05' and `end` < '2025-04-11 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:36:18] Production.INFO: count ==158 [2025-04-11 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:36:05 - End Time 2025-04-11 00:36:05 [2025-04-11 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880589', 'tblTempUsageDetail_20' ) start [2025-04-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880589', 'tblTempUsageDetail_20' ) end [2025-04-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880589', 'tblTempVendorCDR_20' ) start [2025-04-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880589', 'tblTempVendorCDR_20' ) end [2025-04-11 00:36:18] Production.INFO: ProcessCDR(1,14880589,1,1,2) [2025-04-11 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880589', 'tblTempUsageDetail_20' ) start [2025-04-11 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880589', 'tblTempUsageDetail_20' ) end [2025-04-11 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:36:21] Production.INFO: ==15636== Releasing lock... [2025-04-11 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:37:05 [end_date_ymd] => 2025-04-11 00:37:05 [RateCDR] => 1 ) [2025-04-11 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:37:05' and `end` < '2025-04-11 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:37:18] Production.INFO: count ==158 [2025-04-11 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:37:05 - End Time 2025-04-11 00:37:05 [2025-04-11 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880594', 'tblTempUsageDetail_20' ) start [2025-04-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880594', 'tblTempUsageDetail_20' ) end [2025-04-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880594', 'tblTempVendorCDR_20' ) start [2025-04-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880594', 'tblTempVendorCDR_20' ) end [2025-04-11 00:37:18] Production.INFO: ProcessCDR(1,14880594,1,1,2) [2025-04-11 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880594', 'tblTempUsageDetail_20' ) start [2025-04-11 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880594', 'tblTempUsageDetail_20' ) end [2025-04-11 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:37:21] Production.INFO: ==15706== Releasing lock... [2025-04-11 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:38:05 [end_date_ymd] => 2025-04-11 00:38:05 [RateCDR] => 1 ) [2025-04-11 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:38:05' and `end` < '2025-04-11 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:38:18] Production.INFO: count ==158 [2025-04-11 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:38:05 - End Time 2025-04-11 00:38:05 [2025-04-11 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880599', 'tblTempUsageDetail_20' ) start [2025-04-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880599', 'tblTempUsageDetail_20' ) end [2025-04-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880599', 'tblTempVendorCDR_20' ) start [2025-04-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880599', 'tblTempVendorCDR_20' ) end [2025-04-11 00:38:18] Production.INFO: ProcessCDR(1,14880599,1,1,2) [2025-04-11 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880599', 'tblTempUsageDetail_20' ) start [2025-04-11 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880599', 'tblTempUsageDetail_20' ) end [2025-04-11 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:38:22] Production.INFO: ==15775== Releasing lock... [2025-04-11 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:39:05 [end_date_ymd] => 2025-04-11 00:39:05 [RateCDR] => 1 ) [2025-04-11 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:39:05' and `end` < '2025-04-11 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:39:18] Production.INFO: count ==156 [2025-04-11 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:39:05 - End Time 2025-04-11 00:39:05 [2025-04-11 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880604', 'tblTempUsageDetail_20' ) start [2025-04-11 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880604', 'tblTempUsageDetail_20' ) end [2025-04-11 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880604', 'tblTempVendorCDR_20' ) start [2025-04-11 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880604', 'tblTempVendorCDR_20' ) end [2025-04-11 00:39:18] Production.INFO: ProcessCDR(1,14880604,1,1,2) [2025-04-11 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880604', 'tblTempUsageDetail_20' ) start [2025-04-11 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880604', 'tblTempUsageDetail_20' ) end [2025-04-11 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:39:21] Production.INFO: ==15853== Releasing lock... [2025-04-11 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:40:06 [end_date_ymd] => 2025-04-11 00:40:06 [RateCDR] => 1 ) [2025-04-11 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:40:06' and `end` < '2025-04-11 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:40:19] Production.INFO: count ==164 [2025-04-11 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:40:06 - End Time 2025-04-11 00:40:06 [2025-04-11 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880610', 'tblTempUsageDetail_20' ) start [2025-04-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880610', 'tblTempUsageDetail_20' ) end [2025-04-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880610', 'tblTempVendorCDR_20' ) start [2025-04-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880610', 'tblTempVendorCDR_20' ) end [2025-04-11 00:40:19] Production.INFO: ProcessCDR(1,14880610,1,1,2) [2025-04-11 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880610', 'tblTempUsageDetail_20' ) start [2025-04-11 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880610', 'tblTempUsageDetail_20' ) end [2025-04-11 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:40:23] Production.INFO: ==15968== Releasing lock... [2025-04-11 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:41:05 [end_date_ymd] => 2025-04-11 00:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:41:05' and `end` < '2025-04-11 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-04-11 00:41:18] Production.INFO: count ==164 [2025-04-11 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:41:05 - End Time 2025-04-11 00:41:05 [2025-04-11 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880615', 'tblTempUsageDetail_20' ) start [2025-04-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880615', 'tblTempUsageDetail_20' ) end [2025-04-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880615', 'tblTempVendorCDR_20' ) start [2025-04-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880615', 'tblTempVendorCDR_20' ) end [2025-04-11 00:41:18] Production.INFO: ProcessCDR(1,14880615,1,1,2) [2025-04-11 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880615', 'tblTempUsageDetail_20' ) start [2025-04-11 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880615', 'tblTempUsageDetail_20' ) end [2025-04-11 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:41:22] Production.INFO: ==16044== Releasing lock... [2025-04-11 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:42:05 [end_date_ymd] => 2025-04-11 00:42:05 [RateCDR] => 1 ) [2025-04-11 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:42:05' and `end` < '2025-04-11 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:42:18] Production.INFO: count ==163 [2025-04-11 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:42:05 - End Time 2025-04-11 00:42:05 [2025-04-11 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880620', 'tblTempUsageDetail_20' ) start [2025-04-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880620', 'tblTempUsageDetail_20' ) end [2025-04-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880620', 'tblTempVendorCDR_20' ) start [2025-04-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880620', 'tblTempVendorCDR_20' ) end [2025-04-11 00:42:18] Production.INFO: ProcessCDR(1,14880620,1,1,2) [2025-04-11 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880620', 'tblTempUsageDetail_20' ) start [2025-04-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880620', 'tblTempUsageDetail_20' ) end [2025-04-11 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:42:21] Production.INFO: ==16115== Releasing lock... [2025-04-11 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:43:06 [end_date_ymd] => 2025-04-11 00:43:06 [RateCDR] => 1 ) [2025-04-11 00: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-04-10 21:43:06' and `end` < '2025-04-11 00: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-04-11 00:43:18] Production.INFO: count ==163 [2025-04-11 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:43:06 - End Time 2025-04-11 00:43:06 [2025-04-11 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880625', 'tblTempUsageDetail_20' ) start [2025-04-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880625', 'tblTempUsageDetail_20' ) end [2025-04-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880625', 'tblTempVendorCDR_20' ) start [2025-04-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880625', 'tblTempVendorCDR_20' ) end [2025-04-11 00:43:18] Production.INFO: ProcessCDR(1,14880625,1,1,2) [2025-04-11 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880625', 'tblTempUsageDetail_20' ) start [2025-04-11 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880625', 'tblTempUsageDetail_20' ) end [2025-04-11 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:43:22] Production.INFO: ==16188== Releasing lock... [2025-04-11 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:44:05 [end_date_ymd] => 2025-04-11 00:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:44:05' and `end` < '2025-04-11 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-04-11 00:44:18] Production.INFO: count ==163 [2025-04-11 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:44:05 - End Time 2025-04-11 00:44:05 [2025-04-11 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880630', 'tblTempUsageDetail_20' ) start [2025-04-11 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880630', 'tblTempUsageDetail_20' ) end [2025-04-11 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880630', 'tblTempVendorCDR_20' ) start [2025-04-11 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880630', 'tblTempVendorCDR_20' ) end [2025-04-11 00:44:18] Production.INFO: ProcessCDR(1,14880630,1,1,2) [2025-04-11 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880630', 'tblTempUsageDetail_20' ) start [2025-04-11 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880630', 'tblTempUsageDetail_20' ) end [2025-04-11 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:44:22] Production.INFO: ==16264== Releasing lock... [2025-04-11 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:45:06 [end_date_ymd] => 2025-04-11 00:45:06 [RateCDR] => 1 ) [2025-04-11 00: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-04-10 21:45:06' and `end` < '2025-04-11 00: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-04-11 00:45:19] Production.INFO: count ==163 [2025-04-11 00:45:19] Production.ERROR: pbx CDR StartTime 2025-04-10 21:45:06 - End Time 2025-04-11 00:45:06 [2025-04-11 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880635', 'tblTempUsageDetail_20' ) start [2025-04-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880635', 'tblTempUsageDetail_20' ) end [2025-04-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880635', 'tblTempVendorCDR_20' ) start [2025-04-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880635', 'tblTempVendorCDR_20' ) end [2025-04-11 00:45:19] Production.INFO: ProcessCDR(1,14880635,1,1,2) [2025-04-11 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880635', 'tblTempUsageDetail_20' ) start [2025-04-11 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880635', 'tblTempUsageDetail_20' ) end [2025-04-11 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:45:22] Production.INFO: ==16338== Releasing lock... [2025-04-11 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:46:05 [end_date_ymd] => 2025-04-11 00:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:46:05' and `end` < '2025-04-11 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-04-11 00:46:17] Production.INFO: count ==163 [2025-04-11 00:46:17] Production.ERROR: pbx CDR StartTime 2025-04-10 21:46:05 - End Time 2025-04-11 00:46:05 [2025-04-11 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880640', 'tblTempUsageDetail_20' ) start [2025-04-11 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880640', 'tblTempUsageDetail_20' ) end [2025-04-11 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880640', 'tblTempVendorCDR_20' ) start [2025-04-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880640', 'tblTempVendorCDR_20' ) end [2025-04-11 00:46:18] Production.INFO: ProcessCDR(1,14880640,1,1,2) [2025-04-11 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880640', 'tblTempUsageDetail_20' ) start [2025-04-11 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880640', 'tblTempUsageDetail_20' ) end [2025-04-11 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:46:21] Production.INFO: ==16410== Releasing lock... [2025-04-11 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:47:05 [end_date_ymd] => 2025-04-11 00:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:47:05' and `end` < '2025-04-11 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-04-11 00:47:18] Production.INFO: count ==163 [2025-04-11 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:47:05 - End Time 2025-04-11 00:47:05 [2025-04-11 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880645', 'tblTempUsageDetail_20' ) start [2025-04-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880645', 'tblTempUsageDetail_20' ) end [2025-04-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880645', 'tblTempVendorCDR_20' ) start [2025-04-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880645', 'tblTempVendorCDR_20' ) end [2025-04-11 00:47:18] Production.INFO: ProcessCDR(1,14880645,1,1,2) [2025-04-11 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880645', 'tblTempUsageDetail_20' ) start [2025-04-11 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880645', 'tblTempUsageDetail_20' ) end [2025-04-11 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:47:22] Production.INFO: ==16481== Releasing lock... [2025-04-11 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:48:05 [end_date_ymd] => 2025-04-11 00:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:48:05' and `end` < '2025-04-11 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-04-11 00:48:18] Production.INFO: count ==162 [2025-04-11 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:48:05 - End Time 2025-04-11 00:48:05 [2025-04-11 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880650', 'tblTempUsageDetail_20' ) start [2025-04-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880650', 'tblTempUsageDetail_20' ) end [2025-04-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880650', 'tblTempVendorCDR_20' ) start [2025-04-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880650', 'tblTempVendorCDR_20' ) end [2025-04-11 00:48:18] Production.INFO: ProcessCDR(1,14880650,1,1,2) [2025-04-11 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880650', 'tblTempUsageDetail_20' ) start [2025-04-11 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880650', 'tblTempUsageDetail_20' ) end [2025-04-11 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:48:21] Production.INFO: ==16552== Releasing lock... [2025-04-11 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:49:05 [end_date_ymd] => 2025-04-11 00:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:49:05' and `end` < '2025-04-11 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:49:18] Production.INFO: count ==161 [2025-04-11 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:49:05 - End Time 2025-04-11 00:49:05 [2025-04-11 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880655', 'tblTempUsageDetail_20' ) start [2025-04-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880655', 'tblTempUsageDetail_20' ) end [2025-04-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880655', 'tblTempVendorCDR_20' ) start [2025-04-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880655', 'tblTempVendorCDR_20' ) end [2025-04-11 00:49:18] Production.INFO: ProcessCDR(1,14880655,1,1,2) [2025-04-11 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880655', 'tblTempUsageDetail_20' ) start [2025-04-11 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880655', 'tblTempUsageDetail_20' ) end [2025-04-11 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:49:22] Production.INFO: ==16622== Releasing lock... [2025-04-11 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:50:05 [end_date_ymd] => 2025-04-11 00:50:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:50:05' and `end` < '2025-04-11 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-04-11 00:50:18] Production.INFO: count ==161 [2025-04-11 00:50:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:50:05 - End Time 2025-04-11 00:50:05 [2025-04-11 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880661', 'tblTempUsageDetail_20' ) start [2025-04-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880661', 'tblTempUsageDetail_20' ) end [2025-04-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880661', 'tblTempVendorCDR_20' ) start [2025-04-11 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880661', 'tblTempVendorCDR_20' ) end [2025-04-11 00:50:18] Production.INFO: ProcessCDR(1,14880661,1,1,2) [2025-04-11 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880661', 'tblTempUsageDetail_20' ) start [2025-04-11 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880661', 'tblTempUsageDetail_20' ) end [2025-04-11 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:50:21] Production.INFO: ==16695== Releasing lock... [2025-04-11 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:51:06 [end_date_ymd] => 2025-04-11 00:51:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:51:06' and `end` < '2025-04-11 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-04-11 00:51:18] Production.INFO: count ==159 [2025-04-11 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:51:06 - End Time 2025-04-11 00:51:06 [2025-04-11 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880666', 'tblTempUsageDetail_20' ) start [2025-04-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880666', 'tblTempUsageDetail_20' ) end [2025-04-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880666', 'tblTempVendorCDR_20' ) start [2025-04-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880666', 'tblTempVendorCDR_20' ) end [2025-04-11 00:51:18] Production.INFO: ProcessCDR(1,14880666,1,1,2) [2025-04-11 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880666', 'tblTempUsageDetail_20' ) start [2025-04-11 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880666', 'tblTempUsageDetail_20' ) end [2025-04-11 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:51:22] Production.INFO: ==16772== Releasing lock... [2025-04-11 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:52:05 [end_date_ymd] => 2025-04-11 00:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:52:05' and `end` < '2025-04-11 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-04-11 00:52:18] Production.INFO: count ==159 [2025-04-11 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:52:05 - End Time 2025-04-11 00:52:05 [2025-04-11 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880671', 'tblTempUsageDetail_20' ) start [2025-04-11 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880671', 'tblTempUsageDetail_20' ) end [2025-04-11 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880671', 'tblTempVendorCDR_20' ) start [2025-04-11 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880671', 'tblTempVendorCDR_20' ) end [2025-04-11 00:52:18] Production.INFO: ProcessCDR(1,14880671,1,1,2) [2025-04-11 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880671', 'tblTempUsageDetail_20' ) start [2025-04-11 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880671', 'tblTempUsageDetail_20' ) end [2025-04-11 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:52:21] Production.INFO: ==16845== Releasing lock... [2025-04-11 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:53:05 [end_date_ymd] => 2025-04-11 00:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:53:05' and `end` < '2025-04-11 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-04-11 00:53:18] Production.INFO: count ==158 [2025-04-11 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:53:05 - End Time 2025-04-11 00:53:05 [2025-04-11 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880676', 'tblTempUsageDetail_20' ) start [2025-04-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880676', 'tblTempUsageDetail_20' ) end [2025-04-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880676', 'tblTempVendorCDR_20' ) start [2025-04-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880676', 'tblTempVendorCDR_20' ) end [2025-04-11 00:53:18] Production.INFO: ProcessCDR(1,14880676,1,1,2) [2025-04-11 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880676', 'tblTempUsageDetail_20' ) start [2025-04-11 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880676', 'tblTempUsageDetail_20' ) end [2025-04-11 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:53:21] Production.INFO: ==16917== Releasing lock... [2025-04-11 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:54:05 [end_date_ymd] => 2025-04-11 00:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:54:05' and `end` < '2025-04-11 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-04-11 00:54:18] Production.INFO: count ==157 [2025-04-11 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:54:05 - End Time 2025-04-11 00:54:05 [2025-04-11 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880681', 'tblTempUsageDetail_20' ) start [2025-04-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880681', 'tblTempUsageDetail_20' ) end [2025-04-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880681', 'tblTempVendorCDR_20' ) start [2025-04-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880681', 'tblTempVendorCDR_20' ) end [2025-04-11 00:54:18] Production.INFO: ProcessCDR(1,14880681,1,1,2) [2025-04-11 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880681', 'tblTempUsageDetail_20' ) start [2025-04-11 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880681', 'tblTempUsageDetail_20' ) end [2025-04-11 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:54:21] Production.INFO: ==16989== Releasing lock... [2025-04-11 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:55:05 [end_date_ymd] => 2025-04-11 00:55:05 [RateCDR] => 1 ) [2025-04-11 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:55:05' and `end` < '2025-04-11 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:55:18] Production.INFO: count ==160 [2025-04-11 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:55:05 - End Time 2025-04-11 00:55:05 [2025-04-11 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880686', 'tblTempUsageDetail_20' ) start [2025-04-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880686', 'tblTempUsageDetail_20' ) end [2025-04-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880686', 'tblTempVendorCDR_20' ) start [2025-04-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880686', 'tblTempVendorCDR_20' ) end [2025-04-11 00:55:18] Production.INFO: ProcessCDR(1,14880686,1,1,2) [2025-04-11 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880686', 'tblTempUsageDetail_20' ) start [2025-04-11 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880686', 'tblTempUsageDetail_20' ) end [2025-04-11 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:55:22] Production.INFO: ==17104== Releasing lock... [2025-04-11 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:56:04 [end_date_ymd] => 2025-04-11 00:56:04 [RateCDR] => 1 ) [2025-04-11 00:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 21:56:04' and `end` < '2025-04-11 00:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 00:56:17] Production.INFO: count ==161 [2025-04-11 00:56:17] Production.ERROR: pbx CDR StartTime 2025-04-10 21:56:04 - End Time 2025-04-11 00:56:04 [2025-04-11 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880691', 'tblTempUsageDetail_20' ) start [2025-04-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880691', 'tblTempUsageDetail_20' ) end [2025-04-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880691', 'tblTempVendorCDR_20' ) start [2025-04-11 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880691', 'tblTempVendorCDR_20' ) end [2025-04-11 00:56:17] Production.INFO: ProcessCDR(1,14880691,1,1,2) [2025-04-11 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880691', 'tblTempUsageDetail_20' ) start [2025-04-11 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880691', 'tblTempUsageDetail_20' ) end [2025-04-11 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:56:21] Production.INFO: ==17179== Releasing lock... [2025-04-11 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:57:05 [end_date_ymd] => 2025-04-11 00:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:57:05' and `end` < '2025-04-11 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-04-11 00:57:18] Production.INFO: count ==161 [2025-04-11 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:57:05 - End Time 2025-04-11 00:57:05 [2025-04-11 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880696', 'tblTempUsageDetail_20' ) start [2025-04-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880696', 'tblTempUsageDetail_20' ) end [2025-04-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880696', 'tblTempVendorCDR_20' ) start [2025-04-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880696', 'tblTempVendorCDR_20' ) end [2025-04-11 00:57:18] Production.INFO: ProcessCDR(1,14880696,1,1,2) [2025-04-11 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880696', 'tblTempUsageDetail_20' ) start [2025-04-11 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880696', 'tblTempUsageDetail_20' ) end [2025-04-11 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:57:22] Production.INFO: ==17252== Releasing lock... [2025-04-11 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:58:04 [end_date_ymd] => 2025-04-11 00:58:04 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:58:04' and `end` < '2025-04-11 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-04-11 00:58:17] Production.INFO: count ==158 [2025-04-11 00:58:17] Production.ERROR: pbx CDR StartTime 2025-04-10 21:58:04 - End Time 2025-04-11 00:58:04 [2025-04-11 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880701', 'tblTempUsageDetail_20' ) start [2025-04-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880701', 'tblTempUsageDetail_20' ) end [2025-04-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880701', 'tblTempVendorCDR_20' ) start [2025-04-11 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880701', 'tblTempVendorCDR_20' ) end [2025-04-11 00:58:17] Production.INFO: ProcessCDR(1,14880701,1,1,2) [2025-04-11 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880701', 'tblTempUsageDetail_20' ) start [2025-04-11 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880701', 'tblTempUsageDetail_20' ) end [2025-04-11 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:58:21] Production.INFO: ==17328== Releasing lock... [2025-04-11 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 21:59:05 [end_date_ymd] => 2025-04-11 00:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 21:59:05' and `end` < '2025-04-11 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-04-11 00:59:18] Production.INFO: count ==158 [2025-04-11 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 21:59:05 - End Time 2025-04-11 00:59:05 [2025-04-11 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880706', 'tblTempUsageDetail_20' ) start [2025-04-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880706', 'tblTempUsageDetail_20' ) end [2025-04-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880706', 'tblTempVendorCDR_20' ) start [2025-04-11 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880706', 'tblTempVendorCDR_20' ) end [2025-04-11 00:59:18] Production.INFO: ProcessCDR(1,14880706,1,1,2) [2025-04-11 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880706', 'tblTempUsageDetail_20' ) start [2025-04-11 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880706', 'tblTempUsageDetail_20' ) end [2025-04-11 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 00:59:22] Production.INFO: ==17398== Releasing lock... [2025-04-11 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 00:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:00:06 [end_date_ymd] => 2025-04-11 01:00:06 [RateCDR] => 1 ) [2025-04-11 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:00:06' and `end` < '2025-04-11 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:00:19] Production.INFO: count ==158 [2025-04-11 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:00:06 - End Time 2025-04-11 01:00:06 [2025-04-11 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880712', 'tblTempUsageDetail_20' ) start [2025-04-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880712', 'tblTempUsageDetail_20' ) end [2025-04-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880712', 'tblTempVendorCDR_20' ) start [2025-04-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880712', 'tblTempVendorCDR_20' ) end [2025-04-11 01:00:19] Production.INFO: ProcessCDR(1,14880712,1,1,2) [2025-04-11 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880712', 'tblTempUsageDetail_20' ) start [2025-04-11 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880712', 'tblTempUsageDetail_20' ) end [2025-04-11 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:00:22] Production.INFO: ==17472== Releasing lock... [2025-04-11 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:01:05 [end_date_ymd] => 2025-04-11 01:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:01:05' and `end` < '2025-04-11 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-04-11 01:01:18] Production.INFO: count ==158 [2025-04-11 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:01:05 - End Time 2025-04-11 01:01:05 [2025-04-11 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880717', 'tblTempUsageDetail_20' ) start [2025-04-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880717', 'tblTempUsageDetail_20' ) end [2025-04-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880717', 'tblTempVendorCDR_20' ) start [2025-04-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880717', 'tblTempVendorCDR_20' ) end [2025-04-11 01:01:18] Production.INFO: ProcessCDR(1,14880717,1,1,2) [2025-04-11 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880717', 'tblTempUsageDetail_20' ) start [2025-04-11 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880717', 'tblTempUsageDetail_20' ) end [2025-04-11 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:01:22] Production.INFO: ==17559== Releasing lock... [2025-04-11 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:02:05 [end_date_ymd] => 2025-04-11 01:02:05 [RateCDR] => 1 ) [2025-04-11 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:02:05' and `end` < '2025-04-11 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:02:18] Production.INFO: count ==158 [2025-04-11 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:02:05 - End Time 2025-04-11 01:02:05 [2025-04-11 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880722', 'tblTempUsageDetail_20' ) start [2025-04-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880722', 'tblTempUsageDetail_20' ) end [2025-04-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880722', 'tblTempVendorCDR_20' ) start [2025-04-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880722', 'tblTempVendorCDR_20' ) end [2025-04-11 01:02:18] Production.INFO: ProcessCDR(1,14880722,1,1,2) [2025-04-11 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880722', 'tblTempUsageDetail_20' ) start [2025-04-11 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880722', 'tblTempUsageDetail_20' ) end [2025-04-11 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:02:23] Production.INFO: ==17634== Releasing lock... [2025-04-11 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:02:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:03:04 [end_date_ymd] => 2025-04-11 01:03:04 [RateCDR] => 1 ) [2025-04-11 01:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:03:04' and `end` < '2025-04-11 01:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:03:17] Production.INFO: count ==158 [2025-04-11 01:03:17] Production.ERROR: pbx CDR StartTime 2025-04-10 22:03:04 - End Time 2025-04-11 01:03:04 [2025-04-11 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880727', 'tblTempUsageDetail_20' ) start [2025-04-11 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880727', 'tblTempUsageDetail_20' ) end [2025-04-11 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880727', 'tblTempVendorCDR_20' ) start [2025-04-11 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880727', 'tblTempVendorCDR_20' ) end [2025-04-11 01:03:17] Production.INFO: ProcessCDR(1,14880727,1,1,2) [2025-04-11 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880727', 'tblTempUsageDetail_20' ) start [2025-04-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880727', 'tblTempUsageDetail_20' ) end [2025-04-11 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:03:21] Production.INFO: ==17707== Releasing lock... [2025-04-11 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:04:05 [end_date_ymd] => 2025-04-11 01:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:04:05' and `end` < '2025-04-11 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-04-11 01:04:18] Production.INFO: count ==157 [2025-04-11 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:04:05 - End Time 2025-04-11 01:04:05 [2025-04-11 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880732', 'tblTempUsageDetail_20' ) start [2025-04-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880732', 'tblTempUsageDetail_20' ) end [2025-04-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880732', 'tblTempVendorCDR_20' ) start [2025-04-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880732', 'tblTempVendorCDR_20' ) end [2025-04-11 01:04:18] Production.INFO: ProcessCDR(1,14880732,1,1,2) [2025-04-11 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880732', 'tblTempUsageDetail_20' ) start [2025-04-11 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880732', 'tblTempUsageDetail_20' ) end [2025-04-11 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:04:21] Production.INFO: ==17777== Releasing lock... [2025-04-11 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:05:05 [end_date_ymd] => 2025-04-11 01:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:05:05' and `end` < '2025-04-11 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-04-11 01:05:18] Production.INFO: count ==157 [2025-04-11 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:05:05 - End Time 2025-04-11 01:05:05 [2025-04-11 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880737', 'tblTempUsageDetail_20' ) start [2025-04-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880737', 'tblTempUsageDetail_20' ) end [2025-04-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880737', 'tblTempVendorCDR_20' ) start [2025-04-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880737', 'tblTempVendorCDR_20' ) end [2025-04-11 01:05:18] Production.INFO: ProcessCDR(1,14880737,1,1,2) [2025-04-11 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880737', 'tblTempUsageDetail_20' ) start [2025-04-11 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880737', 'tblTempUsageDetail_20' ) end [2025-04-11 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:05:21] Production.INFO: ==17878== Releasing lock... [2025-04-11 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:06:05 [end_date_ymd] => 2025-04-11 01:06:05 [RateCDR] => 1 ) [2025-04-11 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:06:05' and `end` < '2025-04-11 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:06:18] Production.INFO: count ==155 [2025-04-11 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:06:05 - End Time 2025-04-11 01:06:05 [2025-04-11 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880742', 'tblTempUsageDetail_20' ) start [2025-04-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880742', 'tblTempUsageDetail_20' ) end [2025-04-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880742', 'tblTempVendorCDR_20' ) start [2025-04-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880742', 'tblTempVendorCDR_20' ) end [2025-04-11 01:06:18] Production.INFO: ProcessCDR(1,14880742,1,1,2) [2025-04-11 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880742', 'tblTempUsageDetail_20' ) start [2025-04-11 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880742', 'tblTempUsageDetail_20' ) end [2025-04-11 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:06:22] Production.INFO: ==17998== Releasing lock... [2025-04-11 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:07:05 [end_date_ymd] => 2025-04-11 01:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:07:05' and `end` < '2025-04-11 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-04-11 01:07:17] Production.INFO: count ==155 [2025-04-11 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:07:05 - End Time 2025-04-11 01:07:05 [2025-04-11 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880747', 'tblTempUsageDetail_20' ) start [2025-04-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880747', 'tblTempUsageDetail_20' ) end [2025-04-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880747', 'tblTempVendorCDR_20' ) start [2025-04-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880747', 'tblTempVendorCDR_20' ) end [2025-04-11 01:07:18] Production.INFO: ProcessCDR(1,14880747,1,1,2) [2025-04-11 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880747', 'tblTempUsageDetail_20' ) start [2025-04-11 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880747', 'tblTempUsageDetail_20' ) end [2025-04-11 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:07:21] Production.INFO: ==18076== Releasing lock... [2025-04-11 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:08:06 [end_date_ymd] => 2025-04-11 01:08:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:08:06' and `end` < '2025-04-11 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-04-11 01:08:19] Production.INFO: count ==155 [2025-04-11 01:08:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:08:06 - End Time 2025-04-11 01:08:06 [2025-04-11 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880752', 'tblTempUsageDetail_20' ) start [2025-04-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880752', 'tblTempUsageDetail_20' ) end [2025-04-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880752', 'tblTempVendorCDR_20' ) start [2025-04-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880752', 'tblTempVendorCDR_20' ) end [2025-04-11 01:08:19] Production.INFO: ProcessCDR(1,14880752,1,1,2) [2025-04-11 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880752', 'tblTempUsageDetail_20' ) start [2025-04-11 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880752', 'tblTempUsageDetail_20' ) end [2025-04-11 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:08:22] Production.INFO: ==18149== Releasing lock... [2025-04-11 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:09:05 [end_date_ymd] => 2025-04-11 01:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:09:05' and `end` < '2025-04-11 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-04-11 01:09:18] Production.INFO: count ==153 [2025-04-11 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:09:05 - End Time 2025-04-11 01:09:05 [2025-04-11 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880757', 'tblTempUsageDetail_20' ) start [2025-04-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880757', 'tblTempUsageDetail_20' ) end [2025-04-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880757', 'tblTempVendorCDR_20' ) start [2025-04-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880757', 'tblTempVendorCDR_20' ) end [2025-04-11 01:09:18] Production.INFO: ProcessCDR(1,14880757,1,1,2) [2025-04-11 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880757', 'tblTempUsageDetail_20' ) start [2025-04-11 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880757', 'tblTempUsageDetail_20' ) end [2025-04-11 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:09:21] Production.INFO: ==18219== Releasing lock... [2025-04-11 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:10:06 [end_date_ymd] => 2025-04-11 01:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:10:06' and `end` < '2025-04-11 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-04-11 01:10:19] Production.INFO: count ==147 [2025-04-11 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:10:06 - End Time 2025-04-11 01:10:06 [2025-04-11 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880763', 'tblTempUsageDetail_20' ) start [2025-04-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880763', 'tblTempUsageDetail_20' ) end [2025-04-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880763', 'tblTempVendorCDR_20' ) start [2025-04-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880763', 'tblTempVendorCDR_20' ) end [2025-04-11 01:10:19] Production.INFO: ProcessCDR(1,14880763,1,1,2) [2025-04-11 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880763', 'tblTempUsageDetail_20' ) start [2025-04-11 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880763', 'tblTempUsageDetail_20' ) end [2025-04-11 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:10:22] Production.INFO: ==18293== Releasing lock... [2025-04-11 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:11:04 [end_date_ymd] => 2025-04-11 01:11:04 [RateCDR] => 1 ) [2025-04-11 01:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:11:04' and `end` < '2025-04-11 01:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:11:17] Production.INFO: count ==146 [2025-04-11 01:11:17] Production.ERROR: pbx CDR StartTime 2025-04-10 22:11:04 - End Time 2025-04-11 01:11:04 [2025-04-11 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880768', 'tblTempUsageDetail_20' ) start [2025-04-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880768', 'tblTempUsageDetail_20' ) end [2025-04-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880768', 'tblTempVendorCDR_20' ) start [2025-04-11 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880768', 'tblTempVendorCDR_20' ) end [2025-04-11 01:11:17] Production.INFO: ProcessCDR(1,14880768,1,1,2) [2025-04-11 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880768', 'tblTempUsageDetail_20' ) start [2025-04-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880768', 'tblTempUsageDetail_20' ) end [2025-04-11 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:11:21] Production.INFO: ==18412== Releasing lock... [2025-04-11 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:11:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:12:05 [end_date_ymd] => 2025-04-11 01:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:12:05' and `end` < '2025-04-11 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-04-11 01:12:18] Production.INFO: count ==146 [2025-04-11 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:12:05 - End Time 2025-04-11 01:12:05 [2025-04-11 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880773', 'tblTempUsageDetail_20' ) start [2025-04-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880773', 'tblTempUsageDetail_20' ) end [2025-04-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880773', 'tblTempVendorCDR_20' ) start [2025-04-11 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880773', 'tblTempVendorCDR_20' ) end [2025-04-11 01:12:18] Production.INFO: ProcessCDR(1,14880773,1,1,2) [2025-04-11 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880773', 'tblTempUsageDetail_20' ) start [2025-04-11 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880773', 'tblTempUsageDetail_20' ) end [2025-04-11 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:12:21] Production.INFO: ==18493== Releasing lock... [2025-04-11 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:12:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:13:05 [end_date_ymd] => 2025-04-11 01:13:05 [RateCDR] => 1 ) [2025-04-11 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:13:05' and `end` < '2025-04-11 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:13:18] Production.INFO: count ==146 [2025-04-11 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:13:05 - End Time 2025-04-11 01:13:05 [2025-04-11 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880778', 'tblTempUsageDetail_20' ) start [2025-04-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880778', 'tblTempUsageDetail_20' ) end [2025-04-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880778', 'tblTempVendorCDR_20' ) start [2025-04-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880778', 'tblTempVendorCDR_20' ) end [2025-04-11 01:13:18] Production.INFO: ProcessCDR(1,14880778,1,1,2) [2025-04-11 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880778', 'tblTempUsageDetail_20' ) start [2025-04-11 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880778', 'tblTempUsageDetail_20' ) end [2025-04-11 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:13:22] Production.INFO: ==18568== Releasing lock... [2025-04-11 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:13:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:14:05 [end_date_ymd] => 2025-04-11 01:14:05 [RateCDR] => 1 ) [2025-04-11 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:14:05' and `end` < '2025-04-11 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:14:18] Production.INFO: count ==142 [2025-04-11 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:14:05 - End Time 2025-04-11 01:14:05 [2025-04-11 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880783', 'tblTempUsageDetail_20' ) start [2025-04-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880783', 'tblTempUsageDetail_20' ) end [2025-04-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880783', 'tblTempVendorCDR_20' ) start [2025-04-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880783', 'tblTempVendorCDR_20' ) end [2025-04-11 01:14:18] Production.INFO: ProcessCDR(1,14880783,1,1,2) [2025-04-11 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880783', 'tblTempUsageDetail_20' ) start [2025-04-11 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880783', 'tblTempUsageDetail_20' ) end [2025-04-11 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:14:21] Production.INFO: ==18643== Releasing lock... [2025-04-11 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:15:05 [end_date_ymd] => 2025-04-11 01:15:05 [RateCDR] => 1 ) [2025-04-11 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:15:05' and `end` < '2025-04-11 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:15:18] Production.INFO: count ==144 [2025-04-11 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:15:05 - End Time 2025-04-11 01:15:05 [2025-04-11 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880788', 'tblTempUsageDetail_20' ) start [2025-04-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880788', 'tblTempUsageDetail_20' ) end [2025-04-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880788', 'tblTempVendorCDR_20' ) start [2025-04-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880788', 'tblTempVendorCDR_20' ) end [2025-04-11 01:15:18] Production.INFO: ProcessCDR(1,14880788,1,1,2) [2025-04-11 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880788', 'tblTempUsageDetail_20' ) start [2025-04-11 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880788', 'tblTempUsageDetail_20' ) end [2025-04-11 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:15:22] Production.INFO: ==18714== Releasing lock... [2025-04-11 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:16:05 [end_date_ymd] => 2025-04-11 01:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:16:05' and `end` < '2025-04-11 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-04-11 01:16:18] Production.INFO: count ==144 [2025-04-11 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:16:05 - End Time 2025-04-11 01:16:05 [2025-04-11 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880793', 'tblTempUsageDetail_20' ) start [2025-04-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880793', 'tblTempUsageDetail_20' ) end [2025-04-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880793', 'tblTempVendorCDR_20' ) start [2025-04-11 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880793', 'tblTempVendorCDR_20' ) end [2025-04-11 01:16:18] Production.INFO: ProcessCDR(1,14880793,1,1,2) [2025-04-11 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880793', 'tblTempUsageDetail_20' ) start [2025-04-11 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880793', 'tblTempUsageDetail_20' ) end [2025-04-11 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:16:21] Production.INFO: ==18792== Releasing lock... [2025-04-11 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:17:05 [end_date_ymd] => 2025-04-11 01:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:17:05' and `end` < '2025-04-11 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-04-11 01:17:18] Production.INFO: count ==144 [2025-04-11 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:17:05 - End Time 2025-04-11 01:17:05 [2025-04-11 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880798', 'tblTempUsageDetail_20' ) start [2025-04-11 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880798', 'tblTempUsageDetail_20' ) end [2025-04-11 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880798', 'tblTempVendorCDR_20' ) start [2025-04-11 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880798', 'tblTempVendorCDR_20' ) end [2025-04-11 01:17:18] Production.INFO: ProcessCDR(1,14880798,1,1,2) [2025-04-11 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880798', 'tblTempUsageDetail_20' ) start [2025-04-11 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880798', 'tblTempUsageDetail_20' ) end [2025-04-11 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:17:21] Production.INFO: ==18864== Releasing lock... [2025-04-11 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:18:05 [end_date_ymd] => 2025-04-11 01:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:18:05' and `end` < '2025-04-11 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-04-11 01:18:18] Production.INFO: count ==144 [2025-04-11 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:18:05 - End Time 2025-04-11 01:18:05 [2025-04-11 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880803', 'tblTempUsageDetail_20' ) start [2025-04-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880803', 'tblTempUsageDetail_20' ) end [2025-04-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880803', 'tblTempVendorCDR_20' ) start [2025-04-11 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880803', 'tblTempVendorCDR_20' ) end [2025-04-11 01:18:18] Production.INFO: ProcessCDR(1,14880803,1,1,2) [2025-04-11 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880803', 'tblTempUsageDetail_20' ) start [2025-04-11 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880803', 'tblTempUsageDetail_20' ) end [2025-04-11 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:18:21] Production.INFO: ==18949== Releasing lock... [2025-04-11 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:19:06 [end_date_ymd] => 2025-04-11 01:19:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:19:06' and `end` < '2025-04-11 01: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-04-11 01:19:18] Production.INFO: count ==143 [2025-04-11 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:19:06 - End Time 2025-04-11 01:19:06 [2025-04-11 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880808', 'tblTempUsageDetail_20' ) start [2025-04-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880808', 'tblTempUsageDetail_20' ) end [2025-04-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880808', 'tblTempVendorCDR_20' ) start [2025-04-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880808', 'tblTempVendorCDR_20' ) end [2025-04-11 01:19:18] Production.INFO: ProcessCDR(1,14880808,1,1,2) [2025-04-11 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880808', 'tblTempUsageDetail_20' ) start [2025-04-11 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880808', 'tblTempUsageDetail_20' ) end [2025-04-11 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:19:22] Production.INFO: ==19023== Releasing lock... [2025-04-11 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:20:05 [end_date_ymd] => 2025-04-11 01:20:05 [RateCDR] => 1 ) [2025-04-11 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:20:05' and `end` < '2025-04-11 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:20:18] Production.INFO: count ==149 [2025-04-11 01:20:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:20:05 - End Time 2025-04-11 01:20:05 [2025-04-11 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880814', 'tblTempUsageDetail_20' ) start [2025-04-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880814', 'tblTempUsageDetail_20' ) end [2025-04-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880814', 'tblTempVendorCDR_20' ) start [2025-04-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880814', 'tblTempVendorCDR_20' ) end [2025-04-11 01:20:18] Production.INFO: ProcessCDR(1,14880814,1,1,2) [2025-04-11 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880814', 'tblTempUsageDetail_20' ) start [2025-04-11 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880814', 'tblTempUsageDetail_20' ) end [2025-04-11 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:20:22] Production.INFO: ==19096== Releasing lock... [2025-04-11 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:21:06 [end_date_ymd] => 2025-04-11 01:21:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:21:06' and `end` < '2025-04-11 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-04-11 01:21:18] Production.INFO: count ==151 [2025-04-11 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:21:06 - End Time 2025-04-11 01:21:06 [2025-04-11 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880819', 'tblTempUsageDetail_20' ) start [2025-04-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880819', 'tblTempUsageDetail_20' ) end [2025-04-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880819', 'tblTempVendorCDR_20' ) start [2025-04-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880819', 'tblTempVendorCDR_20' ) end [2025-04-11 01:21:18] Production.INFO: ProcessCDR(1,14880819,1,1,2) [2025-04-11 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880819', 'tblTempUsageDetail_20' ) start [2025-04-11 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880819', 'tblTempUsageDetail_20' ) end [2025-04-11 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:21:22] Production.INFO: ==19170== Releasing lock... [2025-04-11 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:22:06 [end_date_ymd] => 2025-04-11 01:22:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:22:06' and `end` < '2025-04-11 01: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-04-11 01:22:19] Production.INFO: count ==151 [2025-04-11 01:22:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:22:06 - End Time 2025-04-11 01:22:06 [2025-04-11 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880824', 'tblTempUsageDetail_20' ) start [2025-04-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880824', 'tblTempUsageDetail_20' ) end [2025-04-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880824', 'tblTempVendorCDR_20' ) start [2025-04-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880824', 'tblTempVendorCDR_20' ) end [2025-04-11 01:22:19] Production.INFO: ProcessCDR(1,14880824,1,1,2) [2025-04-11 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880824', 'tblTempUsageDetail_20' ) start [2025-04-11 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880824', 'tblTempUsageDetail_20' ) end [2025-04-11 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:22:22] Production.INFO: ==19243== Releasing lock... [2025-04-11 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:23:05 [end_date_ymd] => 2025-04-11 01:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:23:05' and `end` < '2025-04-11 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-04-11 01:23:18] Production.INFO: count ==151 [2025-04-11 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:23:05 - End Time 2025-04-11 01:23:05 [2025-04-11 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880829', 'tblTempUsageDetail_20' ) start [2025-04-11 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880829', 'tblTempUsageDetail_20' ) end [2025-04-11 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880829', 'tblTempVendorCDR_20' ) start [2025-04-11 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880829', 'tblTempVendorCDR_20' ) end [2025-04-11 01:23:18] Production.INFO: ProcessCDR(1,14880829,1,1,2) [2025-04-11 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880829', 'tblTempUsageDetail_20' ) start [2025-04-11 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880829', 'tblTempUsageDetail_20' ) end [2025-04-11 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:23:22] Production.INFO: ==19319== Releasing lock... [2025-04-11 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:24:06 [end_date_ymd] => 2025-04-11 01:24:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:24:06' and `end` < '2025-04-11 01: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-04-11 01:24:19] Production.INFO: count ==151 [2025-04-11 01:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:24:06 - End Time 2025-04-11 01:24:06 [2025-04-11 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880834', 'tblTempUsageDetail_20' ) start [2025-04-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880834', 'tblTempUsageDetail_20' ) end [2025-04-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880834', 'tblTempVendorCDR_20' ) start [2025-04-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880834', 'tblTempVendorCDR_20' ) end [2025-04-11 01:24:19] Production.INFO: ProcessCDR(1,14880834,1,1,2) [2025-04-11 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880834', 'tblTempUsageDetail_20' ) start [2025-04-11 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880834', 'tblTempUsageDetail_20' ) end [2025-04-11 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:24:22] Production.INFO: ==19393== Releasing lock... [2025-04-11 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:25:05 [end_date_ymd] => 2025-04-11 01:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:25:05' and `end` < '2025-04-11 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-04-11 01:25:18] Production.INFO: count ==151 [2025-04-11 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:25:05 - End Time 2025-04-11 01:25:05 [2025-04-11 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880839', 'tblTempUsageDetail_20' ) start [2025-04-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880839', 'tblTempUsageDetail_20' ) end [2025-04-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880839', 'tblTempVendorCDR_20' ) start [2025-04-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880839', 'tblTempVendorCDR_20' ) end [2025-04-11 01:25:18] Production.INFO: ProcessCDR(1,14880839,1,1,2) [2025-04-11 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880839', 'tblTempUsageDetail_20' ) start [2025-04-11 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880839', 'tblTempUsageDetail_20' ) end [2025-04-11 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:25:21] Production.INFO: ==19469== Releasing lock... [2025-04-11 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:26:05 [end_date_ymd] => 2025-04-11 01:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:26:05' and `end` < '2025-04-11 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-04-11 01:26:18] Production.INFO: count ==151 [2025-04-11 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:26:05 - End Time 2025-04-11 01:26:05 [2025-04-11 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880844', 'tblTempUsageDetail_20' ) start [2025-04-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880844', 'tblTempUsageDetail_20' ) end [2025-04-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880844', 'tblTempVendorCDR_20' ) start [2025-04-11 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880844', 'tblTempVendorCDR_20' ) end [2025-04-11 01:26:18] Production.INFO: ProcessCDR(1,14880844,1,1,2) [2025-04-11 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880844', 'tblTempUsageDetail_20' ) start [2025-04-11 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880844', 'tblTempUsageDetail_20' ) end [2025-04-11 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:26:21] Production.INFO: ==19583== Releasing lock... [2025-04-11 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:27:05 [end_date_ymd] => 2025-04-11 01:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:27:05' and `end` < '2025-04-11 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-04-11 01:27:18] Production.INFO: count ==156 [2025-04-11 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:27:05 - End Time 2025-04-11 01:27:05 [2025-04-11 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880849', 'tblTempUsageDetail_20' ) start [2025-04-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880849', 'tblTempUsageDetail_20' ) end [2025-04-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880849', 'tblTempVendorCDR_20' ) start [2025-04-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880849', 'tblTempVendorCDR_20' ) end [2025-04-11 01:27:18] Production.INFO: ProcessCDR(1,14880849,1,1,2) [2025-04-11 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880849', 'tblTempUsageDetail_20' ) start [2025-04-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880849', 'tblTempUsageDetail_20' ) end [2025-04-11 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:27:22] Production.INFO: ==19664== Releasing lock... [2025-04-11 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:28:06 [end_date_ymd] => 2025-04-11 01:28:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:28:06' and `end` < '2025-04-11 01: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-04-11 01:28:18] Production.INFO: count ==156 [2025-04-11 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:28:06 - End Time 2025-04-11 01:28:06 [2025-04-11 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880854', 'tblTempUsageDetail_20' ) start [2025-04-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880854', 'tblTempUsageDetail_20' ) end [2025-04-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880854', 'tblTempVendorCDR_20' ) start [2025-04-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880854', 'tblTempVendorCDR_20' ) end [2025-04-11 01:28:18] Production.INFO: ProcessCDR(1,14880854,1,1,2) [2025-04-11 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880854', 'tblTempUsageDetail_20' ) start [2025-04-11 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880854', 'tblTempUsageDetail_20' ) end [2025-04-11 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:28:22] Production.INFO: ==19735== Releasing lock... [2025-04-11 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:29:05 [end_date_ymd] => 2025-04-11 01:29:05 [RateCDR] => 1 ) [2025-04-11 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:29:05' and `end` < '2025-04-11 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:29:18] Production.INFO: count ==155 [2025-04-11 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:29:05 - End Time 2025-04-11 01:29:05 [2025-04-11 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880859', 'tblTempUsageDetail_20' ) start [2025-04-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880859', 'tblTempUsageDetail_20' ) end [2025-04-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880859', 'tblTempVendorCDR_20' ) start [2025-04-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880859', 'tblTempVendorCDR_20' ) end [2025-04-11 01:29:18] Production.INFO: ProcessCDR(1,14880859,1,1,2) [2025-04-11 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880859', 'tblTempUsageDetail_20' ) start [2025-04-11 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880859', 'tblTempUsageDetail_20' ) end [2025-04-11 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:29:21] Production.INFO: ==19814== Releasing lock... [2025-04-11 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:30:06 [end_date_ymd] => 2025-04-11 01:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:30:06' and `end` < '2025-04-11 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-04-11 01:30:19] Production.INFO: count ==154 [2025-04-11 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:30:06 - End Time 2025-04-11 01:30:06 [2025-04-11 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880864', 'tblTempUsageDetail_20' ) start [2025-04-11 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880864', 'tblTempUsageDetail_20' ) end [2025-04-11 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880864', 'tblTempVendorCDR_20' ) start [2025-04-11 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880864', 'tblTempVendorCDR_20' ) end [2025-04-11 01:30:19] Production.INFO: ProcessCDR(1,14880864,1,1,2) [2025-04-11 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880864', 'tblTempUsageDetail_20' ) start [2025-04-11 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880864', 'tblTempUsageDetail_20' ) end [2025-04-11 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:30:22] Production.INFO: ==19906== Releasing lock... [2025-04-11 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:31:05 [end_date_ymd] => 2025-04-11 01:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:31:05' and `end` < '2025-04-11 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-04-11 01:31:17] Production.INFO: count ==150 [2025-04-11 01:31:17] Production.ERROR: pbx CDR StartTime 2025-04-10 22:31:05 - End Time 2025-04-11 01:31:05 [2025-04-11 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880870', 'tblTempUsageDetail_20' ) start [2025-04-11 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880870', 'tblTempUsageDetail_20' ) end [2025-04-11 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880870', 'tblTempVendorCDR_20' ) start [2025-04-11 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880870', 'tblTempVendorCDR_20' ) end [2025-04-11 01:31:17] Production.INFO: ProcessCDR(1,14880870,1,1,2) [2025-04-11 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880870', 'tblTempUsageDetail_20' ) start [2025-04-11 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880870', 'tblTempUsageDetail_20' ) end [2025-04-11 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:31:21] Production.INFO: ==19996== Releasing lock... [2025-04-11 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:32:05 [end_date_ymd] => 2025-04-11 01:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:32:05' and `end` < '2025-04-11 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-04-11 01:32:18] Production.INFO: count ==142 [2025-04-11 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:32:05 - End Time 2025-04-11 01:32:05 [2025-04-11 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880875', 'tblTempUsageDetail_20' ) start [2025-04-11 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880875', 'tblTempUsageDetail_20' ) end [2025-04-11 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880875', 'tblTempVendorCDR_20' ) start [2025-04-11 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880875', 'tblTempVendorCDR_20' ) end [2025-04-11 01:32:18] Production.INFO: ProcessCDR(1,14880875,1,1,2) [2025-04-11 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880875', 'tblTempUsageDetail_20' ) start [2025-04-11 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880875', 'tblTempUsageDetail_20' ) end [2025-04-11 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:32:21] Production.INFO: ==20075== Releasing lock... [2025-04-11 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:32:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:33:05 [end_date_ymd] => 2025-04-11 01:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:33:05' and `end` < '2025-04-11 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-04-11 01:33:18] Production.INFO: count ==142 [2025-04-11 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:33:05 - End Time 2025-04-11 01:33:05 [2025-04-11 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880880', 'tblTempUsageDetail_20' ) start [2025-04-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880880', 'tblTempUsageDetail_20' ) end [2025-04-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880880', 'tblTempVendorCDR_20' ) start [2025-04-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880880', 'tblTempVendorCDR_20' ) end [2025-04-11 01:33:18] Production.INFO: ProcessCDR(1,14880880,1,1,2) [2025-04-11 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880880', 'tblTempUsageDetail_20' ) start [2025-04-11 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880880', 'tblTempUsageDetail_20' ) end [2025-04-11 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:33:21] Production.INFO: ==20148== Releasing lock... [2025-04-11 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:34:05 [end_date_ymd] => 2025-04-11 01:34:05 [RateCDR] => 1 ) [2025-04-11 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:34:05' and `end` < '2025-04-11 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:34:18] Production.INFO: count ==142 [2025-04-11 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:34:05 - End Time 2025-04-11 01:34:05 [2025-04-11 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880885', 'tblTempUsageDetail_20' ) start [2025-04-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880885', 'tblTempUsageDetail_20' ) end [2025-04-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880885', 'tblTempVendorCDR_20' ) start [2025-04-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880885', 'tblTempVendorCDR_20' ) end [2025-04-11 01:34:18] Production.INFO: ProcessCDR(1,14880885,1,1,2) [2025-04-11 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880885', 'tblTempUsageDetail_20' ) start [2025-04-11 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880885', 'tblTempUsageDetail_20' ) end [2025-04-11 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:34:21] Production.INFO: ==20227== Releasing lock... [2025-04-11 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:34:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:35:06 [end_date_ymd] => 2025-04-11 01:35:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:35:06' and `end` < '2025-04-11 01: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-04-11 01:35:18] Production.INFO: count ==142 [2025-04-11 01:35:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:35:06 - End Time 2025-04-11 01:35:06 [2025-04-11 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880890', 'tblTempUsageDetail_20' ) start [2025-04-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880890', 'tblTempUsageDetail_20' ) end [2025-04-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880890', 'tblTempVendorCDR_20' ) start [2025-04-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880890', 'tblTempVendorCDR_20' ) end [2025-04-11 01:35:19] Production.INFO: ProcessCDR(1,14880890,1,1,2) [2025-04-11 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880890', 'tblTempUsageDetail_20' ) start [2025-04-11 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880890', 'tblTempUsageDetail_20' ) end [2025-04-11 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:35:24] Production.INFO: ==20306== Releasing lock... [2025-04-11 01:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:35:24] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:36:05 [end_date_ymd] => 2025-04-11 01:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:36:05' and `end` < '2025-04-11 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-04-11 01:36:18] Production.INFO: count ==142 [2025-04-11 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:36:05 - End Time 2025-04-11 01:36:05 [2025-04-11 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880895', 'tblTempUsageDetail_20' ) start [2025-04-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880895', 'tblTempUsageDetail_20' ) end [2025-04-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880895', 'tblTempVendorCDR_20' ) start [2025-04-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880895', 'tblTempVendorCDR_20' ) end [2025-04-11 01:36:18] Production.INFO: ProcessCDR(1,14880895,1,1,2) [2025-04-11 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880895', 'tblTempUsageDetail_20' ) start [2025-04-11 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880895', 'tblTempUsageDetail_20' ) end [2025-04-11 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:36:21] Production.INFO: ==20380== Releasing lock... [2025-04-11 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:36:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:37:05 [end_date_ymd] => 2025-04-11 01:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:37:05' and `end` < '2025-04-11 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-04-11 01:37:18] Production.INFO: count ==142 [2025-04-11 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:37:05 - End Time 2025-04-11 01:37:05 [2025-04-11 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880900', 'tblTempUsageDetail_20' ) start [2025-04-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880900', 'tblTempUsageDetail_20' ) end [2025-04-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880900', 'tblTempVendorCDR_20' ) start [2025-04-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880900', 'tblTempVendorCDR_20' ) end [2025-04-11 01:37:18] Production.INFO: ProcessCDR(1,14880900,1,1,2) [2025-04-11 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880900', 'tblTempUsageDetail_20' ) start [2025-04-11 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880900', 'tblTempUsageDetail_20' ) end [2025-04-11 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:37:21] Production.INFO: ==20457== Releasing lock... [2025-04-11 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:37:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:38:05 [end_date_ymd] => 2025-04-11 01:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:38:05' and `end` < '2025-04-11 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-04-11 01:38:18] Production.INFO: count ==144 [2025-04-11 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:38:05 - End Time 2025-04-11 01:38:05 [2025-04-11 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880905', 'tblTempUsageDetail_20' ) start [2025-04-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880905', 'tblTempUsageDetail_20' ) end [2025-04-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880905', 'tblTempVendorCDR_20' ) start [2025-04-11 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880905', 'tblTempVendorCDR_20' ) end [2025-04-11 01:38:18] Production.INFO: ProcessCDR(1,14880905,1,1,2) [2025-04-11 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880905', 'tblTempUsageDetail_20' ) start [2025-04-11 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880905', 'tblTempUsageDetail_20' ) end [2025-04-11 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:38:21] Production.INFO: ==20529== Releasing lock... [2025-04-11 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:38:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:39:06 [end_date_ymd] => 2025-04-11 01:39:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:39:06' and `end` < '2025-04-11 01: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-04-11 01:39:18] Production.INFO: count ==143 [2025-04-11 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:39:06 - End Time 2025-04-11 01:39:06 [2025-04-11 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880910', 'tblTempUsageDetail_20' ) start [2025-04-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880910', 'tblTempUsageDetail_20' ) end [2025-04-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880910', 'tblTempVendorCDR_20' ) start [2025-04-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880910', 'tblTempVendorCDR_20' ) end [2025-04-11 01:39:18] Production.INFO: ProcessCDR(1,14880910,1,1,2) [2025-04-11 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880910', 'tblTempUsageDetail_20' ) start [2025-04-11 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880910', 'tblTempUsageDetail_20' ) end [2025-04-11 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:39:22] Production.INFO: ==20610== Releasing lock... [2025-04-11 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:39:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:40:06 [end_date_ymd] => 2025-04-11 01:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:40:06' and `end` < '2025-04-11 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-04-11 01:40:19] Production.INFO: count ==143 [2025-04-11 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:40:06 - End Time 2025-04-11 01:40:06 [2025-04-11 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880916', 'tblTempUsageDetail_20' ) start [2025-04-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880916', 'tblTempUsageDetail_20' ) end [2025-04-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880916', 'tblTempVendorCDR_20' ) start [2025-04-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880916', 'tblTempVendorCDR_20' ) end [2025-04-11 01:40:19] Production.INFO: ProcessCDR(1,14880916,1,1,2) [2025-04-11 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880916', 'tblTempUsageDetail_20' ) start [2025-04-11 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880916', 'tblTempUsageDetail_20' ) end [2025-04-11 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:40:22] Production.INFO: ==20688== Releasing lock... [2025-04-11 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:40:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:41:06 [end_date_ymd] => 2025-04-11 01:41:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:41:06' and `end` < '2025-04-11 01: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-04-11 01:41:18] Production.INFO: count ==145 [2025-04-11 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:41:06 - End Time 2025-04-11 01:41:06 [2025-04-11 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880921', 'tblTempUsageDetail_20' ) start [2025-04-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880921', 'tblTempUsageDetail_20' ) end [2025-04-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880921', 'tblTempVendorCDR_20' ) start [2025-04-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880921', 'tblTempVendorCDR_20' ) end [2025-04-11 01:41:18] Production.INFO: ProcessCDR(1,14880921,1,1,2) [2025-04-11 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880921', 'tblTempUsageDetail_20' ) start [2025-04-11 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880921', 'tblTempUsageDetail_20' ) end [2025-04-11 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:41:22] Production.INFO: ==20766== Releasing lock... [2025-04-11 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:41:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:42:05 [end_date_ymd] => 2025-04-11 01:42:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:42:05' and `end` < '2025-04-11 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-04-11 01:42:18] Production.INFO: count ==145 [2025-04-11 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:42:05 - End Time 2025-04-11 01:42:05 [2025-04-11 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880926', 'tblTempUsageDetail_20' ) start [2025-04-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880926', 'tblTempUsageDetail_20' ) end [2025-04-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880926', 'tblTempVendorCDR_20' ) start [2025-04-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880926', 'tblTempVendorCDR_20' ) end [2025-04-11 01:42:18] Production.INFO: ProcessCDR(1,14880926,1,1,2) [2025-04-11 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880926', 'tblTempUsageDetail_20' ) start [2025-04-11 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880926', 'tblTempUsageDetail_20' ) end [2025-04-11 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:42:21] Production.INFO: ==20880== Releasing lock... [2025-04-11 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:42:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:43:05 [end_date_ymd] => 2025-04-11 01:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:43:05' and `end` < '2025-04-11 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-04-11 01:43:18] Production.INFO: count ==144 [2025-04-11 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:43:05 - End Time 2025-04-11 01:43:05 [2025-04-11 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880931', 'tblTempUsageDetail_20' ) start [2025-04-11 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880931', 'tblTempUsageDetail_20' ) end [2025-04-11 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880931', 'tblTempVendorCDR_20' ) start [2025-04-11 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880931', 'tblTempVendorCDR_20' ) end [2025-04-11 01:43:18] Production.INFO: ProcessCDR(1,14880931,1,1,2) [2025-04-11 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880931', 'tblTempUsageDetail_20' ) start [2025-04-11 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880931', 'tblTempUsageDetail_20' ) end [2025-04-11 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:43:21] Production.INFO: ==20961== Releasing lock... [2025-04-11 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:43:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:44:05 [end_date_ymd] => 2025-04-11 01:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:44:05' and `end` < '2025-04-11 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-04-11 01:44:18] Production.INFO: count ==144 [2025-04-11 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:44:05 - End Time 2025-04-11 01:44:05 [2025-04-11 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880936', 'tblTempUsageDetail_20' ) start [2025-04-11 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880936', 'tblTempUsageDetail_20' ) end [2025-04-11 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880936', 'tblTempVendorCDR_20' ) start [2025-04-11 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880936', 'tblTempVendorCDR_20' ) end [2025-04-11 01:44:18] Production.INFO: ProcessCDR(1,14880936,1,1,2) [2025-04-11 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880936', 'tblTempUsageDetail_20' ) start [2025-04-11 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880936', 'tblTempUsageDetail_20' ) end [2025-04-11 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:44:21] Production.INFO: ==21040== Releasing lock... [2025-04-11 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:44:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:45:05 [end_date_ymd] => 2025-04-11 01:45:05 [RateCDR] => 1 ) [2025-04-11 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:45:05' and `end` < '2025-04-11 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:45:18] Production.INFO: count ==144 [2025-04-11 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:45:05 - End Time 2025-04-11 01:45:05 [2025-04-11 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880941', 'tblTempUsageDetail_20' ) start [2025-04-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880941', 'tblTempUsageDetail_20' ) end [2025-04-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880941', 'tblTempVendorCDR_20' ) start [2025-04-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880941', 'tblTempVendorCDR_20' ) end [2025-04-11 01:45:18] Production.INFO: ProcessCDR(1,14880941,1,1,2) [2025-04-11 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880941', 'tblTempUsageDetail_20' ) start [2025-04-11 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880941', 'tblTempUsageDetail_20' ) end [2025-04-11 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:45:21] Production.INFO: ==21117== Releasing lock... [2025-04-11 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:46:05 [end_date_ymd] => 2025-04-11 01:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:46:05' and `end` < '2025-04-11 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-04-11 01:46:17] Production.INFO: count ==144 [2025-04-11 01:46:17] Production.ERROR: pbx CDR StartTime 2025-04-10 22:46:05 - End Time 2025-04-11 01:46:05 [2025-04-11 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880946', 'tblTempUsageDetail_20' ) start [2025-04-11 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880946', 'tblTempUsageDetail_20' ) end [2025-04-11 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880946', 'tblTempVendorCDR_20' ) start [2025-04-11 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880946', 'tblTempVendorCDR_20' ) end [2025-04-11 01:46:17] Production.INFO: ProcessCDR(1,14880946,1,1,2) [2025-04-11 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880946', 'tblTempUsageDetail_20' ) start [2025-04-11 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880946', 'tblTempUsageDetail_20' ) end [2025-04-11 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:46:21] Production.INFO: ==21192== Releasing lock... [2025-04-11 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:46:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:47:05 [end_date_ymd] => 2025-04-11 01:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:47:05' and `end` < '2025-04-11 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-04-11 01:47:18] Production.INFO: count ==146 [2025-04-11 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:47:05 - End Time 2025-04-11 01:47:05 [2025-04-11 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880951', 'tblTempUsageDetail_20' ) start [2025-04-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880951', 'tblTempUsageDetail_20' ) end [2025-04-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880951', 'tblTempVendorCDR_20' ) start [2025-04-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880951', 'tblTempVendorCDR_20' ) end [2025-04-11 01:47:18] Production.INFO: ProcessCDR(1,14880951,1,1,2) [2025-04-11 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880951', 'tblTempUsageDetail_20' ) start [2025-04-11 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880951', 'tblTempUsageDetail_20' ) end [2025-04-11 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:47:22] Production.INFO: ==21267== Releasing lock... [2025-04-11 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:47:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:48:05 [end_date_ymd] => 2025-04-11 01:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:48:05' and `end` < '2025-04-11 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-04-11 01:48:18] Production.INFO: count ==145 [2025-04-11 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:48:05 - End Time 2025-04-11 01:48:05 [2025-04-11 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880956', 'tblTempUsageDetail_20' ) start [2025-04-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880956', 'tblTempUsageDetail_20' ) end [2025-04-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880956', 'tblTempVendorCDR_20' ) start [2025-04-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880956', 'tblTempVendorCDR_20' ) end [2025-04-11 01:48:18] Production.INFO: ProcessCDR(1,14880956,1,1,2) [2025-04-11 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880956', 'tblTempUsageDetail_20' ) start [2025-04-11 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880956', 'tblTempUsageDetail_20' ) end [2025-04-11 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:48:21] Production.INFO: ==21340== Releasing lock... [2025-04-11 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:48:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:49:05 [end_date_ymd] => 2025-04-11 01:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:49:05' and `end` < '2025-04-11 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-04-11 01:49:18] Production.INFO: count ==145 [2025-04-11 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:49:05 - End Time 2025-04-11 01:49:05 [2025-04-11 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880961', 'tblTempUsageDetail_20' ) start [2025-04-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880961', 'tblTempUsageDetail_20' ) end [2025-04-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880961', 'tblTempVendorCDR_20' ) start [2025-04-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880961', 'tblTempVendorCDR_20' ) end [2025-04-11 01:49:18] Production.INFO: ProcessCDR(1,14880961,1,1,2) [2025-04-11 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880961', 'tblTempUsageDetail_20' ) start [2025-04-11 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880961', 'tblTempUsageDetail_20' ) end [2025-04-11 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:49:21] Production.INFO: ==21417== Releasing lock... [2025-04-11 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:49:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:50:05 [end_date_ymd] => 2025-04-11 01:50:05 [RateCDR] => 1 ) [2025-04-11 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:50:05' and `end` < '2025-04-11 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:50:18] Production.INFO: count ==153 [2025-04-11 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:50:05 - End Time 2025-04-11 01:50:05 [2025-04-11 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880967', 'tblTempUsageDetail_20' ) start [2025-04-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880967', 'tblTempUsageDetail_20' ) end [2025-04-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880967', 'tblTempVendorCDR_20' ) start [2025-04-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880967', 'tblTempVendorCDR_20' ) end [2025-04-11 01:50:18] Production.INFO: ProcessCDR(1,14880967,1,1,2) [2025-04-11 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880967', 'tblTempUsageDetail_20' ) start [2025-04-11 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880967', 'tblTempUsageDetail_20' ) end [2025-04-11 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:50:22] Production.INFO: ==21498== Releasing lock... [2025-04-11 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:50:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:51:05 [end_date_ymd] => 2025-04-11 01:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:51:05' and `end` < '2025-04-11 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-04-11 01:51:18] Production.INFO: count ==153 [2025-04-11 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:51:05 - End Time 2025-04-11 01:51:05 [2025-04-11 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880972', 'tblTempUsageDetail_20' ) start [2025-04-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880972', 'tblTempUsageDetail_20' ) end [2025-04-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880972', 'tblTempVendorCDR_20' ) start [2025-04-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880972', 'tblTempVendorCDR_20' ) end [2025-04-11 01:51:18] Production.INFO: ProcessCDR(1,14880972,1,1,2) [2025-04-11 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880972', 'tblTempUsageDetail_20' ) start [2025-04-11 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880972', 'tblTempUsageDetail_20' ) end [2025-04-11 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:51:21] Production.INFO: ==21572== Releasing lock... [2025-04-11 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:51:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:52:06 [end_date_ymd] => 2025-04-11 01:52:06 [RateCDR] => 1 ) [2025-04-11 01: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-04-10 22:52:06' and `end` < '2025-04-11 01: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-04-11 01:52:19] Production.INFO: count ==153 [2025-04-11 01:52:19] Production.ERROR: pbx CDR StartTime 2025-04-10 22:52:06 - End Time 2025-04-11 01:52:06 [2025-04-11 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880977', 'tblTempUsageDetail_20' ) start [2025-04-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880977', 'tblTempUsageDetail_20' ) end [2025-04-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880977', 'tblTempVendorCDR_20' ) start [2025-04-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880977', 'tblTempVendorCDR_20' ) end [2025-04-11 01:52:19] Production.INFO: ProcessCDR(1,14880977,1,1,2) [2025-04-11 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880977', 'tblTempUsageDetail_20' ) start [2025-04-11 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880977', 'tblTempUsageDetail_20' ) end [2025-04-11 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:52:22] Production.INFO: ==21651== Releasing lock... [2025-04-11 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:52:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:53:05 [end_date_ymd] => 2025-04-11 01:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:53:05' and `end` < '2025-04-11 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-04-11 01:53:17] Production.INFO: count ==154 [2025-04-11 01:53:17] Production.ERROR: pbx CDR StartTime 2025-04-10 22:53:05 - End Time 2025-04-11 01:53:05 [2025-04-11 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880982', 'tblTempUsageDetail_20' ) start [2025-04-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880982', 'tblTempUsageDetail_20' ) end [2025-04-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880982', 'tblTempVendorCDR_20' ) start [2025-04-11 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880982', 'tblTempVendorCDR_20' ) end [2025-04-11 01:53:17] Production.INFO: ProcessCDR(1,14880982,1,1,2) [2025-04-11 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880982', 'tblTempUsageDetail_20' ) start [2025-04-11 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880982', 'tblTempUsageDetail_20' ) end [2025-04-11 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:53:22] Production.INFO: ==21724== Releasing lock... [2025-04-11 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:54:05 [end_date_ymd] => 2025-04-11 01:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:54:05' and `end` < '2025-04-11 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-04-11 01:54:18] Production.INFO: count ==153 [2025-04-11 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:54:05 - End Time 2025-04-11 01:54:05 [2025-04-11 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880987', 'tblTempUsageDetail_20' ) start [2025-04-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880987', 'tblTempUsageDetail_20' ) end [2025-04-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880987', 'tblTempVendorCDR_20' ) start [2025-04-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880987', 'tblTempVendorCDR_20' ) end [2025-04-11 01:54:18] Production.INFO: ProcessCDR(1,14880987,1,1,2) [2025-04-11 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880987', 'tblTempUsageDetail_20' ) start [2025-04-11 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880987', 'tblTempUsageDetail_20' ) end [2025-04-11 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:54:21] Production.INFO: ==21803== Releasing lock... [2025-04-11 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:54:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:55:05 [end_date_ymd] => 2025-04-11 01:55:05 [RateCDR] => 1 ) [2025-04-11 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:55:05' and `end` < '2025-04-11 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:55:18] Production.INFO: count ==151 [2025-04-11 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:55:05 - End Time 2025-04-11 01:55:05 [2025-04-11 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880992', 'tblTempUsageDetail_20' ) start [2025-04-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880992', 'tblTempUsageDetail_20' ) end [2025-04-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880992', 'tblTempVendorCDR_20' ) start [2025-04-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880992', 'tblTempVendorCDR_20' ) end [2025-04-11 01:55:18] Production.INFO: ProcessCDR(1,14880992,1,1,2) [2025-04-11 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880992', 'tblTempUsageDetail_20' ) start [2025-04-11 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880992', 'tblTempUsageDetail_20' ) end [2025-04-11 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:55:22] Production.INFO: ==21878== Releasing lock... [2025-04-11 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:55:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:56:05 [end_date_ymd] => 2025-04-11 01:56:05 [RateCDR] => 1 ) [2025-04-11 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 22:56:05' and `end` < '2025-04-11 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 01:56:18] Production.INFO: count ==152 [2025-04-11 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:56:05 - End Time 2025-04-11 01:56:05 [2025-04-11 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880997', 'tblTempUsageDetail_20' ) start [2025-04-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880997', 'tblTempUsageDetail_20' ) end [2025-04-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880997', 'tblTempVendorCDR_20' ) start [2025-04-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880997', 'tblTempVendorCDR_20' ) end [2025-04-11 01:56:18] Production.INFO: ProcessCDR(1,14880997,1,1,2) [2025-04-11 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880997', 'tblTempUsageDetail_20' ) start [2025-04-11 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880997', 'tblTempUsageDetail_20' ) end [2025-04-11 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:56:21] Production.INFO: ==21957== Releasing lock... [2025-04-11 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:57:05 [end_date_ymd] => 2025-04-11 01:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:57:05' and `end` < '2025-04-11 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-04-11 01:57:18] Production.INFO: count ==152 [2025-04-11 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:57:05 - End Time 2025-04-11 01:57:05 [2025-04-11 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881002', 'tblTempUsageDetail_20' ) start [2025-04-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881002', 'tblTempUsageDetail_20' ) end [2025-04-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881002', 'tblTempVendorCDR_20' ) start [2025-04-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881002', 'tblTempVendorCDR_20' ) end [2025-04-11 01:57:18] Production.INFO: ProcessCDR(1,14881002,1,1,2) [2025-04-11 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881002', 'tblTempUsageDetail_20' ) start [2025-04-11 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881002', 'tblTempUsageDetail_20' ) end [2025-04-11 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:57:22] Production.INFO: ==22071== Releasing lock... [2025-04-11 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:57:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:58:05 [end_date_ymd] => 2025-04-11 01:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:58:05' and `end` < '2025-04-11 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-04-11 01:58:18] Production.INFO: count ==150 [2025-04-11 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-10 22:58:05 - End Time 2025-04-11 01:58:05 [2025-04-11 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881007', 'tblTempUsageDetail_20' ) start [2025-04-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881007', 'tblTempUsageDetail_20' ) end [2025-04-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881007', 'tblTempVendorCDR_20' ) start [2025-04-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881007', 'tblTempVendorCDR_20' ) end [2025-04-11 01:58:18] Production.INFO: ProcessCDR(1,14881007,1,1,2) [2025-04-11 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881007', 'tblTempUsageDetail_20' ) start [2025-04-11 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881007', 'tblTempUsageDetail_20' ) end [2025-04-11 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:58:21] Production.INFO: ==22151== Releasing lock... [2025-04-11 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:58:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 22:59:05 [end_date_ymd] => 2025-04-11 01:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 22:59:05' and `end` < '2025-04-11 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-04-11 01:59:17] Production.INFO: count ==150 [2025-04-11 01:59:17] Production.ERROR: pbx CDR StartTime 2025-04-10 22:59:05 - End Time 2025-04-11 01:59:05 [2025-04-11 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881012', 'tblTempUsageDetail_20' ) start [2025-04-11 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881012', 'tblTempUsageDetail_20' ) end [2025-04-11 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881012', 'tblTempVendorCDR_20' ) start [2025-04-11 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881012', 'tblTempVendorCDR_20' ) end [2025-04-11 01:59:17] Production.INFO: ProcessCDR(1,14881012,1,1,2) [2025-04-11 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881012', 'tblTempUsageDetail_20' ) start [2025-04-11 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881012', 'tblTempUsageDetail_20' ) end [2025-04-11 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 01:59:21] Production.INFO: ==22228== Releasing lock... [2025-04-11 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 01:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:00:06 [end_date_ymd] => 2025-04-11 02:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:00:06' and `end` < '2025-04-11 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-04-11 02:00:18] Production.INFO: count ==153 [2025-04-11 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:00:06 - End Time 2025-04-11 02:00:06 [2025-04-11 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881018', 'tblTempUsageDetail_20' ) start [2025-04-11 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881018', 'tblTempUsageDetail_20' ) end [2025-04-11 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881018', 'tblTempVendorCDR_20' ) start [2025-04-11 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881018', 'tblTempVendorCDR_20' ) end [2025-04-11 02:00:18] Production.INFO: ProcessCDR(1,14881018,1,1,2) [2025-04-11 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881018', 'tblTempUsageDetail_20' ) start [2025-04-11 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881018', 'tblTempUsageDetail_20' ) end [2025-04-11 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:00:22] Production.INFO: ==22303== Releasing lock... [2025-04-11 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:01:05 [end_date_ymd] => 2025-04-11 02:01:05 [RateCDR] => 1 ) [2025-04-11 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:01:05' and `end` < '2025-04-11 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:01:18] Production.INFO: count ==152 [2025-04-11 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:01:05 - End Time 2025-04-11 02:01:05 [2025-04-11 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881023', 'tblTempUsageDetail_20' ) start [2025-04-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881023', 'tblTempUsageDetail_20' ) end [2025-04-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881023', 'tblTempVendorCDR_20' ) start [2025-04-11 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881023', 'tblTempVendorCDR_20' ) end [2025-04-11 02:01:18] Production.INFO: ProcessCDR(1,14881023,1,1,2) [2025-04-11 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881023', 'tblTempUsageDetail_20' ) start [2025-04-11 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881023', 'tblTempUsageDetail_20' ) end [2025-04-11 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:01:21] Production.INFO: ==22392== Releasing lock... [2025-04-11 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:01:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:02:06 [end_date_ymd] => 2025-04-11 02:02:06 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:02:06' and `end` < '2025-04-11 02: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-04-11 02:02:18] Production.INFO: count ==149 [2025-04-11 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:02:06 - End Time 2025-04-11 02:02:06 [2025-04-11 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881028', 'tblTempUsageDetail_20' ) start [2025-04-11 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881028', 'tblTempUsageDetail_20' ) end [2025-04-11 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881028', 'tblTempVendorCDR_20' ) start [2025-04-11 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881028', 'tblTempVendorCDR_20' ) end [2025-04-11 02:02:18] Production.INFO: ProcessCDR(1,14881028,1,1,2) [2025-04-11 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881028', 'tblTempUsageDetail_20' ) start [2025-04-11 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881028', 'tblTempUsageDetail_20' ) end [2025-04-11 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:02:22] Production.INFO: ==22562== Releasing lock... [2025-04-11 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:02:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:03:05 [end_date_ymd] => 2025-04-11 02:03:05 [RateCDR] => 1 ) [2025-04-11 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:03:05' and `end` < '2025-04-11 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:03:18] Production.INFO: count ==149 [2025-04-11 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:03:05 - End Time 2025-04-11 02:03:05 [2025-04-11 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881033', 'tblTempUsageDetail_20' ) start [2025-04-11 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881033', 'tblTempUsageDetail_20' ) end [2025-04-11 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881033', 'tblTempVendorCDR_20' ) start [2025-04-11 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881033', 'tblTempVendorCDR_20' ) end [2025-04-11 02:03:18] Production.INFO: ProcessCDR(1,14881033,1,1,2) [2025-04-11 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881033', 'tblTempUsageDetail_20' ) start [2025-04-11 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881033', 'tblTempUsageDetail_20' ) end [2025-04-11 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:03:21] Production.INFO: ==22636== Releasing lock... [2025-04-11 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:03:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:04:05 [end_date_ymd] => 2025-04-11 02:04:05 [RateCDR] => 1 ) [2025-04-11 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:04:05' and `end` < '2025-04-11 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:04:18] Production.INFO: count ==149 [2025-04-11 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:04:05 - End Time 2025-04-11 02:04:05 [2025-04-11 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881038', 'tblTempUsageDetail_20' ) start [2025-04-11 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881038', 'tblTempUsageDetail_20' ) end [2025-04-11 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881038', 'tblTempVendorCDR_20' ) start [2025-04-11 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881038', 'tblTempVendorCDR_20' ) end [2025-04-11 02:04:18] Production.INFO: ProcessCDR(1,14881038,1,1,2) [2025-04-11 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881038', 'tblTempUsageDetail_20' ) start [2025-04-11 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881038', 'tblTempUsageDetail_20' ) end [2025-04-11 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:04:21] Production.INFO: ==22713== Releasing lock... [2025-04-11 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:04:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:05:04 [end_date_ymd] => 2025-04-11 02:05:04 [RateCDR] => 1 ) [2025-04-11 02:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:05:04' and `end` < '2025-04-11 02:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:05:17] Production.INFO: count ==149 [2025-04-11 02:05:17] Production.ERROR: pbx CDR StartTime 2025-04-10 23:05:04 - End Time 2025-04-11 02:05:04 [2025-04-11 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881043', 'tblTempUsageDetail_20' ) start [2025-04-11 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881043', 'tblTempUsageDetail_20' ) end [2025-04-11 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881043', 'tblTempVendorCDR_20' ) start [2025-04-11 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881043', 'tblTempVendorCDR_20' ) end [2025-04-11 02:05:17] Production.INFO: ProcessCDR(1,14881043,1,1,2) [2025-04-11 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881043', 'tblTempUsageDetail_20' ) start [2025-04-11 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881043', 'tblTempUsageDetail_20' ) end [2025-04-11 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:05:21] Production.INFO: ==22789== Releasing lock... [2025-04-11 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:05:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:06:05 [end_date_ymd] => 2025-04-11 02:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:06:05' and `end` < '2025-04-11 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-04-11 02:06:18] Production.INFO: count ==151 [2025-04-11 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:06:05 - End Time 2025-04-11 02:06:05 [2025-04-11 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881048', 'tblTempUsageDetail_20' ) start [2025-04-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881048', 'tblTempUsageDetail_20' ) end [2025-04-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881048', 'tblTempVendorCDR_20' ) start [2025-04-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881048', 'tblTempVendorCDR_20' ) end [2025-04-11 02:06:18] Production.INFO: ProcessCDR(1,14881048,1,1,2) [2025-04-11 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881048', 'tblTempUsageDetail_20' ) start [2025-04-11 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881048', 'tblTempUsageDetail_20' ) end [2025-04-11 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:06:21] Production.INFO: ==22866== Releasing lock... [2025-04-11 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:06:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:07:05 [end_date_ymd] => 2025-04-11 02:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:07:05' and `end` < '2025-04-11 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-04-11 02:07:18] Production.INFO: count ==151 [2025-04-11 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:07:05 - End Time 2025-04-11 02:07:05 [2025-04-11 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881053', 'tblTempUsageDetail_20' ) start [2025-04-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881053', 'tblTempUsageDetail_20' ) end [2025-04-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881053', 'tblTempVendorCDR_20' ) start [2025-04-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881053', 'tblTempVendorCDR_20' ) end [2025-04-11 02:07:18] Production.INFO: ProcessCDR(1,14881053,1,1,2) [2025-04-11 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881053', 'tblTempUsageDetail_20' ) start [2025-04-11 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881053', 'tblTempUsageDetail_20' ) end [2025-04-11 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:07:21] Production.INFO: ==22941== Releasing lock... [2025-04-11 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:08:05 [end_date_ymd] => 2025-04-11 02:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:08:05' and `end` < '2025-04-11 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-04-11 02:08:18] Production.INFO: count ==151 [2025-04-11 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:08:05 - End Time 2025-04-11 02:08:05 [2025-04-11 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881058', 'tblTempUsageDetail_20' ) start [2025-04-11 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881058', 'tblTempUsageDetail_20' ) end [2025-04-11 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881058', 'tblTempVendorCDR_20' ) start [2025-04-11 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881058', 'tblTempVendorCDR_20' ) end [2025-04-11 02:08:18] Production.INFO: ProcessCDR(1,14881058,1,1,2) [2025-04-11 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881058', 'tblTempUsageDetail_20' ) start [2025-04-11 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881058', 'tblTempUsageDetail_20' ) end [2025-04-11 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:08:22] Production.INFO: ==23020== Releasing lock... [2025-04-11 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:08:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:09:06 [end_date_ymd] => 2025-04-11 02:09:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:09:06' and `end` < '2025-04-11 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-04-11 02:09:19] Production.INFO: count ==151 [2025-04-11 02:09:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:09:06 - End Time 2025-04-11 02:09:06 [2025-04-11 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881063', 'tblTempUsageDetail_20' ) start [2025-04-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881063', 'tblTempUsageDetail_20' ) end [2025-04-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881063', 'tblTempVendorCDR_20' ) start [2025-04-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881063', 'tblTempVendorCDR_20' ) end [2025-04-11 02:09:19] Production.INFO: ProcessCDR(1,14881063,1,1,2) [2025-04-11 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881063', 'tblTempUsageDetail_20' ) start [2025-04-11 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881063', 'tblTempUsageDetail_20' ) end [2025-04-11 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:09:22] Production.INFO: ==23100== Releasing lock... [2025-04-11 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:09:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:10:05 [end_date_ymd] => 2025-04-11 02:10:05 [RateCDR] => 1 ) [2025-04-11 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:10:05' and `end` < '2025-04-11 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:10:18] Production.INFO: count ==159 [2025-04-11 02:10:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:10:05 - End Time 2025-04-11 02:10:05 [2025-04-11 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881069', 'tblTempUsageDetail_20' ) start [2025-04-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881069', 'tblTempUsageDetail_20' ) end [2025-04-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881069', 'tblTempVendorCDR_20' ) start [2025-04-11 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881069', 'tblTempVendorCDR_20' ) end [2025-04-11 02:10:18] Production.INFO: ProcessCDR(1,14881069,1,1,2) [2025-04-11 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881069', 'tblTempUsageDetail_20' ) start [2025-04-11 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881069', 'tblTempUsageDetail_20' ) end [2025-04-11 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:10:22] Production.INFO: ==23173== Releasing lock... [2025-04-11 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:10:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:11:05 [end_date_ymd] => 2025-04-11 02:11:05 [RateCDR] => 1 ) [2025-04-11 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:11:05' and `end` < '2025-04-11 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:11:17] Production.INFO: count ==180 [2025-04-11 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:11:05 - End Time 2025-04-11 02:11:05 [2025-04-11 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881074', 'tblTempUsageDetail_20' ) start [2025-04-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881074', 'tblTempUsageDetail_20' ) end [2025-04-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881074', 'tblTempVendorCDR_20' ) start [2025-04-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881074', 'tblTempVendorCDR_20' ) end [2025-04-11 02:11:18] Production.INFO: ProcessCDR(1,14881074,1,1,2) [2025-04-11 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881074', 'tblTempUsageDetail_20' ) start [2025-04-11 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881074', 'tblTempUsageDetail_20' ) end [2025-04-11 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:11:21] Production.INFO: ==23246== Releasing lock... [2025-04-11 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:11:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:12:05 [end_date_ymd] => 2025-04-11 02:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:12:05' and `end` < '2025-04-11 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-04-11 02:12:18] Production.INFO: count ==181 [2025-04-11 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:12:05 - End Time 2025-04-11 02:12:05 [2025-04-11 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881079', 'tblTempUsageDetail_20' ) start [2025-04-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881079', 'tblTempUsageDetail_20' ) end [2025-04-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881079', 'tblTempVendorCDR_20' ) start [2025-04-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881079', 'tblTempVendorCDR_20' ) end [2025-04-11 02:12:18] Production.INFO: ProcessCDR(1,14881079,1,1,2) [2025-04-11 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881079', 'tblTempUsageDetail_20' ) start [2025-04-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881079', 'tblTempUsageDetail_20' ) end [2025-04-11 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:12:21] Production.INFO: ==23318== Releasing lock... [2025-04-11 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:13:05 [end_date_ymd] => 2025-04-11 02:13:05 [RateCDR] => 1 ) [2025-04-11 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:13:05' and `end` < '2025-04-11 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:13:18] Production.INFO: count ==184 [2025-04-11 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:13:05 - End Time 2025-04-11 02:13:05 [2025-04-11 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881084', 'tblTempUsageDetail_20' ) start [2025-04-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881084', 'tblTempUsageDetail_20' ) end [2025-04-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881084', 'tblTempVendorCDR_20' ) start [2025-04-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881084', 'tblTempVendorCDR_20' ) end [2025-04-11 02:13:18] Production.INFO: ProcessCDR(1,14881084,1,1,2) [2025-04-11 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881084', 'tblTempUsageDetail_20' ) start [2025-04-11 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881084', 'tblTempUsageDetail_20' ) end [2025-04-11 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:13:21] Production.INFO: ==23435== Releasing lock... [2025-04-11 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:14:04 [end_date_ymd] => 2025-04-11 02:14:04 [RateCDR] => 1 ) [2025-04-11 02:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:14:04' and `end` < '2025-04-11 02:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:14:17] Production.INFO: count ==184 [2025-04-11 02:14:17] Production.ERROR: pbx CDR StartTime 2025-04-10 23:14:04 - End Time 2025-04-11 02:14:04 [2025-04-11 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881089', 'tblTempUsageDetail_20' ) start [2025-04-11 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881089', 'tblTempUsageDetail_20' ) end [2025-04-11 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881089', 'tblTempVendorCDR_20' ) start [2025-04-11 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881089', 'tblTempVendorCDR_20' ) end [2025-04-11 02:14:17] Production.INFO: ProcessCDR(1,14881089,1,1,2) [2025-04-11 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881089', 'tblTempUsageDetail_20' ) start [2025-04-11 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881089', 'tblTempUsageDetail_20' ) end [2025-04-11 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:14:20] Production.INFO: ==23513== Releasing lock... [2025-04-11 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:15:05 [end_date_ymd] => 2025-04-11 02:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:15:05' and `end` < '2025-04-11 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-04-11 02:15:18] Production.INFO: count ==184 [2025-04-11 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:15:05 - End Time 2025-04-11 02:15:05 [2025-04-11 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881094', 'tblTempUsageDetail_20' ) start [2025-04-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881094', 'tblTempUsageDetail_20' ) end [2025-04-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881094', 'tblTempVendorCDR_20' ) start [2025-04-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881094', 'tblTempVendorCDR_20' ) end [2025-04-11 02:15:18] Production.INFO: ProcessCDR(1,14881094,1,1,2) [2025-04-11 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881094', 'tblTempUsageDetail_20' ) start [2025-04-11 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881094', 'tblTempUsageDetail_20' ) end [2025-04-11 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:15:22] Production.INFO: ==23592== Releasing lock... [2025-04-11 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:16:05 [end_date_ymd] => 2025-04-11 02:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:16:05' and `end` < '2025-04-11 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-04-11 02:16:18] Production.INFO: count ==184 [2025-04-11 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:16:05 - End Time 2025-04-11 02:16:05 [2025-04-11 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881099', 'tblTempUsageDetail_20' ) start [2025-04-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881099', 'tblTempUsageDetail_20' ) end [2025-04-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881099', 'tblTempVendorCDR_20' ) start [2025-04-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881099', 'tblTempVendorCDR_20' ) end [2025-04-11 02:16:18] Production.INFO: ProcessCDR(1,14881099,1,1,2) [2025-04-11 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881099', 'tblTempUsageDetail_20' ) start [2025-04-11 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881099', 'tblTempUsageDetail_20' ) end [2025-04-11 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:16:21] Production.INFO: ==23664== Releasing lock... [2025-04-11 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:17:06 [end_date_ymd] => 2025-04-11 02:17:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:17:06' and `end` < '2025-04-11 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-04-11 02:17:18] Production.INFO: count ==184 [2025-04-11 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:17:06 - End Time 2025-04-11 02:17:06 [2025-04-11 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881104', 'tblTempUsageDetail_20' ) start [2025-04-11 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881104', 'tblTempUsageDetail_20' ) end [2025-04-11 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881104', 'tblTempVendorCDR_20' ) start [2025-04-11 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881104', 'tblTempVendorCDR_20' ) end [2025-04-11 02:17:18] Production.INFO: ProcessCDR(1,14881104,1,1,2) [2025-04-11 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881104', 'tblTempUsageDetail_20' ) start [2025-04-11 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881104', 'tblTempUsageDetail_20' ) end [2025-04-11 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:17:22] Production.INFO: ==23739== Releasing lock... [2025-04-11 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:18:05 [end_date_ymd] => 2025-04-11 02:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:18:05' and `end` < '2025-04-11 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-04-11 02:18:17] Production.INFO: count ==184 [2025-04-11 02:18:17] Production.ERROR: pbx CDR StartTime 2025-04-10 23:18:05 - End Time 2025-04-11 02:18:05 [2025-04-11 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881109', 'tblTempUsageDetail_20' ) start [2025-04-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881109', 'tblTempUsageDetail_20' ) end [2025-04-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881109', 'tblTempVendorCDR_20' ) start [2025-04-11 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881109', 'tblTempVendorCDR_20' ) end [2025-04-11 02:18:17] Production.INFO: ProcessCDR(1,14881109,1,1,2) [2025-04-11 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881109', 'tblTempUsageDetail_20' ) start [2025-04-11 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881109', 'tblTempUsageDetail_20' ) end [2025-04-11 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:18:21] Production.INFO: ==23813== Releasing lock... [2025-04-11 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:19:05 [end_date_ymd] => 2025-04-11 02:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:19:05' and `end` < '2025-04-11 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-04-11 02:19:18] Production.INFO: count ==184 [2025-04-11 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:19:05 - End Time 2025-04-11 02:19:05 [2025-04-11 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881114', 'tblTempUsageDetail_20' ) start [2025-04-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881114', 'tblTempUsageDetail_20' ) end [2025-04-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881114', 'tblTempVendorCDR_20' ) start [2025-04-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881114', 'tblTempVendorCDR_20' ) end [2025-04-11 02:19:18] Production.INFO: ProcessCDR(1,14881114,1,1,2) [2025-04-11 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881114', 'tblTempUsageDetail_20' ) start [2025-04-11 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881114', 'tblTempUsageDetail_20' ) end [2025-04-11 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:19:21] Production.INFO: ==23888== Releasing lock... [2025-04-11 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:20:06 [end_date_ymd] => 2025-04-11 02:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:20:06' and `end` < '2025-04-11 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-04-11 02:20:19] Production.INFO: count ==184 [2025-04-11 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:20:06 - End Time 2025-04-11 02:20:06 [2025-04-11 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881120', 'tblTempUsageDetail_20' ) start [2025-04-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881120', 'tblTempUsageDetail_20' ) end [2025-04-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881120', 'tblTempVendorCDR_20' ) start [2025-04-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881120', 'tblTempVendorCDR_20' ) end [2025-04-11 02:20:19] Production.INFO: ProcessCDR(1,14881120,1,1,2) [2025-04-11 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881120', 'tblTempUsageDetail_20' ) start [2025-04-11 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881120', 'tblTempUsageDetail_20' ) end [2025-04-11 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:20:23] Production.INFO: ==23977== Releasing lock... [2025-04-11 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:21:05 [end_date_ymd] => 2025-04-11 02:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:21:05' and `end` < '2025-04-11 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-04-11 02:21:18] Production.INFO: count ==183 [2025-04-11 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:21:05 - End Time 2025-04-11 02:21:05 [2025-04-11 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881125', 'tblTempUsageDetail_20' ) start [2025-04-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881125', 'tblTempUsageDetail_20' ) end [2025-04-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881125', 'tblTempVendorCDR_20' ) start [2025-04-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881125', 'tblTempVendorCDR_20' ) end [2025-04-11 02:21:18] Production.INFO: ProcessCDR(1,14881125,1,1,2) [2025-04-11 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881125', 'tblTempUsageDetail_20' ) start [2025-04-11 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881125', 'tblTempUsageDetail_20' ) end [2025-04-11 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:21:21] Production.INFO: ==24052== Releasing lock... [2025-04-11 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:22:06 [end_date_ymd] => 2025-04-11 02:22:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:22:06' and `end` < '2025-04-11 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-04-11 02:22:18] Production.INFO: count ==182 [2025-04-11 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:22:06 - End Time 2025-04-11 02:22:06 [2025-04-11 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881130', 'tblTempUsageDetail_20' ) start [2025-04-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881130', 'tblTempUsageDetail_20' ) end [2025-04-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881130', 'tblTempVendorCDR_20' ) start [2025-04-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881130', 'tblTempVendorCDR_20' ) end [2025-04-11 02:22:18] Production.INFO: ProcessCDR(1,14881130,1,1,2) [2025-04-11 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881130', 'tblTempUsageDetail_20' ) start [2025-04-11 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881130', 'tblTempUsageDetail_20' ) end [2025-04-11 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:22:22] Production.INFO: ==24126== Releasing lock... [2025-04-11 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:23:05 [end_date_ymd] => 2025-04-11 02:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:23:05' and `end` < '2025-04-11 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-04-11 02:23:18] Production.INFO: count ==182 [2025-04-11 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:23:05 - End Time 2025-04-11 02:23:05 [2025-04-11 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881135', 'tblTempUsageDetail_20' ) start [2025-04-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881135', 'tblTempUsageDetail_20' ) end [2025-04-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881135', 'tblTempVendorCDR_20' ) start [2025-04-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881135', 'tblTempVendorCDR_20' ) end [2025-04-11 02:23:18] Production.INFO: ProcessCDR(1,14881135,1,1,2) [2025-04-11 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881135', 'tblTempUsageDetail_20' ) start [2025-04-11 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881135', 'tblTempUsageDetail_20' ) end [2025-04-11 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:23:21] Production.INFO: ==24203== Releasing lock... [2025-04-11 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:24:06 [end_date_ymd] => 2025-04-11 02:24:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:24:06' and `end` < '2025-04-11 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-04-11 02:24:19] Production.INFO: count ==182 [2025-04-11 02:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:24:06 - End Time 2025-04-11 02:24:06 [2025-04-11 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881140', 'tblTempUsageDetail_20' ) start [2025-04-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881140', 'tblTempUsageDetail_20' ) end [2025-04-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881140', 'tblTempVendorCDR_20' ) start [2025-04-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881140', 'tblTempVendorCDR_20' ) end [2025-04-11 02:24:19] Production.INFO: ProcessCDR(1,14881140,1,1,2) [2025-04-11 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881140', 'tblTempUsageDetail_20' ) start [2025-04-11 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881140', 'tblTempUsageDetail_20' ) end [2025-04-11 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:24:22] Production.INFO: ==24282== Releasing lock... [2025-04-11 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:25:05 [end_date_ymd] => 2025-04-11 02:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:25:05' and `end` < '2025-04-11 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-04-11 02:25:18] Production.INFO: count ==182 [2025-04-11 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:25:05 - End Time 2025-04-11 02:25:05 [2025-04-11 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881145', 'tblTempUsageDetail_20' ) start [2025-04-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881145', 'tblTempUsageDetail_20' ) end [2025-04-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881145', 'tblTempVendorCDR_20' ) start [2025-04-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881145', 'tblTempVendorCDR_20' ) end [2025-04-11 02:25:18] Production.INFO: ProcessCDR(1,14881145,1,1,2) [2025-04-11 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881145', 'tblTempUsageDetail_20' ) start [2025-04-11 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881145', 'tblTempUsageDetail_20' ) end [2025-04-11 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:25:21] Production.INFO: ==24354== Releasing lock... [2025-04-11 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:26:06 [end_date_ymd] => 2025-04-11 02:26:06 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:26:06' and `end` < '2025-04-11 02: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-04-11 02:26:18] Production.INFO: count ==182 [2025-04-11 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:26:06 - End Time 2025-04-11 02:26:06 [2025-04-11 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881150', 'tblTempUsageDetail_20' ) start [2025-04-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881150', 'tblTempUsageDetail_20' ) end [2025-04-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881150', 'tblTempVendorCDR_20' ) start [2025-04-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881150', 'tblTempVendorCDR_20' ) end [2025-04-11 02:26:18] Production.INFO: ProcessCDR(1,14881150,1,1,2) [2025-04-11 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881150', 'tblTempUsageDetail_20' ) start [2025-04-11 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881150', 'tblTempUsageDetail_20' ) end [2025-04-11 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:26:22] Production.INFO: ==24429== Releasing lock... [2025-04-11 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:27:05 [end_date_ymd] => 2025-04-11 02:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:27:05' and `end` < '2025-04-11 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-04-11 02:27:18] Production.INFO: count ==180 [2025-04-11 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:27:05 - End Time 2025-04-11 02:27:05 [2025-04-11 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881155', 'tblTempUsageDetail_20' ) start [2025-04-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881155', 'tblTempUsageDetail_20' ) end [2025-04-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881155', 'tblTempVendorCDR_20' ) start [2025-04-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881155', 'tblTempVendorCDR_20' ) end [2025-04-11 02:27:18] Production.INFO: ProcessCDR(1,14881155,1,1,2) [2025-04-11 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881155', 'tblTempUsageDetail_20' ) start [2025-04-11 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881155', 'tblTempUsageDetail_20' ) end [2025-04-11 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:27:22] Production.INFO: ==24507== Releasing lock... [2025-04-11 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:27:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:28:06 [end_date_ymd] => 2025-04-11 02:28:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:28:06' and `end` < '2025-04-11 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-04-11 02:28:19] Production.INFO: count ==179 [2025-04-11 02:28:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:28:06 - End Time 2025-04-11 02:28:06 [2025-04-11 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881160', 'tblTempUsageDetail_20' ) start [2025-04-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881160', 'tblTempUsageDetail_20' ) end [2025-04-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881160', 'tblTempVendorCDR_20' ) start [2025-04-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881160', 'tblTempVendorCDR_20' ) end [2025-04-11 02:28:19] Production.INFO: ProcessCDR(1,14881160,1,1,2) [2025-04-11 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881160', 'tblTempUsageDetail_20' ) start [2025-04-11 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881160', 'tblTempUsageDetail_20' ) end [2025-04-11 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:28:22] Production.INFO: ==24622== Releasing lock... [2025-04-11 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:28:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:29:05 [end_date_ymd] => 2025-04-11 02:29:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:29:05' and `end` < '2025-04-11 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-04-11 02:29:18] Production.INFO: count ==178 [2025-04-11 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:29:05 - End Time 2025-04-11 02:29:05 [2025-04-11 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881165', 'tblTempUsageDetail_20' ) start [2025-04-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881165', 'tblTempUsageDetail_20' ) end [2025-04-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881165', 'tblTempVendorCDR_20' ) start [2025-04-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881165', 'tblTempVendorCDR_20' ) end [2025-04-11 02:29:18] Production.INFO: ProcessCDR(1,14881165,1,1,2) [2025-04-11 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881165', 'tblTempUsageDetail_20' ) start [2025-04-11 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881165', 'tblTempUsageDetail_20' ) end [2025-04-11 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:29:21] Production.INFO: ==24697== Releasing lock... [2025-04-11 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:29:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:30:06 [end_date_ymd] => 2025-04-11 02:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:30:06' and `end` < '2025-04-11 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-04-11 02:30:19] Production.INFO: count ==180 [2025-04-11 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:30:06 - End Time 2025-04-11 02:30:06 [2025-04-11 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881171', 'tblTempUsageDetail_20' ) start [2025-04-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881171', 'tblTempUsageDetail_20' ) end [2025-04-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881171', 'tblTempVendorCDR_20' ) start [2025-04-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881171', 'tblTempVendorCDR_20' ) end [2025-04-11 02:30:19] Production.INFO: ProcessCDR(1,14881171,1,1,2) [2025-04-11 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881171', 'tblTempUsageDetail_20' ) start [2025-04-11 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881171', 'tblTempUsageDetail_20' ) end [2025-04-11 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:30:23] Production.INFO: ==24772== Releasing lock... [2025-04-11 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:30:23] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:31:05 [end_date_ymd] => 2025-04-11 02:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:31:05' and `end` < '2025-04-11 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-04-11 02:31:18] Production.INFO: count ==179 [2025-04-11 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:31:05 - End Time 2025-04-11 02:31:05 [2025-04-11 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881176', 'tblTempUsageDetail_20' ) start [2025-04-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881176', 'tblTempUsageDetail_20' ) end [2025-04-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881176', 'tblTempVendorCDR_20' ) start [2025-04-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881176', 'tblTempVendorCDR_20' ) end [2025-04-11 02:31:18] Production.INFO: ProcessCDR(1,14881176,1,1,2) [2025-04-11 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881176', 'tblTempUsageDetail_20' ) start [2025-04-11 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881176', 'tblTempUsageDetail_20' ) end [2025-04-11 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:31:21] Production.INFO: ==24849== Releasing lock... [2025-04-11 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:31:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:32:05 [end_date_ymd] => 2025-04-11 02:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:32:05' and `end` < '2025-04-11 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-04-11 02:32:18] Production.INFO: count ==178 [2025-04-11 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:32:05 - End Time 2025-04-11 02:32:05 [2025-04-11 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881181', 'tblTempUsageDetail_20' ) start [2025-04-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881181', 'tblTempUsageDetail_20' ) end [2025-04-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881181', 'tblTempVendorCDR_20' ) start [2025-04-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881181', 'tblTempVendorCDR_20' ) end [2025-04-11 02:32:18] Production.INFO: ProcessCDR(1,14881181,1,1,2) [2025-04-11 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881181', 'tblTempUsageDetail_20' ) start [2025-04-11 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881181', 'tblTempUsageDetail_20' ) end [2025-04-11 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:32:21] Production.INFO: ==24932== Releasing lock... [2025-04-11 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:32:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:33:04 [end_date_ymd] => 2025-04-11 02:33:04 [RateCDR] => 1 ) [2025-04-11 02:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:33:04' and `end` < '2025-04-11 02:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:33:17] Production.INFO: count ==178 [2025-04-11 02:33:17] Production.ERROR: pbx CDR StartTime 2025-04-10 23:33:04 - End Time 2025-04-11 02:33:04 [2025-04-11 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881186', 'tblTempUsageDetail_20' ) start [2025-04-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881186', 'tblTempUsageDetail_20' ) end [2025-04-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881186', 'tblTempVendorCDR_20' ) start [2025-04-11 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881186', 'tblTempVendorCDR_20' ) end [2025-04-11 02:33:17] Production.INFO: ProcessCDR(1,14881186,1,1,2) [2025-04-11 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881186', 'tblTempUsageDetail_20' ) start [2025-04-11 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881186', 'tblTempUsageDetail_20' ) end [2025-04-11 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:33:20] Production.INFO: ==25009== Releasing lock... [2025-04-11 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:33:20] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:34:06 [end_date_ymd] => 2025-04-11 02:34:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:34:06' and `end` < '2025-04-11 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-04-11 02:34:19] Production.INFO: count ==177 [2025-04-11 02:34:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:34:06 - End Time 2025-04-11 02:34:06 [2025-04-11 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881191', 'tblTempUsageDetail_20' ) start [2025-04-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881191', 'tblTempUsageDetail_20' ) end [2025-04-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881191', 'tblTempVendorCDR_20' ) start [2025-04-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881191', 'tblTempVendorCDR_20' ) end [2025-04-11 02:34:19] Production.INFO: ProcessCDR(1,14881191,1,1,2) [2025-04-11 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881191', 'tblTempUsageDetail_20' ) start [2025-04-11 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881191', 'tblTempUsageDetail_20' ) end [2025-04-11 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:34:22] Production.INFO: ==25087== Releasing lock... [2025-04-11 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:35:05 [end_date_ymd] => 2025-04-11 02:35:05 [RateCDR] => 1 ) [2025-04-11 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:35:05' and `end` < '2025-04-11 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:35:18] Production.INFO: count ==176 [2025-04-11 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:35:05 - End Time 2025-04-11 02:35:05 [2025-04-11 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881196', 'tblTempUsageDetail_20' ) start [2025-04-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881196', 'tblTempUsageDetail_20' ) end [2025-04-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881196', 'tblTempVendorCDR_20' ) start [2025-04-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881196', 'tblTempVendorCDR_20' ) end [2025-04-11 02:35:18] Production.INFO: ProcessCDR(1,14881196,1,1,2) [2025-04-11 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881196', 'tblTempUsageDetail_20' ) start [2025-04-11 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881196', 'tblTempUsageDetail_20' ) end [2025-04-11 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:35:22] Production.INFO: ==25158== Releasing lock... [2025-04-11 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:35:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:36:06 [end_date_ymd] => 2025-04-11 02:36:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:36:06' and `end` < '2025-04-11 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-04-11 02:36:19] Production.INFO: count ==174 [2025-04-11 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:36:06 - End Time 2025-04-11 02:36:06 [2025-04-11 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881201', 'tblTempUsageDetail_20' ) start [2025-04-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881201', 'tblTempUsageDetail_20' ) end [2025-04-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881201', 'tblTempVendorCDR_20' ) start [2025-04-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881201', 'tblTempVendorCDR_20' ) end [2025-04-11 02:36:19] Production.INFO: ProcessCDR(1,14881201,1,1,2) [2025-04-11 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881201', 'tblTempUsageDetail_20' ) start [2025-04-11 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881201', 'tblTempUsageDetail_20' ) end [2025-04-11 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:36:23] Production.INFO: ==25234== Releasing lock... [2025-04-11 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:36:23] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:37:05 [end_date_ymd] => 2025-04-11 02:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:37:05' and `end` < '2025-04-11 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-04-11 02:37:18] Production.INFO: count ==174 [2025-04-11 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:37:05 - End Time 2025-04-11 02:37:05 [2025-04-11 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881206', 'tblTempUsageDetail_20' ) start [2025-04-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881206', 'tblTempUsageDetail_20' ) end [2025-04-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881206', 'tblTempVendorCDR_20' ) start [2025-04-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881206', 'tblTempVendorCDR_20' ) end [2025-04-11 02:37:18] Production.INFO: ProcessCDR(1,14881206,1,1,2) [2025-04-11 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881206', 'tblTempUsageDetail_20' ) start [2025-04-11 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881206', 'tblTempUsageDetail_20' ) end [2025-04-11 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:37:22] Production.INFO: ==25311== Releasing lock... [2025-04-11 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:37:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:38:06 [end_date_ymd] => 2025-04-11 02:38:06 [RateCDR] => 1 ) [2025-04-11 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:38:06' and `end` < '2025-04-11 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:38:18] Production.INFO: count ==174 [2025-04-11 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:38:06 - End Time 2025-04-11 02:38:06 [2025-04-11 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881211', 'tblTempUsageDetail_20' ) start [2025-04-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881211', 'tblTempUsageDetail_20' ) end [2025-04-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881211', 'tblTempVendorCDR_20' ) start [2025-04-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881211', 'tblTempVendorCDR_20' ) end [2025-04-11 02:38:18] Production.INFO: ProcessCDR(1,14881211,1,1,2) [2025-04-11 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881211', 'tblTempUsageDetail_20' ) start [2025-04-11 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881211', 'tblTempUsageDetail_20' ) end [2025-04-11 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:38:22] Production.INFO: ==25389== Releasing lock... [2025-04-11 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:38:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:39:06 [end_date_ymd] => 2025-04-11 02:39:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:39:06' and `end` < '2025-04-11 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-04-11 02:39:18] Production.INFO: count ==173 [2025-04-11 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:39:06 - End Time 2025-04-11 02:39:06 [2025-04-11 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881216', 'tblTempUsageDetail_20' ) start [2025-04-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881216', 'tblTempUsageDetail_20' ) end [2025-04-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881216', 'tblTempVendorCDR_20' ) start [2025-04-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881216', 'tblTempVendorCDR_20' ) end [2025-04-11 02:39:18] Production.INFO: ProcessCDR(1,14881216,1,1,2) [2025-04-11 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881216', 'tblTempUsageDetail_20' ) start [2025-04-11 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881216', 'tblTempUsageDetail_20' ) end [2025-04-11 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:39:22] Production.INFO: ==25462== Releasing lock... [2025-04-11 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:39:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:40:07 [end_date_ymd] => 2025-04-11 02:40:07 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:40:07' and `end` < '2025-04-11 02: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-04-11 02:40:20] Production.INFO: count ==174 [2025-04-11 02:40:20] Production.ERROR: pbx CDR StartTime 2025-04-10 23:40:07 - End Time 2025-04-11 02:40:07 [2025-04-11 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881221', 'tblTempUsageDetail_20' ) start [2025-04-11 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881221', 'tblTempUsageDetail_20' ) end [2025-04-11 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881221', 'tblTempVendorCDR_20' ) start [2025-04-11 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881221', 'tblTempVendorCDR_20' ) end [2025-04-11 02:40:20] Production.INFO: ProcessCDR(1,14881221,1,1,2) [2025-04-11 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881221', 'tblTempUsageDetail_20' ) start [2025-04-11 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881221', 'tblTempUsageDetail_20' ) end [2025-04-11 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:40:24] Production.INFO: ==25541== Releasing lock... [2025-04-11 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:40:24] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:41:06 [end_date_ymd] => 2025-04-11 02:41:06 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:41:06' and `end` < '2025-04-11 02: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-04-11 02:41:18] Production.INFO: count ==172 [2025-04-11 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:41:06 - End Time 2025-04-11 02:41:06 [2025-04-11 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881227', 'tblTempUsageDetail_20' ) start [2025-04-11 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881227', 'tblTempUsageDetail_20' ) end [2025-04-11 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881227', 'tblTempVendorCDR_20' ) start [2025-04-11 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881227', 'tblTempVendorCDR_20' ) end [2025-04-11 02:41:19] Production.INFO: ProcessCDR(1,14881227,1,1,2) [2025-04-11 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881227', 'tblTempUsageDetail_20' ) start [2025-04-11 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881227', 'tblTempUsageDetail_20' ) end [2025-04-11 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:41:22] Production.INFO: ==25619== Releasing lock... [2025-04-11 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:41:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:42:05 [end_date_ymd] => 2025-04-11 02:42:05 [RateCDR] => 1 ) [2025-04-11 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:42:05' and `end` < '2025-04-11 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:42:18] Production.INFO: count ==172 [2025-04-11 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:42:05 - End Time 2025-04-11 02:42:05 [2025-04-11 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881232', 'tblTempUsageDetail_20' ) start [2025-04-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881232', 'tblTempUsageDetail_20' ) end [2025-04-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881232', 'tblTempVendorCDR_20' ) start [2025-04-11 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881232', 'tblTempVendorCDR_20' ) end [2025-04-11 02:42:18] Production.INFO: ProcessCDR(1,14881232,1,1,2) [2025-04-11 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881232', 'tblTempUsageDetail_20' ) start [2025-04-11 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881232', 'tblTempUsageDetail_20' ) end [2025-04-11 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:42:22] Production.INFO: ==25691== Releasing lock... [2025-04-11 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:42:22] Production.INFO: 29 MB #Memory Used# [2025-04-11 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:43:06 [end_date_ymd] => 2025-04-11 02:43:06 [RateCDR] => 1 ) [2025-04-11 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:43:06' and `end` < '2025-04-11 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:43:19] Production.INFO: count ==171 [2025-04-11 02:43:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:43:06 - End Time 2025-04-11 02:43:06 [2025-04-11 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881237', 'tblTempUsageDetail_20' ) start [2025-04-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881237', 'tblTempUsageDetail_20' ) end [2025-04-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881237', 'tblTempVendorCDR_20' ) start [2025-04-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881237', 'tblTempVendorCDR_20' ) end [2025-04-11 02:43:19] Production.INFO: ProcessCDR(1,14881237,1,1,2) [2025-04-11 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881237', 'tblTempUsageDetail_20' ) start [2025-04-11 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881237', 'tblTempUsageDetail_20' ) end [2025-04-11 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:43:23] Production.INFO: ==25768== Releasing lock... [2025-04-11 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:43:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:44:05 [end_date_ymd] => 2025-04-11 02:44:05 [RateCDR] => 1 ) [2025-04-11 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:44:05' and `end` < '2025-04-11 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:44:18] Production.INFO: count ==171 [2025-04-11 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:44:05 - End Time 2025-04-11 02:44:05 [2025-04-11 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881242', 'tblTempUsageDetail_20' ) start [2025-04-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881242', 'tblTempUsageDetail_20' ) end [2025-04-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881242', 'tblTempVendorCDR_20' ) start [2025-04-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881242', 'tblTempVendorCDR_20' ) end [2025-04-11 02:44:18] Production.INFO: ProcessCDR(1,14881242,1,1,2) [2025-04-11 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881242', 'tblTempUsageDetail_20' ) start [2025-04-11 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881242', 'tblTempUsageDetail_20' ) end [2025-04-11 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:44:22] Production.INFO: ==25881== Releasing lock... [2025-04-11 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:45:06 [end_date_ymd] => 2025-04-11 02:45:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:45:06' and `end` < '2025-04-11 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-04-11 02:45:19] Production.INFO: count ==169 [2025-04-11 02:45:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:45:06 - End Time 2025-04-11 02:45:06 [2025-04-11 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881247', 'tblTempUsageDetail_20' ) start [2025-04-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881247', 'tblTempUsageDetail_20' ) end [2025-04-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881247', 'tblTempVendorCDR_20' ) start [2025-04-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881247', 'tblTempVendorCDR_20' ) end [2025-04-11 02:45:19] Production.INFO: ProcessCDR(1,14881247,1,1,2) [2025-04-11 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881247', 'tblTempUsageDetail_20' ) start [2025-04-11 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881247', 'tblTempUsageDetail_20' ) end [2025-04-11 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:45:23] Production.INFO: ==25955== Releasing lock... [2025-04-11 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:45:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:46:06 [end_date_ymd] => 2025-04-11 02:46:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:46:06' and `end` < '2025-04-11 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-04-11 02:46:18] Production.INFO: count ==169 [2025-04-11 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:46:06 - End Time 2025-04-11 02:46:06 [2025-04-11 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881252', 'tblTempUsageDetail_20' ) start [2025-04-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881252', 'tblTempUsageDetail_20' ) end [2025-04-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881252', 'tblTempVendorCDR_20' ) start [2025-04-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881252', 'tblTempVendorCDR_20' ) end [2025-04-11 02:46:18] Production.INFO: ProcessCDR(1,14881252,1,1,2) [2025-04-11 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881252', 'tblTempUsageDetail_20' ) start [2025-04-11 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881252', 'tblTempUsageDetail_20' ) end [2025-04-11 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:46:22] Production.INFO: ==26029== Releasing lock... [2025-04-11 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:47:06 [end_date_ymd] => 2025-04-11 02:47:06 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:47:06' and `end` < '2025-04-11 02: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-04-11 02:47:19] Production.INFO: count ==169 [2025-04-11 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:47:06 - End Time 2025-04-11 02:47:06 [2025-04-11 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881257', 'tblTempUsageDetail_20' ) start [2025-04-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881257', 'tblTempUsageDetail_20' ) end [2025-04-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881257', 'tblTempVendorCDR_20' ) start [2025-04-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881257', 'tblTempVendorCDR_20' ) end [2025-04-11 02:47:19] Production.INFO: ProcessCDR(1,14881257,1,1,2) [2025-04-11 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881257', 'tblTempUsageDetail_20' ) start [2025-04-11 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881257', 'tblTempUsageDetail_20' ) end [2025-04-11 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:47:23] Production.INFO: ==26113== Releasing lock... [2025-04-11 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:47:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:48:05 [end_date_ymd] => 2025-04-11 02:48:05 [RateCDR] => 1 ) [2025-04-11 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:48:05' and `end` < '2025-04-11 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:48:18] Production.INFO: count ==169 [2025-04-11 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:48:05 - End Time 2025-04-11 02:48:05 [2025-04-11 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881262', 'tblTempUsageDetail_20' ) start [2025-04-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881262', 'tblTempUsageDetail_20' ) end [2025-04-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881262', 'tblTempVendorCDR_20' ) start [2025-04-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881262', 'tblTempVendorCDR_20' ) end [2025-04-11 02:48:18] Production.INFO: ProcessCDR(1,14881262,1,1,2) [2025-04-11 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881262', 'tblTempUsageDetail_20' ) start [2025-04-11 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881262', 'tblTempUsageDetail_20' ) end [2025-04-11 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:48:22] Production.INFO: ==26186== Releasing lock... [2025-04-11 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:49:06 [end_date_ymd] => 2025-04-11 02:49:06 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:49:06' and `end` < '2025-04-11 02: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-04-11 02:49:18] Production.INFO: count ==170 [2025-04-11 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:49:06 - End Time 2025-04-11 02:49:06 [2025-04-11 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881267', 'tblTempUsageDetail_20' ) start [2025-04-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881267', 'tblTempUsageDetail_20' ) end [2025-04-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881267', 'tblTempVendorCDR_20' ) start [2025-04-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881267', 'tblTempVendorCDR_20' ) end [2025-04-11 02:49:18] Production.INFO: ProcessCDR(1,14881267,1,1,2) [2025-04-11 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881267', 'tblTempUsageDetail_20' ) start [2025-04-11 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881267', 'tblTempUsageDetail_20' ) end [2025-04-11 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:49:22] Production.INFO: ==26261== Releasing lock... [2025-04-11 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:50:06 [end_date_ymd] => 2025-04-11 02:50:06 [RateCDR] => 1 ) [2025-04-11 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:50:06' and `end` < '2025-04-11 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:50:19] Production.INFO: count ==170 [2025-04-11 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:50:06 - End Time 2025-04-11 02:50:06 [2025-04-11 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881273', 'tblTempUsageDetail_20' ) start [2025-04-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881273', 'tblTempUsageDetail_20' ) end [2025-04-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881273', 'tblTempVendorCDR_20' ) start [2025-04-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881273', 'tblTempVendorCDR_20' ) end [2025-04-11 02:50:19] Production.INFO: ProcessCDR(1,14881273,1,1,2) [2025-04-11 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881273', 'tblTempUsageDetail_20' ) start [2025-04-11 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881273', 'tblTempUsageDetail_20' ) end [2025-04-11 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:50:23] Production.INFO: ==26338== Releasing lock... [2025-04-11 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:51:06 [end_date_ymd] => 2025-04-11 02:51:06 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:51:06' and `end` < '2025-04-11 02: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-04-11 02:51:19] Production.INFO: count ==168 [2025-04-11 02:51:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:51:06 - End Time 2025-04-11 02:51:06 [2025-04-11 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881278', 'tblTempUsageDetail_20' ) start [2025-04-11 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881278', 'tblTempUsageDetail_20' ) end [2025-04-11 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881278', 'tblTempVendorCDR_20' ) start [2025-04-11 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881278', 'tblTempVendorCDR_20' ) end [2025-04-11 02:51:19] Production.INFO: ProcessCDR(1,14881278,1,1,2) [2025-04-11 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881278', 'tblTempUsageDetail_20' ) start [2025-04-11 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881278', 'tblTempUsageDetail_20' ) end [2025-04-11 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:51:22] Production.INFO: ==26415== Releasing lock... [2025-04-11 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:52:06 [end_date_ymd] => 2025-04-11 02:52:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:52:06' and `end` < '2025-04-11 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-04-11 02:52:19] Production.INFO: count ==165 [2025-04-11 02:52:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:52:06 - End Time 2025-04-11 02:52:06 [2025-04-11 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881283', 'tblTempUsageDetail_20' ) start [2025-04-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881283', 'tblTempUsageDetail_20' ) end [2025-04-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881283', 'tblTempVendorCDR_20' ) start [2025-04-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881283', 'tblTempVendorCDR_20' ) end [2025-04-11 02:52:19] Production.INFO: ProcessCDR(1,14881283,1,1,2) [2025-04-11 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881283', 'tblTempUsageDetail_20' ) start [2025-04-11 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881283', 'tblTempUsageDetail_20' ) end [2025-04-11 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:52:23] Production.INFO: ==26493== Releasing lock... [2025-04-11 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:52:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:53:06 [end_date_ymd] => 2025-04-11 02:53:06 [RateCDR] => 1 ) [2025-04-11 02: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-04-10 23:53:06' and `end` < '2025-04-11 02: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-04-11 02:53:19] Production.INFO: count ==163 [2025-04-11 02:53:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:53:06 - End Time 2025-04-11 02:53:06 [2025-04-11 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881288', 'tblTempUsageDetail_20' ) start [2025-04-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881288', 'tblTempUsageDetail_20' ) end [2025-04-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881288', 'tblTempVendorCDR_20' ) start [2025-04-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881288', 'tblTempVendorCDR_20' ) end [2025-04-11 02:53:19] Production.INFO: ProcessCDR(1,14881288,1,1,2) [2025-04-11 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881288', 'tblTempUsageDetail_20' ) start [2025-04-11 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881288', 'tblTempUsageDetail_20' ) end [2025-04-11 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:53:23] Production.INFO: ==26566== Releasing lock... [2025-04-11 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:54:06 [end_date_ymd] => 2025-04-11 02:54:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:54:06' and `end` < '2025-04-11 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-04-11 02:54:19] Production.INFO: count ==163 [2025-04-11 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:54:06 - End Time 2025-04-11 02:54:06 [2025-04-11 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881293', 'tblTempUsageDetail_20' ) start [2025-04-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881293', 'tblTempUsageDetail_20' ) end [2025-04-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881293', 'tblTempVendorCDR_20' ) start [2025-04-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881293', 'tblTempVendorCDR_20' ) end [2025-04-11 02:54:19] Production.INFO: ProcessCDR(1,14881293,1,1,2) [2025-04-11 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881293', 'tblTempUsageDetail_20' ) start [2025-04-11 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881293', 'tblTempUsageDetail_20' ) end [2025-04-11 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:54:23] Production.INFO: ==26638== Releasing lock... [2025-04-11 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:55:05 [end_date_ymd] => 2025-04-11 02:55:05 [RateCDR] => 1 ) [2025-04-11 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 23:55:05' and `end` < '2025-04-11 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 02:55:18] Production.INFO: count ==161 [2025-04-11 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:55:05 - End Time 2025-04-11 02:55:05 [2025-04-11 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881298', 'tblTempUsageDetail_20' ) start [2025-04-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881298', 'tblTempUsageDetail_20' ) end [2025-04-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881298', 'tblTempVendorCDR_20' ) start [2025-04-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881298', 'tblTempVendorCDR_20' ) end [2025-04-11 02:55:18] Production.INFO: ProcessCDR(1,14881298,1,1,2) [2025-04-11 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881298', 'tblTempUsageDetail_20' ) start [2025-04-11 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881298', 'tblTempUsageDetail_20' ) end [2025-04-11 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:55:22] Production.INFO: ==26712== Releasing lock... [2025-04-11 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:56:06 [end_date_ymd] => 2025-04-11 02:56:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:56:06' and `end` < '2025-04-11 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-04-11 02:56:19] Production.INFO: count ==161 [2025-04-11 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 23:56:06 - End Time 2025-04-11 02:56:06 [2025-04-11 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881303', 'tblTempUsageDetail_20' ) start [2025-04-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881303', 'tblTempUsageDetail_20' ) end [2025-04-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881303', 'tblTempVendorCDR_20' ) start [2025-04-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881303', 'tblTempVendorCDR_20' ) end [2025-04-11 02:56:19] Production.INFO: ProcessCDR(1,14881303,1,1,2) [2025-04-11 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881303', 'tblTempUsageDetail_20' ) start [2025-04-11 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881303', 'tblTempUsageDetail_20' ) end [2025-04-11 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:56:23] Production.INFO: ==26788== Releasing lock... [2025-04-11 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:56:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:57:05 [end_date_ymd] => 2025-04-11 02:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:57:05' and `end` < '2025-04-11 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-04-11 02:57:18] Production.INFO: count ==164 [2025-04-11 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:57:05 - End Time 2025-04-11 02:57:05 [2025-04-11 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881305', 'tblTempUsageDetail_20' ) start [2025-04-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881305', 'tblTempUsageDetail_20' ) end [2025-04-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881305', 'tblTempVendorCDR_20' ) start [2025-04-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881305', 'tblTempVendorCDR_20' ) end [2025-04-11 02:57:18] Production.INFO: ProcessCDR(1,14881305,1,1,2) [2025-04-11 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881305', 'tblTempUsageDetail_20' ) start [2025-04-11 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881305', 'tblTempUsageDetail_20' ) end [2025-04-11 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:57:22] Production.INFO: ==26864== Releasing lock... [2025-04-11 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:58:06 [end_date_ymd] => 2025-04-11 02:58:06 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:58:06' and `end` < '2025-04-11 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-04-11 02:58:18] Production.INFO: count ==164 [2025-04-11 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:58:06 - End Time 2025-04-11 02:58:06 [2025-04-11 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881313', 'tblTempUsageDetail_20' ) start [2025-04-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881313', 'tblTempUsageDetail_20' ) end [2025-04-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881313', 'tblTempVendorCDR_20' ) start [2025-04-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881313', 'tblTempVendorCDR_20' ) end [2025-04-11 02:58:18] Production.INFO: ProcessCDR(1,14881313,1,1,2) [2025-04-11 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881313', 'tblTempUsageDetail_20' ) start [2025-04-11 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881313', 'tblTempUsageDetail_20' ) end [2025-04-11 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:58:22] Production.INFO: ==26940== Releasing lock... [2025-04-11 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 23:59:05 [end_date_ymd] => 2025-04-11 02:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-10 23:59:05' and `end` < '2025-04-11 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-04-11 02:59:18] Production.INFO: count ==164 [2025-04-11 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 23:59:05 - End Time 2025-04-11 02:59:05 [2025-04-11 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881318', 'tblTempUsageDetail_20' ) start [2025-04-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881318', 'tblTempUsageDetail_20' ) end [2025-04-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881318', 'tblTempVendorCDR_20' ) start [2025-04-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881318', 'tblTempVendorCDR_20' ) end [2025-04-11 02:59:18] Production.INFO: ProcessCDR(1,14881318,1,1,2) [2025-04-11 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881318', 'tblTempUsageDetail_20' ) start [2025-04-11 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881318', 'tblTempUsageDetail_20' ) end [2025-04-11 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 02:59:22] Production.INFO: ==27047== Releasing lock... [2025-04-11 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 02:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:00:06 [end_date_ymd] => 2025-04-11 03:00:06 [RateCDR] => 1 ) [2025-04-11 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:00:06' and `end` < '2025-04-11 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:00:18] Production.INFO: count ==172 [2025-04-11 03:00:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:00:06 - End Time 2025-04-11 03:00:06 [2025-04-11 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881323', 'tblTempUsageDetail_20' ) start [2025-04-11 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881323', 'tblTempUsageDetail_20' ) end [2025-04-11 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881323', 'tblTempVendorCDR_20' ) start [2025-04-11 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881323', 'tblTempVendorCDR_20' ) end [2025-04-11 03:00:18] Production.INFO: ProcessCDR(1,14881323,1,1,2) [2025-04-11 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881323', 'tblTempUsageDetail_20' ) start [2025-04-11 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881323', 'tblTempUsageDetail_20' ) end [2025-04-11 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:00:22] Production.INFO: ==27130== Releasing lock... [2025-04-11 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:01:05 [end_date_ymd] => 2025-04-11 03:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:01:05' and `end` < '2025-04-11 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-04-11 03:01:18] Production.INFO: count ==172 [2025-04-11 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:01:05 - End Time 2025-04-11 03:01:05 [2025-04-11 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881329', 'tblTempUsageDetail_20' ) start [2025-04-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881329', 'tblTempUsageDetail_20' ) end [2025-04-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881329', 'tblTempVendorCDR_20' ) start [2025-04-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881329', 'tblTempVendorCDR_20' ) end [2025-04-11 03:01:18] Production.INFO: ProcessCDR(1,14881329,1,1,2) [2025-04-11 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881329', 'tblTempUsageDetail_20' ) start [2025-04-11 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881329', 'tblTempUsageDetail_20' ) end [2025-04-11 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:01:21] Production.INFO: ==27219== Releasing lock... [2025-04-11 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:02:05 [end_date_ymd] => 2025-04-11 03:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:02:05' and `end` < '2025-04-11 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-04-11 03:02:18] Production.INFO: count ==249 [2025-04-11 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:02:05 - End Time 2025-04-11 03:02:05 [2025-04-11 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881334', 'tblTempUsageDetail_20' ) start [2025-04-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881334', 'tblTempUsageDetail_20' ) end [2025-04-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881334', 'tblTempVendorCDR_20' ) start [2025-04-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881334', 'tblTempVendorCDR_20' ) end [2025-04-11 03:02:18] Production.INFO: ProcessCDR(1,14881334,1,1,2) [2025-04-11 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881334', 'tblTempUsageDetail_20' ) start [2025-04-11 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881334', 'tblTempUsageDetail_20' ) end [2025-04-11 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:02:22] Production.INFO: ==27371== Releasing lock... [2025-04-11 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:03:05 [end_date_ymd] => 2025-04-11 03:03:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:03:05' and `end` < '2025-04-11 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-04-11 03:03:18] Production.INFO: count ==249 [2025-04-11 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:03:05 - End Time 2025-04-11 03:03:05 [2025-04-11 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881339', 'tblTempUsageDetail_20' ) start [2025-04-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881339', 'tblTempUsageDetail_20' ) end [2025-04-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881339', 'tblTempVendorCDR_20' ) start [2025-04-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881339', 'tblTempVendorCDR_20' ) end [2025-04-11 03:03:18] Production.INFO: ProcessCDR(1,14881339,1,1,2) [2025-04-11 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881339', 'tblTempUsageDetail_20' ) start [2025-04-11 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881339', 'tblTempUsageDetail_20' ) end [2025-04-11 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:03:21] Production.INFO: ==27445== Releasing lock... [2025-04-11 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:04:05 [end_date_ymd] => 2025-04-11 03:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:04:05' and `end` < '2025-04-11 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-04-11 03:04:18] Production.INFO: count ==249 [2025-04-11 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:04:05 - End Time 2025-04-11 03:04:05 [2025-04-11 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881344', 'tblTempUsageDetail_20' ) start [2025-04-11 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881344', 'tblTempUsageDetail_20' ) end [2025-04-11 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881344', 'tblTempVendorCDR_20' ) start [2025-04-11 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881344', 'tblTempVendorCDR_20' ) end [2025-04-11 03:04:18] Production.INFO: ProcessCDR(1,14881344,1,1,2) [2025-04-11 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881344', 'tblTempUsageDetail_20' ) start [2025-04-11 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881344', 'tblTempUsageDetail_20' ) end [2025-04-11 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:04:21] Production.INFO: ==27517== Releasing lock... [2025-04-11 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:05:05 [end_date_ymd] => 2025-04-11 03:05:05 [RateCDR] => 1 ) [2025-04-11 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:05:05' and `end` < '2025-04-11 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:05:18] Production.INFO: count ==247 [2025-04-11 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:05:05 - End Time 2025-04-11 03:05:05 [2025-04-11 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881349', 'tblTempUsageDetail_20' ) start [2025-04-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881349', 'tblTempUsageDetail_20' ) end [2025-04-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881349', 'tblTempVendorCDR_20' ) start [2025-04-11 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881349', 'tblTempVendorCDR_20' ) end [2025-04-11 03:05:18] Production.INFO: ProcessCDR(1,14881349,1,1,2) [2025-04-11 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881349', 'tblTempUsageDetail_20' ) start [2025-04-11 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881349', 'tblTempUsageDetail_20' ) end [2025-04-11 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:05:21] Production.INFO: ==27586== Releasing lock... [2025-04-11 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:06:05 [end_date_ymd] => 2025-04-11 03:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:06:05' and `end` < '2025-04-11 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-04-11 03:06:18] Production.INFO: count ==247 [2025-04-11 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:06:05 - End Time 2025-04-11 03:06:05 [2025-04-11 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881354', 'tblTempUsageDetail_20' ) start [2025-04-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881354', 'tblTempUsageDetail_20' ) end [2025-04-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881354', 'tblTempVendorCDR_20' ) start [2025-04-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881354', 'tblTempVendorCDR_20' ) end [2025-04-11 03:06:18] Production.INFO: ProcessCDR(1,14881354,1,1,2) [2025-04-11 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881354', 'tblTempUsageDetail_20' ) start [2025-04-11 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881354', 'tblTempUsageDetail_20' ) end [2025-04-11 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:06:22] Production.INFO: ==27749== Releasing lock... [2025-04-11 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:07:04 [end_date_ymd] => 2025-04-11 03:07:04 [RateCDR] => 1 ) [2025-04-11 03:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:07:04' and `end` < '2025-04-11 03:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:07:17] Production.INFO: count ==247 [2025-04-11 03:07:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:07:04 - End Time 2025-04-11 03:07:04 [2025-04-11 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881359', 'tblTempUsageDetail_20' ) start [2025-04-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881359', 'tblTempUsageDetail_20' ) end [2025-04-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881359', 'tblTempVendorCDR_20' ) start [2025-04-11 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881359', 'tblTempVendorCDR_20' ) end [2025-04-11 03:07:17] Production.INFO: ProcessCDR(1,14881359,1,1,2) [2025-04-11 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881359', 'tblTempUsageDetail_20' ) start [2025-04-11 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881359', 'tblTempUsageDetail_20' ) end [2025-04-11 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:07:20] Production.INFO: ==27820== Releasing lock... [2025-04-11 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:07:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:08:05 [end_date_ymd] => 2025-04-11 03:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:08:05' and `end` < '2025-04-11 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-04-11 03:08:18] Production.INFO: count ==247 [2025-04-11 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:08:05 - End Time 2025-04-11 03:08:05 [2025-04-11 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881364', 'tblTempUsageDetail_20' ) start [2025-04-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881364', 'tblTempUsageDetail_20' ) end [2025-04-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881364', 'tblTempVendorCDR_20' ) start [2025-04-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881364', 'tblTempVendorCDR_20' ) end [2025-04-11 03:08:18] Production.INFO: ProcessCDR(1,14881364,1,1,2) [2025-04-11 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881364', 'tblTempUsageDetail_20' ) start [2025-04-11 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881364', 'tblTempUsageDetail_20' ) end [2025-04-11 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:08:21] Production.INFO: ==27891== Releasing lock... [2025-04-11 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:09:05 [end_date_ymd] => 2025-04-11 03:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:09:05' and `end` < '2025-04-11 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-04-11 03:09:17] Production.INFO: count ==247 [2025-04-11 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:09:05 - End Time 2025-04-11 03:09:05 [2025-04-11 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881369', 'tblTempUsageDetail_20' ) start [2025-04-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881369', 'tblTempUsageDetail_20' ) end [2025-04-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881369', 'tblTempVendorCDR_20' ) start [2025-04-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881369', 'tblTempVendorCDR_20' ) end [2025-04-11 03:09:18] Production.INFO: ProcessCDR(1,14881369,1,1,2) [2025-04-11 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881369', 'tblTempUsageDetail_20' ) start [2025-04-11 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881369', 'tblTempUsageDetail_20' ) end [2025-04-11 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:09:21] Production.INFO: ==28041== Releasing lock... [2025-04-11 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:10:06 [end_date_ymd] => 2025-04-11 03:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:10:06' and `end` < '2025-04-11 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-04-11 03:10:19] Production.INFO: count ==237 [2025-04-11 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 00:10:06 - End Time 2025-04-11 03:10:06 [2025-04-11 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881375', 'tblTempUsageDetail_20' ) start [2025-04-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881375', 'tblTempUsageDetail_20' ) end [2025-04-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881375', 'tblTempVendorCDR_20' ) start [2025-04-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881375', 'tblTempVendorCDR_20' ) end [2025-04-11 03:10:19] Production.INFO: ProcessCDR(1,14881375,1,1,2) [2025-04-11 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881375', 'tblTempUsageDetail_20' ) start [2025-04-11 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881375', 'tblTempUsageDetail_20' ) end [2025-04-11 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:10:22] Production.INFO: ==28117== Releasing lock... [2025-04-11 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:10:22] Production.INFO: 30 MB #Memory Used# [2025-04-11 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:11:06 [end_date_ymd] => 2025-04-11 03:11:06 [RateCDR] => 1 ) [2025-04-11 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:11:06' and `end` < '2025-04-11 03: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-04-11 03:11:19] Production.INFO: count ==215 [2025-04-11 03:11:19] Production.ERROR: pbx CDR StartTime 2025-04-11 00:11:06 - End Time 2025-04-11 03:11:06 [2025-04-11 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881380', 'tblTempUsageDetail_20' ) start [2025-04-11 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881380', 'tblTempUsageDetail_20' ) end [2025-04-11 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881380', 'tblTempVendorCDR_20' ) start [2025-04-11 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881380', 'tblTempVendorCDR_20' ) end [2025-04-11 03:11:19] Production.INFO: ProcessCDR(1,14881380,1,1,2) [2025-04-11 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881380', 'tblTempUsageDetail_20' ) start [2025-04-11 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881380', 'tblTempUsageDetail_20' ) end [2025-04-11 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:11:22] Production.INFO: ==28190== Releasing lock... [2025-04-11 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:11:22] Production.INFO: 30 MB #Memory Used# [2025-04-11 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:12:05 [end_date_ymd] => 2025-04-11 03:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:12:05' and `end` < '2025-04-11 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-04-11 03:12:18] Production.INFO: count ==214 [2025-04-11 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:12:05 - End Time 2025-04-11 03:12:05 [2025-04-11 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881385', 'tblTempUsageDetail_20' ) start [2025-04-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881385', 'tblTempUsageDetail_20' ) end [2025-04-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881385', 'tblTempVendorCDR_20' ) start [2025-04-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881385', 'tblTempVendorCDR_20' ) end [2025-04-11 03:12:18] Production.INFO: ProcessCDR(1,14881385,1,1,2) [2025-04-11 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881385', 'tblTempUsageDetail_20' ) start [2025-04-11 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881385', 'tblTempUsageDetail_20' ) end [2025-04-11 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:12:21] Production.INFO: ==28263== Releasing lock... [2025-04-11 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:12:21] Production.INFO: 30 MB #Memory Used# [2025-04-11 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:13:05 [end_date_ymd] => 2025-04-11 03:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:13:05' and `end` < '2025-04-11 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-04-11 03:13:18] Production.INFO: count ==214 [2025-04-11 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:13:05 - End Time 2025-04-11 03:13:05 [2025-04-11 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881390', 'tblTempUsageDetail_20' ) start [2025-04-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881390', 'tblTempUsageDetail_20' ) end [2025-04-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881390', 'tblTempVendorCDR_20' ) start [2025-04-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881390', 'tblTempVendorCDR_20' ) end [2025-04-11 03:13:18] Production.INFO: ProcessCDR(1,14881390,1,1,2) [2025-04-11 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881390', 'tblTempUsageDetail_20' ) start [2025-04-11 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881390', 'tblTempUsageDetail_20' ) end [2025-04-11 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:13:22] Production.INFO: ==28416== Releasing lock... [2025-04-11 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:13:22] Production.INFO: 30 MB #Memory Used# [2025-04-11 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:14:05 [end_date_ymd] => 2025-04-11 03:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:14:05' and `end` < '2025-04-11 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-04-11 03:14:18] Production.INFO: count ==213 [2025-04-11 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:14:05 - End Time 2025-04-11 03:14:05 [2025-04-11 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881395', 'tblTempUsageDetail_20' ) start [2025-04-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881395', 'tblTempUsageDetail_20' ) end [2025-04-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881395', 'tblTempVendorCDR_20' ) start [2025-04-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881395', 'tblTempVendorCDR_20' ) end [2025-04-11 03:14:18] Production.INFO: ProcessCDR(1,14881395,1,1,2) [2025-04-11 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881395', 'tblTempUsageDetail_20' ) start [2025-04-11 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881395', 'tblTempUsageDetail_20' ) end [2025-04-11 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:14:21] Production.INFO: ==28534== Releasing lock... [2025-04-11 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:15:05 [end_date_ymd] => 2025-04-11 03:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:15:05' and `end` < '2025-04-11 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-04-11 03:15:18] Production.INFO: count ==213 [2025-04-11 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:15:05 - End Time 2025-04-11 03:15:05 [2025-04-11 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881400', 'tblTempUsageDetail_20' ) start [2025-04-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881400', 'tblTempUsageDetail_20' ) end [2025-04-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881400', 'tblTempVendorCDR_20' ) start [2025-04-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881400', 'tblTempVendorCDR_20' ) end [2025-04-11 03:15:18] Production.INFO: ProcessCDR(1,14881400,1,1,2) [2025-04-11 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881400', 'tblTempUsageDetail_20' ) start [2025-04-11 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881400', 'tblTempUsageDetail_20' ) end [2025-04-11 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:15:21] Production.INFO: ==28604== Releasing lock... [2025-04-11 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:16:05 [end_date_ymd] => 2025-04-11 03:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:16:05' and `end` < '2025-04-11 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-04-11 03:16:17] Production.INFO: count ==213 [2025-04-11 03:16:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:16:05 - End Time 2025-04-11 03:16:05 [2025-04-11 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881405', 'tblTempUsageDetail_20' ) start [2025-04-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881405', 'tblTempUsageDetail_20' ) end [2025-04-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881405', 'tblTempVendorCDR_20' ) start [2025-04-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881405', 'tblTempVendorCDR_20' ) end [2025-04-11 03:16:17] Production.INFO: ProcessCDR(1,14881405,1,1,2) [2025-04-11 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881405', 'tblTempUsageDetail_20' ) start [2025-04-11 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881405', 'tblTempUsageDetail_20' ) end [2025-04-11 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:16:21] Production.INFO: ==28676== Releasing lock... [2025-04-11 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:17:05 [end_date_ymd] => 2025-04-11 03:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:17:05' and `end` < '2025-04-11 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-04-11 03:17:18] Production.INFO: count ==213 [2025-04-11 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:17:05 - End Time 2025-04-11 03:17:05 [2025-04-11 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881410', 'tblTempUsageDetail_20' ) start [2025-04-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881410', 'tblTempUsageDetail_20' ) end [2025-04-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881410', 'tblTempVendorCDR_20' ) start [2025-04-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881410', 'tblTempVendorCDR_20' ) end [2025-04-11 03:17:18] Production.INFO: ProcessCDR(1,14881410,1,1,2) [2025-04-11 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881410', 'tblTempUsageDetail_20' ) start [2025-04-11 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881410', 'tblTempUsageDetail_20' ) end [2025-04-11 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:17:21] Production.INFO: ==28830== Releasing lock... [2025-04-11 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:18:05 [end_date_ymd] => 2025-04-11 03:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:18:05' and `end` < '2025-04-11 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-04-11 03:18:17] Production.INFO: count ==213 [2025-04-11 03:18:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:18:05 - End Time 2025-04-11 03:18:05 [2025-04-11 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881415', 'tblTempUsageDetail_20' ) start [2025-04-11 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881415', 'tblTempUsageDetail_20' ) end [2025-04-11 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881415', 'tblTempVendorCDR_20' ) start [2025-04-11 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881415', 'tblTempVendorCDR_20' ) end [2025-04-11 03:18:17] Production.INFO: ProcessCDR(1,14881415,1,1,2) [2025-04-11 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881415', 'tblTempUsageDetail_20' ) start [2025-04-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881415', 'tblTempUsageDetail_20' ) end [2025-04-11 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:18:21] Production.INFO: ==28905== Releasing lock... [2025-04-11 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:19:05 [end_date_ymd] => 2025-04-11 03:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:19:05' and `end` < '2025-04-11 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-04-11 03:19:18] Production.INFO: count ==212 [2025-04-11 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:19:05 - End Time 2025-04-11 03:19:05 [2025-04-11 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881420', 'tblTempUsageDetail_20' ) start [2025-04-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881420', 'tblTempUsageDetail_20' ) end [2025-04-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881420', 'tblTempVendorCDR_20' ) start [2025-04-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881420', 'tblTempVendorCDR_20' ) end [2025-04-11 03:19:18] Production.INFO: ProcessCDR(1,14881420,1,1,2) [2025-04-11 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881420', 'tblTempUsageDetail_20' ) start [2025-04-11 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881420', 'tblTempUsageDetail_20' ) end [2025-04-11 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:19:21] Production.INFO: ==28975== Releasing lock... [2025-04-11 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:20:05 [end_date_ymd] => 2025-04-11 03:20:05 [RateCDR] => 1 ) [2025-04-11 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:20:05' and `end` < '2025-04-11 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:20:18] Production.INFO: count ==204 [2025-04-11 03:20:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:20:05 - End Time 2025-04-11 03:20:05 [2025-04-11 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881426', 'tblTempUsageDetail_20' ) start [2025-04-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881426', 'tblTempUsageDetail_20' ) end [2025-04-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881426', 'tblTempVendorCDR_20' ) start [2025-04-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881426', 'tblTempVendorCDR_20' ) end [2025-04-11 03:20:18] Production.INFO: ProcessCDR(1,14881426,1,1,2) [2025-04-11 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881426', 'tblTempUsageDetail_20' ) start [2025-04-11 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881426', 'tblTempUsageDetail_20' ) end [2025-04-11 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:20:21] Production.INFO: ==29047== Releasing lock... [2025-04-11 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:21:05 [end_date_ymd] => 2025-04-11 03:21:05 [RateCDR] => 1 ) [2025-04-11 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:21:05' and `end` < '2025-04-11 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:21:18] Production.INFO: count ==204 [2025-04-11 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:21:05 - End Time 2025-04-11 03:21:05 [2025-04-11 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881431', 'tblTempUsageDetail_20' ) start [2025-04-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881431', 'tblTempUsageDetail_20' ) end [2025-04-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881431', 'tblTempVendorCDR_20' ) start [2025-04-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881431', 'tblTempVendorCDR_20' ) end [2025-04-11 03:21:18] Production.INFO: ProcessCDR(1,14881431,1,1,2) [2025-04-11 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881431', 'tblTempUsageDetail_20' ) start [2025-04-11 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881431', 'tblTempUsageDetail_20' ) end [2025-04-11 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:21:21] Production.INFO: ==29125== Releasing lock... [2025-04-11 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:22:05 [end_date_ymd] => 2025-04-11 03:22:05 [RateCDR] => 1 ) [2025-04-11 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:22:05' and `end` < '2025-04-11 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:22:18] Production.INFO: count ==203 [2025-04-11 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:22:05 - End Time 2025-04-11 03:22:05 [2025-04-11 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881436', 'tblTempUsageDetail_20' ) start [2025-04-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881436', 'tblTempUsageDetail_20' ) end [2025-04-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881436', 'tblTempVendorCDR_20' ) start [2025-04-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881436', 'tblTempVendorCDR_20' ) end [2025-04-11 03:22:18] Production.INFO: ProcessCDR(1,14881436,1,1,2) [2025-04-11 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881436', 'tblTempUsageDetail_20' ) start [2025-04-11 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881436', 'tblTempUsageDetail_20' ) end [2025-04-11 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:22:21] Production.INFO: ==29197== Releasing lock... [2025-04-11 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:23:05 [end_date_ymd] => 2025-04-11 03:23:05 [RateCDR] => 1 ) [2025-04-11 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:23:05' and `end` < '2025-04-11 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:23:18] Production.INFO: count ==201 [2025-04-11 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:23:05 - End Time 2025-04-11 03:23:05 [2025-04-11 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881441', 'tblTempUsageDetail_20' ) start [2025-04-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881441', 'tblTempUsageDetail_20' ) end [2025-04-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881441', 'tblTempVendorCDR_20' ) start [2025-04-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881441', 'tblTempVendorCDR_20' ) end [2025-04-11 03:23:18] Production.INFO: ProcessCDR(1,14881441,1,1,2) [2025-04-11 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881441', 'tblTempUsageDetail_20' ) start [2025-04-11 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881441', 'tblTempUsageDetail_20' ) end [2025-04-11 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:23:21] Production.INFO: ==29278== Releasing lock... [2025-04-11 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:24:05 [end_date_ymd] => 2025-04-11 03:24:05 [RateCDR] => 1 ) [2025-04-11 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:24:05' and `end` < '2025-04-11 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-04-11 03:24:18] Production.INFO: count ==200 [2025-04-11 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:24:05 - End Time 2025-04-11 03:24:05 [2025-04-11 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881446', 'tblTempUsageDetail_20' ) start [2025-04-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881446', 'tblTempUsageDetail_20' ) end [2025-04-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881446', 'tblTempVendorCDR_20' ) start [2025-04-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881446', 'tblTempVendorCDR_20' ) end [2025-04-11 03:24:18] Production.INFO: ProcessCDR(1,14881446,1,1,2) [2025-04-11 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881446', 'tblTempUsageDetail_20' ) start [2025-04-11 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881446', 'tblTempUsageDetail_20' ) end [2025-04-11 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:24:21] Production.INFO: ==29347== Releasing lock... [2025-04-11 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:25:04 [end_date_ymd] => 2025-04-11 03:25:04 [RateCDR] => 1 ) [2025-04-11 03:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:25:04' and `end` < '2025-04-11 03:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:25:17] Production.INFO: count ==200 [2025-04-11 03:25:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:25:04 - End Time 2025-04-11 03:25:04 [2025-04-11 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881451', 'tblTempUsageDetail_20' ) start [2025-04-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881451', 'tblTempUsageDetail_20' ) end [2025-04-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881451', 'tblTempVendorCDR_20' ) start [2025-04-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881451', 'tblTempVendorCDR_20' ) end [2025-04-11 03:25:17] Production.INFO: ProcessCDR(1,14881451,1,1,2) [2025-04-11 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881451', 'tblTempUsageDetail_20' ) start [2025-04-11 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881451', 'tblTempUsageDetail_20' ) end [2025-04-11 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:25:20] Production.INFO: ==29420== Releasing lock... [2025-04-11 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:26:05 [end_date_ymd] => 2025-04-11 03:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:26:05' and `end` < '2025-04-11 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-04-11 03:26:18] Production.INFO: count ==197 [2025-04-11 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:26:05 - End Time 2025-04-11 03:26:05 [2025-04-11 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881456', 'tblTempUsageDetail_20' ) start [2025-04-11 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881456', 'tblTempUsageDetail_20' ) end [2025-04-11 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881456', 'tblTempVendorCDR_20' ) start [2025-04-11 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881456', 'tblTempVendorCDR_20' ) end [2025-04-11 03:26:18] Production.INFO: ProcessCDR(1,14881456,1,1,2) [2025-04-11 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881456', 'tblTempUsageDetail_20' ) start [2025-04-11 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881456', 'tblTempUsageDetail_20' ) end [2025-04-11 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:26:21] Production.INFO: ==29493== Releasing lock... [2025-04-11 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:27:04 [end_date_ymd] => 2025-04-11 03:27:04 [RateCDR] => 1 ) [2025-04-11 03:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:27:04' and `end` < '2025-04-11 03:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:27:17] Production.INFO: count ==197 [2025-04-11 03:27:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:27:04 - End Time 2025-04-11 03:27:04 [2025-04-11 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881461', 'tblTempUsageDetail_20' ) start [2025-04-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881461', 'tblTempUsageDetail_20' ) end [2025-04-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881461', 'tblTempVendorCDR_20' ) start [2025-04-11 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881461', 'tblTempVendorCDR_20' ) end [2025-04-11 03:27:17] Production.INFO: ProcessCDR(1,14881461,1,1,2) [2025-04-11 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881461', 'tblTempUsageDetail_20' ) start [2025-04-11 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881461', 'tblTempUsageDetail_20' ) end [2025-04-11 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:27:20] Production.INFO: ==29565== Releasing lock... [2025-04-11 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:27:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:28:05 [end_date_ymd] => 2025-04-11 03:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:28:05' and `end` < '2025-04-11 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-04-11 03:28:18] Production.INFO: count ==197 [2025-04-11 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:28:05 - End Time 2025-04-11 03:28:05 [2025-04-11 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881466', 'tblTempUsageDetail_20' ) start [2025-04-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881466', 'tblTempUsageDetail_20' ) end [2025-04-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881466', 'tblTempVendorCDR_20' ) start [2025-04-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881466', 'tblTempVendorCDR_20' ) end [2025-04-11 03:28:18] Production.INFO: ProcessCDR(1,14881466,1,1,2) [2025-04-11 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881466', 'tblTempUsageDetail_20' ) start [2025-04-11 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881466', 'tblTempUsageDetail_20' ) end [2025-04-11 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:28:21] Production.INFO: ==29643== Releasing lock... [2025-04-11 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:29:05 [end_date_ymd] => 2025-04-11 03:29:05 [RateCDR] => 1 ) [2025-04-11 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:29:05' and `end` < '2025-04-11 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:29:17] Production.INFO: count ==197 [2025-04-11 03:29:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:29:05 - End Time 2025-04-11 03:29:05 [2025-04-11 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881471', 'tblTempUsageDetail_20' ) start [2025-04-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881471', 'tblTempUsageDetail_20' ) end [2025-04-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881471', 'tblTempVendorCDR_20' ) start [2025-04-11 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881471', 'tblTempVendorCDR_20' ) end [2025-04-11 03:29:17] Production.INFO: ProcessCDR(1,14881471,1,1,2) [2025-04-11 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881471', 'tblTempUsageDetail_20' ) start [2025-04-11 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881471', 'tblTempUsageDetail_20' ) end [2025-04-11 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:29:21] Production.INFO: ==29719== Releasing lock... [2025-04-11 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:30:06 [end_date_ymd] => 2025-04-11 03:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:30:06' and `end` < '2025-04-11 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-04-11 03:30:19] Production.INFO: count ==187 [2025-04-11 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 00:30:06 - End Time 2025-04-11 03:30:06 [2025-04-11 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881476', 'tblTempUsageDetail_20' ) start [2025-04-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881476', 'tblTempUsageDetail_20' ) end [2025-04-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881476', 'tblTempVendorCDR_20' ) start [2025-04-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881476', 'tblTempVendorCDR_20' ) end [2025-04-11 03:30:19] Production.INFO: ProcessCDR(1,14881476,1,1,2) [2025-04-11 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881476', 'tblTempUsageDetail_20' ) start [2025-04-11 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881476', 'tblTempUsageDetail_20' ) end [2025-04-11 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:30:22] Production.INFO: ==29808== Releasing lock... [2025-04-11 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:31:05 [end_date_ymd] => 2025-04-11 03:31:05 [RateCDR] => 1 ) [2025-04-11 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:31:05' and `end` < '2025-04-11 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:31:18] Production.INFO: count ==183 [2025-04-11 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:31:05 - End Time 2025-04-11 03:31:05 [2025-04-11 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881482', 'tblTempUsageDetail_20' ) start [2025-04-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881482', 'tblTempUsageDetail_20' ) end [2025-04-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881482', 'tblTempVendorCDR_20' ) start [2025-04-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881482', 'tblTempVendorCDR_20' ) end [2025-04-11 03:31:18] Production.INFO: ProcessCDR(1,14881482,1,1,2) [2025-04-11 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881482', 'tblTempUsageDetail_20' ) start [2025-04-11 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881482', 'tblTempUsageDetail_20' ) end [2025-04-11 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:31:21] Production.INFO: ==29944== Releasing lock... [2025-04-11 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:32:05 [end_date_ymd] => 2025-04-11 03:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:32:05' and `end` < '2025-04-11 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:32:18] Production.INFO: count ==183 [2025-04-11 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:32:05 - End Time 2025-04-11 03:32:05 [2025-04-11 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881487', 'tblTempUsageDetail_20' ) start [2025-04-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881487', 'tblTempUsageDetail_20' ) end [2025-04-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881487', 'tblTempVendorCDR_20' ) start [2025-04-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881487', 'tblTempVendorCDR_20' ) end [2025-04-11 03:32:18] Production.INFO: ProcessCDR(1,14881487,1,1,2) [2025-04-11 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881487', 'tblTempUsageDetail_20' ) start [2025-04-11 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881487', 'tblTempUsageDetail_20' ) end [2025-04-11 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:32:22] Production.INFO: ==30018== Releasing lock... [2025-04-11 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:33:06 [end_date_ymd] => 2025-04-11 03:33:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:33:06' and `end` < '2025-04-11 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-04-11 03:33:18] Production.INFO: count ==183 [2025-04-11 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:33:06 - End Time 2025-04-11 03:33:06 [2025-04-11 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881492', 'tblTempUsageDetail_20' ) start [2025-04-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881492', 'tblTempUsageDetail_20' ) end [2025-04-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881492', 'tblTempVendorCDR_20' ) start [2025-04-11 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881492', 'tblTempVendorCDR_20' ) end [2025-04-11 03:33:18] Production.INFO: ProcessCDR(1,14881492,1,1,2) [2025-04-11 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881492', 'tblTempUsageDetail_20' ) start [2025-04-11 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881492', 'tblTempUsageDetail_20' ) end [2025-04-11 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:33:22] Production.INFO: ==30091== Releasing lock... [2025-04-11 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:34:06 [end_date_ymd] => 2025-04-11 03:34:06 [RateCDR] => 1 ) [2025-04-11 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:34:06' and `end` < '2025-04-11 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:34:18] Production.INFO: count ==183 [2025-04-11 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:34:06 - End Time 2025-04-11 03:34:06 [2025-04-11 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881497', 'tblTempUsageDetail_20' ) start [2025-04-11 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881497', 'tblTempUsageDetail_20' ) end [2025-04-11 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881497', 'tblTempVendorCDR_20' ) start [2025-04-11 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881497', 'tblTempVendorCDR_20' ) end [2025-04-11 03:34:19] Production.INFO: ProcessCDR(1,14881497,1,1,2) [2025-04-11 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881497', 'tblTempUsageDetail_20' ) start [2025-04-11 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881497', 'tblTempUsageDetail_20' ) end [2025-04-11 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:34:22] Production.INFO: ==30166== Releasing lock... [2025-04-11 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:35:05 [end_date_ymd] => 2025-04-11 03:35:05 [RateCDR] => 1 ) [2025-04-11 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:35:05' and `end` < '2025-04-11 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:35:18] Production.INFO: count ==183 [2025-04-11 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:35:05 - End Time 2025-04-11 03:35:05 [2025-04-11 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881502', 'tblTempUsageDetail_20' ) start [2025-04-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881502', 'tblTempUsageDetail_20' ) end [2025-04-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881502', 'tblTempVendorCDR_20' ) start [2025-04-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881502', 'tblTempVendorCDR_20' ) end [2025-04-11 03:35:18] Production.INFO: ProcessCDR(1,14881502,1,1,2) [2025-04-11 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881502', 'tblTempUsageDetail_20' ) start [2025-04-11 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881502', 'tblTempUsageDetail_20' ) end [2025-04-11 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:35:22] Production.INFO: ==30241== Releasing lock... [2025-04-11 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:36:05 [end_date_ymd] => 2025-04-11 03:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:36:05' and `end` < '2025-04-11 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-04-11 03:36:18] Production.INFO: count ==183 [2025-04-11 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:36:05 - End Time 2025-04-11 03:36:05 [2025-04-11 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881507', 'tblTempUsageDetail_20' ) start [2025-04-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881507', 'tblTempUsageDetail_20' ) end [2025-04-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881507', 'tblTempVendorCDR_20' ) start [2025-04-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881507', 'tblTempVendorCDR_20' ) end [2025-04-11 03:36:18] Production.INFO: ProcessCDR(1,14881507,1,1,2) [2025-04-11 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881507', 'tblTempUsageDetail_20' ) start [2025-04-11 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881507', 'tblTempUsageDetail_20' ) end [2025-04-11 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:36:21] Production.INFO: ==30318== Releasing lock... [2025-04-11 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:37:05 [end_date_ymd] => 2025-04-11 03:37:05 [RateCDR] => 1 ) [2025-04-11 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:37:05' and `end` < '2025-04-11 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:37:18] Production.INFO: count ==183 [2025-04-11 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:37:05 - End Time 2025-04-11 03:37:05 [2025-04-11 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881512', 'tblTempUsageDetail_20' ) start [2025-04-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881512', 'tblTempUsageDetail_20' ) end [2025-04-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881512', 'tblTempVendorCDR_20' ) start [2025-04-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881512', 'tblTempVendorCDR_20' ) end [2025-04-11 03:37:18] Production.INFO: ProcessCDR(1,14881512,1,1,2) [2025-04-11 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881512', 'tblTempUsageDetail_20' ) start [2025-04-11 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881512', 'tblTempUsageDetail_20' ) end [2025-04-11 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:37:22] Production.INFO: ==30392== Releasing lock... [2025-04-11 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:38:05 [end_date_ymd] => 2025-04-11 03:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:38:05' and `end` < '2025-04-11 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-04-11 03:38:18] Production.INFO: count ==183 [2025-04-11 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:38:05 - End Time 2025-04-11 03:38:05 [2025-04-11 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881517', 'tblTempUsageDetail_20' ) start [2025-04-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881517', 'tblTempUsageDetail_20' ) end [2025-04-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881517', 'tblTempVendorCDR_20' ) start [2025-04-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881517', 'tblTempVendorCDR_20' ) end [2025-04-11 03:38:18] Production.INFO: ProcessCDR(1,14881517,1,1,2) [2025-04-11 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881517', 'tblTempUsageDetail_20' ) start [2025-04-11 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881517', 'tblTempUsageDetail_20' ) end [2025-04-11 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:38:21] Production.INFO: ==30464== Releasing lock... [2025-04-11 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:39:05 [end_date_ymd] => 2025-04-11 03:39:05 [RateCDR] => 1 ) [2025-04-11 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:39:05' and `end` < '2025-04-11 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:39:18] Production.INFO: count ==183 [2025-04-11 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:39:05 - End Time 2025-04-11 03:39:05 [2025-04-11 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881522', 'tblTempUsageDetail_20' ) start [2025-04-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881522', 'tblTempUsageDetail_20' ) end [2025-04-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881522', 'tblTempVendorCDR_20' ) start [2025-04-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881522', 'tblTempVendorCDR_20' ) end [2025-04-11 03:39:18] Production.INFO: ProcessCDR(1,14881522,1,1,2) [2025-04-11 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881522', 'tblTempUsageDetail_20' ) start [2025-04-11 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881522', 'tblTempUsageDetail_20' ) end [2025-04-11 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:39:22] Production.INFO: ==30541== Releasing lock... [2025-04-11 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:40:06 [end_date_ymd] => 2025-04-11 03:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:40:06' and `end` < '2025-04-11 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-04-11 03:40:19] Production.INFO: count ==175 [2025-04-11 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 00:40:06 - End Time 2025-04-11 03:40:06 [2025-04-11 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881528', 'tblTempUsageDetail_20' ) start [2025-04-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881528', 'tblTempUsageDetail_20' ) end [2025-04-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881528', 'tblTempVendorCDR_20' ) start [2025-04-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881528', 'tblTempVendorCDR_20' ) end [2025-04-11 03:40:19] Production.INFO: ProcessCDR(1,14881528,1,1,2) [2025-04-11 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881528', 'tblTempUsageDetail_20' ) start [2025-04-11 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881528', 'tblTempUsageDetail_20' ) end [2025-04-11 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:40:22] Production.INFO: ==30624== Releasing lock... [2025-04-11 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:41:05 [end_date_ymd] => 2025-04-11 03:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:41:05' and `end` < '2025-04-11 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:41:18] Production.INFO: count ==175 [2025-04-11 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:41:05 - End Time 2025-04-11 03:41:05 [2025-04-11 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881533', 'tblTempUsageDetail_20' ) start [2025-04-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881533', 'tblTempUsageDetail_20' ) end [2025-04-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881533', 'tblTempVendorCDR_20' ) start [2025-04-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881533', 'tblTempVendorCDR_20' ) end [2025-04-11 03:41:18] Production.INFO: ProcessCDR(1,14881533,1,1,2) [2025-04-11 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881533', 'tblTempUsageDetail_20' ) start [2025-04-11 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881533', 'tblTempUsageDetail_20' ) end [2025-04-11 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:41:22] Production.INFO: ==30706== Releasing lock... [2025-04-11 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:42:05 [end_date_ymd] => 2025-04-11 03:42:05 [RateCDR] => 1 ) [2025-04-11 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:42:05' and `end` < '2025-04-11 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:42:17] Production.INFO: count ==175 [2025-04-11 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:42:05 - End Time 2025-04-11 03:42:05 [2025-04-11 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881538', 'tblTempUsageDetail_20' ) start [2025-04-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881538', 'tblTempUsageDetail_20' ) end [2025-04-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881538', 'tblTempVendorCDR_20' ) start [2025-04-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881538', 'tblTempVendorCDR_20' ) end [2025-04-11 03:42:18] Production.INFO: ProcessCDR(1,14881538,1,1,2) [2025-04-11 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881538', 'tblTempUsageDetail_20' ) start [2025-04-11 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881538', 'tblTempUsageDetail_20' ) end [2025-04-11 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:42:21] Production.INFO: ==30795== Releasing lock... [2025-04-11 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:43:05 [end_date_ymd] => 2025-04-11 03:43:05 [RateCDR] => 1 ) [2025-04-11 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:43:05' and `end` < '2025-04-11 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:43:18] Production.INFO: count ==175 [2025-04-11 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:43:05 - End Time 2025-04-11 03:43:05 [2025-04-11 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881543', 'tblTempUsageDetail_20' ) start [2025-04-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881543', 'tblTempUsageDetail_20' ) end [2025-04-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881543', 'tblTempVendorCDR_20' ) start [2025-04-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881543', 'tblTempVendorCDR_20' ) end [2025-04-11 03:43:18] Production.INFO: ProcessCDR(1,14881543,1,1,2) [2025-04-11 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881543', 'tblTempUsageDetail_20' ) start [2025-04-11 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881543', 'tblTempUsageDetail_20' ) end [2025-04-11 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:43:21] Production.INFO: ==30884== Releasing lock... [2025-04-11 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:44:05 [end_date_ymd] => 2025-04-11 03:44:05 [RateCDR] => 1 ) [2025-04-11 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:44:05' and `end` < '2025-04-11 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:44:18] Production.INFO: count ==175 [2025-04-11 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:44:05 - End Time 2025-04-11 03:44:05 [2025-04-11 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881548', 'tblTempUsageDetail_20' ) start [2025-04-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881548', 'tblTempUsageDetail_20' ) end [2025-04-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881548', 'tblTempVendorCDR_20' ) start [2025-04-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881548', 'tblTempVendorCDR_20' ) end [2025-04-11 03:44:18] Production.INFO: ProcessCDR(1,14881548,1,1,2) [2025-04-11 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881548', 'tblTempUsageDetail_20' ) start [2025-04-11 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881548', 'tblTempUsageDetail_20' ) end [2025-04-11 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:44:22] Production.INFO: ==30982== Releasing lock... [2025-04-11 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:45:05 [end_date_ymd] => 2025-04-11 03:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:45:05' and `end` < '2025-04-11 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-04-11 03:45:18] Production.INFO: count ==175 [2025-04-11 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:45:05 - End Time 2025-04-11 03:45:05 [2025-04-11 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881553', 'tblTempUsageDetail_20' ) start [2025-04-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881553', 'tblTempUsageDetail_20' ) end [2025-04-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881553', 'tblTempVendorCDR_20' ) start [2025-04-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881553', 'tblTempVendorCDR_20' ) end [2025-04-11 03:45:18] Production.INFO: ProcessCDR(1,14881553,1,1,2) [2025-04-11 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881553', 'tblTempUsageDetail_20' ) start [2025-04-11 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881553', 'tblTempUsageDetail_20' ) end [2025-04-11 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:45:21] Production.INFO: ==31073== Releasing lock... [2025-04-11 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:46:05 [end_date_ymd] => 2025-04-11 03:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:46:05' and `end` < '2025-04-11 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-04-11 03:46:18] Production.INFO: count ==175 [2025-04-11 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:46:05 - End Time 2025-04-11 03:46:05 [2025-04-11 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881558', 'tblTempUsageDetail_20' ) start [2025-04-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881558', 'tblTempUsageDetail_20' ) end [2025-04-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881558', 'tblTempVendorCDR_20' ) start [2025-04-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881558', 'tblTempVendorCDR_20' ) end [2025-04-11 03:46:18] Production.INFO: ProcessCDR(1,14881558,1,1,2) [2025-04-11 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881558', 'tblTempUsageDetail_20' ) start [2025-04-11 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881558', 'tblTempUsageDetail_20' ) end [2025-04-11 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:46:21] Production.INFO: ==31168== Releasing lock... [2025-04-11 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:47:05 [end_date_ymd] => 2025-04-11 03:47:05 [RateCDR] => 1 ) [2025-04-11 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:47:05' and `end` < '2025-04-11 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:47:17] Production.INFO: count ==175 [2025-04-11 03:47:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:47:05 - End Time 2025-04-11 03:47:05 [2025-04-11 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881563', 'tblTempUsageDetail_20' ) start [2025-04-11 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881563', 'tblTempUsageDetail_20' ) end [2025-04-11 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881563', 'tblTempVendorCDR_20' ) start [2025-04-11 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881563', 'tblTempVendorCDR_20' ) end [2025-04-11 03:47:17] Production.INFO: ProcessCDR(1,14881563,1,1,2) [2025-04-11 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881563', 'tblTempUsageDetail_20' ) start [2025-04-11 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881563', 'tblTempUsageDetail_20' ) end [2025-04-11 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:47:21] Production.INFO: ==31303== Releasing lock... [2025-04-11 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:48:06 [end_date_ymd] => 2025-04-11 03:48:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:48:06' and `end` < '2025-04-11 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-04-11 03:48:18] Production.INFO: count ==175 [2025-04-11 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:48:06 - End Time 2025-04-11 03:48:06 [2025-04-11 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881568', 'tblTempUsageDetail_20' ) start [2025-04-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881568', 'tblTempUsageDetail_20' ) end [2025-04-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881568', 'tblTempVendorCDR_20' ) start [2025-04-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881568', 'tblTempVendorCDR_20' ) end [2025-04-11 03:48:18] Production.INFO: ProcessCDR(1,14881568,1,1,2) [2025-04-11 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881568', 'tblTempUsageDetail_20' ) start [2025-04-11 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881568', 'tblTempUsageDetail_20' ) end [2025-04-11 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:48:22] Production.INFO: ==31393== Releasing lock... [2025-04-11 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:49:05 [end_date_ymd] => 2025-04-11 03:49:05 [RateCDR] => 1 ) [2025-04-11 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:49:05' and `end` < '2025-04-11 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:49:17] Production.INFO: count ==175 [2025-04-11 03:49:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:49:05 - End Time 2025-04-11 03:49:05 [2025-04-11 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881573', 'tblTempUsageDetail_20' ) start [2025-04-11 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881573', 'tblTempUsageDetail_20' ) end [2025-04-11 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881573', 'tblTempVendorCDR_20' ) start [2025-04-11 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881573', 'tblTempVendorCDR_20' ) end [2025-04-11 03:49:17] Production.INFO: ProcessCDR(1,14881573,1,1,2) [2025-04-11 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881573', 'tblTempUsageDetail_20' ) start [2025-04-11 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881573', 'tblTempUsageDetail_20' ) end [2025-04-11 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:49:21] Production.INFO: ==31484== Releasing lock... [2025-04-11 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:50:06 [end_date_ymd] => 2025-04-11 03:50:06 [RateCDR] => 1 ) [2025-04-11 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:50:06' and `end` < '2025-04-11 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:50:19] Production.INFO: count ==175 [2025-04-11 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 00:50:06 - End Time 2025-04-11 03:50:06 [2025-04-11 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881579', 'tblTempUsageDetail_20' ) start [2025-04-11 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881579', 'tblTempUsageDetail_20' ) end [2025-04-11 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881579', 'tblTempVendorCDR_20' ) start [2025-04-11 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881579', 'tblTempVendorCDR_20' ) end [2025-04-11 03:50:19] Production.INFO: ProcessCDR(1,14881579,1,1,2) [2025-04-11 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881579', 'tblTempUsageDetail_20' ) start [2025-04-11 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881579', 'tblTempUsageDetail_20' ) end [2025-04-11 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:50:22] Production.INFO: ==31582== Releasing lock... [2025-04-11 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:51:04 [end_date_ymd] => 2025-04-11 03:51:04 [RateCDR] => 1 ) [2025-04-11 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:51:04' and `end` < '2025-04-11 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:51:17] Production.INFO: count ==175 [2025-04-11 03:51:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:51:04 - End Time 2025-04-11 03:51:04 [2025-04-11 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881580', 'tblTempUsageDetail_20' ) start [2025-04-11 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881580', 'tblTempUsageDetail_20' ) end [2025-04-11 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881580', 'tblTempVendorCDR_20' ) start [2025-04-11 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881580', 'tblTempVendorCDR_20' ) end [2025-04-11 03:51:17] Production.INFO: ProcessCDR(1,14881580,1,1,2) [2025-04-11 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881580', 'tblTempUsageDetail_20' ) start [2025-04-11 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881580', 'tblTempUsageDetail_20' ) end [2025-04-11 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:51:20] Production.INFO: ==31677== Releasing lock... [2025-04-11 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:52:05 [end_date_ymd] => 2025-04-11 03:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:52:05' and `end` < '2025-04-11 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-04-11 03:52:18] Production.INFO: count ==175 [2025-04-11 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:52:05 - End Time 2025-04-11 03:52:05 [2025-04-11 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881589', 'tblTempUsageDetail_20' ) start [2025-04-11 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881589', 'tblTempUsageDetail_20' ) end [2025-04-11 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881589', 'tblTempVendorCDR_20' ) start [2025-04-11 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881589', 'tblTempVendorCDR_20' ) end [2025-04-11 03:52:18] Production.INFO: ProcessCDR(1,14881589,1,1,2) [2025-04-11 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881589', 'tblTempUsageDetail_20' ) start [2025-04-11 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881589', 'tblTempUsageDetail_20' ) end [2025-04-11 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:52:22] Production.INFO: ==31773== Releasing lock... [2025-04-11 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:53:05 [end_date_ymd] => 2025-04-11 03:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:53:05' and `end` < '2025-04-11 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-04-11 03:53:18] Production.INFO: count ==175 [2025-04-11 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:53:05 - End Time 2025-04-11 03:53:05 [2025-04-11 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881594', 'tblTempUsageDetail_20' ) start [2025-04-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881594', 'tblTempUsageDetail_20' ) end [2025-04-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881594', 'tblTempVendorCDR_20' ) start [2025-04-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881594', 'tblTempVendorCDR_20' ) end [2025-04-11 03:53:18] Production.INFO: ProcessCDR(1,14881594,1,1,2) [2025-04-11 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881594', 'tblTempUsageDetail_20' ) start [2025-04-11 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881594', 'tblTempUsageDetail_20' ) end [2025-04-11 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:53:22] Production.INFO: ==31862== Releasing lock... [2025-04-11 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:54:05 [end_date_ymd] => 2025-04-11 03:54:05 [RateCDR] => 1 ) [2025-04-11 03: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-04-11 00:54:05' and `end` < '2025-04-11 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-04-11 03:54:18] Production.INFO: count ==175 [2025-04-11 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:54:05 - End Time 2025-04-11 03:54:05 [2025-04-11 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881599', 'tblTempUsageDetail_20' ) start [2025-04-11 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881599', 'tblTempUsageDetail_20' ) end [2025-04-11 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881599', 'tblTempVendorCDR_20' ) start [2025-04-11 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881599', 'tblTempVendorCDR_20' ) end [2025-04-11 03:54:18] Production.INFO: ProcessCDR(1,14881599,1,1,2) [2025-04-11 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881599', 'tblTempUsageDetail_20' ) start [2025-04-11 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881599', 'tblTempUsageDetail_20' ) end [2025-04-11 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:54:22] Production.INFO: ==31952== Releasing lock... [2025-04-11 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:55:05 [end_date_ymd] => 2025-04-11 03:55:05 [RateCDR] => 1 ) [2025-04-11 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:55:05' and `end` < '2025-04-11 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:55:18] Production.INFO: count ==172 [2025-04-11 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:55:05 - End Time 2025-04-11 03:55:05 [2025-04-11 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881604', 'tblTempUsageDetail_20' ) start [2025-04-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881604', 'tblTempUsageDetail_20' ) end [2025-04-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881604', 'tblTempVendorCDR_20' ) start [2025-04-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881604', 'tblTempVendorCDR_20' ) end [2025-04-11 03:55:18] Production.INFO: ProcessCDR(1,14881604,1,1,2) [2025-04-11 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881604', 'tblTempUsageDetail_20' ) start [2025-04-11 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881604', 'tblTempUsageDetail_20' ) end [2025-04-11 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:55:22] Production.INFO: ==32057== Releasing lock... [2025-04-11 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:56:06 [end_date_ymd] => 2025-04-11 03:56:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 00:56:06' and `end` < '2025-04-11 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-04-11 03:56:18] Production.INFO: count ==170 [2025-04-11 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:56:06 - End Time 2025-04-11 03:56:06 [2025-04-11 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881609', 'tblTempUsageDetail_20' ) start [2025-04-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881609', 'tblTempUsageDetail_20' ) end [2025-04-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881609', 'tblTempVendorCDR_20' ) start [2025-04-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881609', 'tblTempVendorCDR_20' ) end [2025-04-11 03:56:18] Production.INFO: ProcessCDR(1,14881609,1,1,2) [2025-04-11 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881609', 'tblTempUsageDetail_20' ) start [2025-04-11 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881609', 'tblTempUsageDetail_20' ) end [2025-04-11 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:56:22] Production.INFO: ==32150== Releasing lock... [2025-04-11 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:57:05 [end_date_ymd] => 2025-04-11 03:57:05 [RateCDR] => 1 ) [2025-04-11 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:57:05' and `end` < '2025-04-11 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:57:17] Production.INFO: count ==172 [2025-04-11 03:57:17] Production.ERROR: pbx CDR StartTime 2025-04-11 00:57:05 - End Time 2025-04-11 03:57:05 [2025-04-11 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881614', 'tblTempUsageDetail_20' ) start [2025-04-11 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881614', 'tblTempUsageDetail_20' ) end [2025-04-11 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881614', 'tblTempVendorCDR_20' ) start [2025-04-11 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881614', 'tblTempVendorCDR_20' ) end [2025-04-11 03:57:17] Production.INFO: ProcessCDR(1,14881614,1,1,2) [2025-04-11 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881614', 'tblTempUsageDetail_20' ) start [2025-04-11 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881614', 'tblTempUsageDetail_20' ) end [2025-04-11 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:57:21] Production.INFO: ==32243== Releasing lock... [2025-04-11 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:58:06 [end_date_ymd] => 2025-04-11 03:58:06 [RateCDR] => 1 ) [2025-04-11 03: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-04-11 00:58:06' and `end` < '2025-04-11 03: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-04-11 03:58:19] Production.INFO: count ==172 [2025-04-11 03:58:19] Production.ERROR: pbx CDR StartTime 2025-04-11 00:58:06 - End Time 2025-04-11 03:58:06 [2025-04-11 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881619', 'tblTempUsageDetail_20' ) start [2025-04-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881619', 'tblTempUsageDetail_20' ) end [2025-04-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881619', 'tblTempVendorCDR_20' ) start [2025-04-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881619', 'tblTempVendorCDR_20' ) end [2025-04-11 03:58:19] Production.INFO: ProcessCDR(1,14881619,1,1,2) [2025-04-11 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881619', 'tblTempUsageDetail_20' ) start [2025-04-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881619', 'tblTempUsageDetail_20' ) end [2025-04-11 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:58:22] Production.INFO: ==32334== Releasing lock... [2025-04-11 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 00:59:05 [end_date_ymd] => 2025-04-11 03:59:05 [RateCDR] => 1 ) [2025-04-11 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 00:59:05' and `end` < '2025-04-11 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 03:59:18] Production.INFO: count ==171 [2025-04-11 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 00:59:05 - End Time 2025-04-11 03:59:05 [2025-04-11 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881624', 'tblTempUsageDetail_20' ) start [2025-04-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881624', 'tblTempUsageDetail_20' ) end [2025-04-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881624', 'tblTempVendorCDR_20' ) start [2025-04-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881624', 'tblTempVendorCDR_20' ) end [2025-04-11 03:59:18] Production.INFO: ProcessCDR(1,14881624,1,1,2) [2025-04-11 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881624', 'tblTempUsageDetail_20' ) start [2025-04-11 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881624', 'tblTempUsageDetail_20' ) end [2025-04-11 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 03:59:21] Production.INFO: ==32425== Releasing lock... [2025-04-11 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 03:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:00:06 [end_date_ymd] => 2025-04-11 04:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:00:06' and `end` < '2025-04-11 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-04-11 04:00:19] Production.INFO: count ==171 [2025-04-11 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:00:06 - End Time 2025-04-11 04:00:06 [2025-04-11 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881629', 'tblTempUsageDetail_20' ) start [2025-04-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881629', 'tblTempUsageDetail_20' ) end [2025-04-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881629', 'tblTempVendorCDR_20' ) start [2025-04-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881629', 'tblTempVendorCDR_20' ) end [2025-04-11 04:00:19] Production.INFO: ProcessCDR(1,14881629,1,1,2) [2025-04-11 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881629', 'tblTempUsageDetail_20' ) start [2025-04-11 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881629', 'tblTempUsageDetail_20' ) end [2025-04-11 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:00:22] Production.INFO: ==32525== Releasing lock... [2025-04-11 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:01:05 [end_date_ymd] => 2025-04-11 04:01:05 [RateCDR] => 1 ) [2025-04-11 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:01:05' and `end` < '2025-04-11 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:01:18] Production.INFO: count ==171 [2025-04-11 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:01:05 - End Time 2025-04-11 04:01:05 [2025-04-11 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881636', 'tblTempUsageDetail_20' ) start [2025-04-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881636', 'tblTempUsageDetail_20' ) end [2025-04-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881636', 'tblTempVendorCDR_20' ) start [2025-04-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881636', 'tblTempVendorCDR_20' ) end [2025-04-11 04:01:18] Production.INFO: ProcessCDR(1,14881636,1,1,2) [2025-04-11 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881636', 'tblTempUsageDetail_20' ) start [2025-04-11 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881636', 'tblTempUsageDetail_20' ) end [2025-04-11 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:01:22] Production.INFO: ==32634== Releasing lock... [2025-04-11 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:02:05 [end_date_ymd] => 2025-04-11 04:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:02:05' and `end` < '2025-04-11 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-04-11 04:02:18] Production.INFO: count ==170 [2025-04-11 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:02:05 - End Time 2025-04-11 04:02:05 [2025-04-11 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881641', 'tblTempUsageDetail_20' ) start [2025-04-11 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881641', 'tblTempUsageDetail_20' ) end [2025-04-11 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881641', 'tblTempVendorCDR_20' ) start [2025-04-11 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881641', 'tblTempVendorCDR_20' ) end [2025-04-11 04:02:18] Production.INFO: ProcessCDR(1,14881641,1,1,2) [2025-04-11 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881641', 'tblTempUsageDetail_20' ) start [2025-04-11 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881641', 'tblTempUsageDetail_20' ) end [2025-04-11 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:02:21] Production.INFO: ==32765== Releasing lock... [2025-04-11 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:03:05 [end_date_ymd] => 2025-04-11 04:03:05 [RateCDR] => 1 ) [2025-04-11 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:03:05' and `end` < '2025-04-11 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:03:18] Production.INFO: count ==172 [2025-04-11 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:03:05 - End Time 2025-04-11 04:03:05 [2025-04-11 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881646', 'tblTempUsageDetail_20' ) start [2025-04-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881646', 'tblTempUsageDetail_20' ) end [2025-04-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881646', 'tblTempVendorCDR_20' ) start [2025-04-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881646', 'tblTempVendorCDR_20' ) end [2025-04-11 04:03:18] Production.INFO: ProcessCDR(1,14881646,1,1,2) [2025-04-11 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881646', 'tblTempUsageDetail_20' ) start [2025-04-11 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881646', 'tblTempUsageDetail_20' ) end [2025-04-11 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:03:21] Production.INFO: ==408== Releasing lock... [2025-04-11 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:04:05 [end_date_ymd] => 2025-04-11 04:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:04:05' and `end` < '2025-04-11 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-04-11 04:04:18] Production.INFO: count ==173 [2025-04-11 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:04:05 - End Time 2025-04-11 04:04:05 [2025-04-11 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881651', 'tblTempUsageDetail_20' ) start [2025-04-11 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881651', 'tblTempUsageDetail_20' ) end [2025-04-11 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881651', 'tblTempVendorCDR_20' ) start [2025-04-11 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881651', 'tblTempVendorCDR_20' ) end [2025-04-11 04:04:18] Production.INFO: ProcessCDR(1,14881651,1,1,2) [2025-04-11 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881651', 'tblTempUsageDetail_20' ) start [2025-04-11 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881651', 'tblTempUsageDetail_20' ) end [2025-04-11 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:04:21] Production.INFO: ==504== Releasing lock... [2025-04-11 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:05:06 [end_date_ymd] => 2025-04-11 04:05:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:05:06' and `end` < '2025-04-11 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-04-11 04:05:18] Production.INFO: count ==173 [2025-04-11 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:05:06 - End Time 2025-04-11 04:05:06 [2025-04-11 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881656', 'tblTempUsageDetail_20' ) start [2025-04-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881656', 'tblTempUsageDetail_20' ) end [2025-04-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881656', 'tblTempVendorCDR_20' ) start [2025-04-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881656', 'tblTempVendorCDR_20' ) end [2025-04-11 04:05:18] Production.INFO: ProcessCDR(1,14881656,1,1,2) [2025-04-11 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881656', 'tblTempUsageDetail_20' ) start [2025-04-11 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881656', 'tblTempUsageDetail_20' ) end [2025-04-11 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:05:22] Production.INFO: ==600== Releasing lock... [2025-04-11 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:06:05 [end_date_ymd] => 2025-04-11 04:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:06:05' and `end` < '2025-04-11 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-04-11 04:06:18] Production.INFO: count ==173 [2025-04-11 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:06:05 - End Time 2025-04-11 04:06:05 [2025-04-11 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881661', 'tblTempUsageDetail_20' ) start [2025-04-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881661', 'tblTempUsageDetail_20' ) end [2025-04-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881661', 'tblTempVendorCDR_20' ) start [2025-04-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881661', 'tblTempVendorCDR_20' ) end [2025-04-11 04:06:18] Production.INFO: ProcessCDR(1,14881661,1,1,2) [2025-04-11 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881661', 'tblTempUsageDetail_20' ) start [2025-04-11 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881661', 'tblTempUsageDetail_20' ) end [2025-04-11 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:06:21] Production.INFO: ==722== Releasing lock... [2025-04-11 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:07:05 [end_date_ymd] => 2025-04-11 04:07:05 [RateCDR] => 1 ) [2025-04-11 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:07:05' and `end` < '2025-04-11 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:07:18] Production.INFO: count ==175 [2025-04-11 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:07:05 - End Time 2025-04-11 04:07:05 [2025-04-11 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881666', 'tblTempUsageDetail_20' ) start [2025-04-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881666', 'tblTempUsageDetail_20' ) end [2025-04-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881666', 'tblTempVendorCDR_20' ) start [2025-04-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881666', 'tblTempVendorCDR_20' ) end [2025-04-11 04:07:18] Production.INFO: ProcessCDR(1,14881666,1,1,2) [2025-04-11 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881666', 'tblTempUsageDetail_20' ) start [2025-04-11 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881666', 'tblTempUsageDetail_20' ) end [2025-04-11 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:07:22] Production.INFO: ==822== Releasing lock... [2025-04-11 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:08:05 [end_date_ymd] => 2025-04-11 04:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:08:05' and `end` < '2025-04-11 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-04-11 04:08:18] Production.INFO: count ==175 [2025-04-11 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:08:05 - End Time 2025-04-11 04:08:05 [2025-04-11 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881671', 'tblTempUsageDetail_20' ) start [2025-04-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881671', 'tblTempUsageDetail_20' ) end [2025-04-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881671', 'tblTempVendorCDR_20' ) start [2025-04-11 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881671', 'tblTempVendorCDR_20' ) end [2025-04-11 04:08:18] Production.INFO: ProcessCDR(1,14881671,1,1,2) [2025-04-11 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881671', 'tblTempUsageDetail_20' ) start [2025-04-11 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881671', 'tblTempUsageDetail_20' ) end [2025-04-11 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:08:22] Production.INFO: ==909== Releasing lock... [2025-04-11 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:09:06 [end_date_ymd] => 2025-04-11 04:09:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:09:06' and `end` < '2025-04-11 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-04-11 04:09:18] Production.INFO: count ==177 [2025-04-11 04:09:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:09:06 - End Time 2025-04-11 04:09:06 [2025-04-11 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881676', 'tblTempUsageDetail_20' ) start [2025-04-11 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881676', 'tblTempUsageDetail_20' ) end [2025-04-11 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881676', 'tblTempVendorCDR_20' ) start [2025-04-11 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881676', 'tblTempVendorCDR_20' ) end [2025-04-11 04:09:19] Production.INFO: ProcessCDR(1,14881676,1,1,2) [2025-04-11 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881676', 'tblTempUsageDetail_20' ) start [2025-04-11 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881676', 'tblTempUsageDetail_20' ) end [2025-04-11 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:09:22] Production.INFO: ==1002== Releasing lock... [2025-04-11 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:10:06 [end_date_ymd] => 2025-04-11 04:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:10:06' and `end` < '2025-04-11 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-04-11 04:10:19] Production.INFO: count ==177 [2025-04-11 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:10:06 - End Time 2025-04-11 04:10:06 [2025-04-11 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881682', 'tblTempUsageDetail_20' ) start [2025-04-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881682', 'tblTempUsageDetail_20' ) end [2025-04-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881682', 'tblTempVendorCDR_20' ) start [2025-04-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881682', 'tblTempVendorCDR_20' ) end [2025-04-11 04:10:19] Production.INFO: ProcessCDR(1,14881682,1,1,2) [2025-04-11 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881682', 'tblTempUsageDetail_20' ) start [2025-04-11 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881682', 'tblTempUsageDetail_20' ) end [2025-04-11 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:10:23] Production.INFO: ==1080== Releasing lock... [2025-04-11 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:11:05 [end_date_ymd] => 2025-04-11 04:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:11:05' and `end` < '2025-04-11 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-04-11 04:11:18] Production.INFO: count ==177 [2025-04-11 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:11:05 - End Time 2025-04-11 04:11:05 [2025-04-11 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881687', 'tblTempUsageDetail_20' ) start [2025-04-11 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881687', 'tblTempUsageDetail_20' ) end [2025-04-11 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881687', 'tblTempVendorCDR_20' ) start [2025-04-11 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881687', 'tblTempVendorCDR_20' ) end [2025-04-11 04:11:18] Production.INFO: ProcessCDR(1,14881687,1,1,2) [2025-04-11 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881687', 'tblTempUsageDetail_20' ) start [2025-04-11 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881687', 'tblTempUsageDetail_20' ) end [2025-04-11 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:11:21] Production.INFO: ==1157== Releasing lock... [2025-04-11 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:12:05 [end_date_ymd] => 2025-04-11 04:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:12:05' and `end` < '2025-04-11 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-04-11 04:12:18] Production.INFO: count ==177 [2025-04-11 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:12:05 - End Time 2025-04-11 04:12:05 [2025-04-11 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881692', 'tblTempUsageDetail_20' ) start [2025-04-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881692', 'tblTempUsageDetail_20' ) end [2025-04-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881692', 'tblTempVendorCDR_20' ) start [2025-04-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881692', 'tblTempVendorCDR_20' ) end [2025-04-11 04:12:18] Production.INFO: ProcessCDR(1,14881692,1,1,2) [2025-04-11 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881692', 'tblTempUsageDetail_20' ) start [2025-04-11 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881692', 'tblTempUsageDetail_20' ) end [2025-04-11 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:12:21] Production.INFO: ==1245== Releasing lock... [2025-04-11 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:13:06 [end_date_ymd] => 2025-04-11 04:13:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:13:06' and `end` < '2025-04-11 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-04-11 04:13:19] Production.INFO: count ==177 [2025-04-11 04:13:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:13:06 - End Time 2025-04-11 04:13:06 [2025-04-11 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881697', 'tblTempUsageDetail_20' ) start [2025-04-11 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881697', 'tblTempUsageDetail_20' ) end [2025-04-11 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881697', 'tblTempVendorCDR_20' ) start [2025-04-11 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881697', 'tblTempVendorCDR_20' ) end [2025-04-11 04:13:19] Production.INFO: ProcessCDR(1,14881697,1,1,2) [2025-04-11 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881697', 'tblTempUsageDetail_20' ) start [2025-04-11 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881697', 'tblTempUsageDetail_20' ) end [2025-04-11 04:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:13:23] Production.INFO: ==1325== Releasing lock... [2025-04-11 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:13:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:14:05 [end_date_ymd] => 2025-04-11 04:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:14:05' and `end` < '2025-04-11 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-04-11 04:14:18] Production.INFO: count ==175 [2025-04-11 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:14:05 - End Time 2025-04-11 04:14:05 [2025-04-11 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881702', 'tblTempUsageDetail_20' ) start [2025-04-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881702', 'tblTempUsageDetail_20' ) end [2025-04-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881702', 'tblTempVendorCDR_20' ) start [2025-04-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881702', 'tblTempVendorCDR_20' ) end [2025-04-11 04:14:18] Production.INFO: ProcessCDR(1,14881702,1,1,2) [2025-04-11 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881702', 'tblTempUsageDetail_20' ) start [2025-04-11 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881702', 'tblTempUsageDetail_20' ) end [2025-04-11 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:14:22] Production.INFO: ==1401== Releasing lock... [2025-04-11 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:15:05 [end_date_ymd] => 2025-04-11 04:15:05 [RateCDR] => 1 ) [2025-04-11 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:15:05' and `end` < '2025-04-11 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:15:17] Production.INFO: count ==175 [2025-04-11 04:15:17] Production.ERROR: pbx CDR StartTime 2025-04-11 01:15:05 - End Time 2025-04-11 04:15:05 [2025-04-11 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881707', 'tblTempUsageDetail_20' ) start [2025-04-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881707', 'tblTempUsageDetail_20' ) end [2025-04-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881707', 'tblTempVendorCDR_20' ) start [2025-04-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881707', 'tblTempVendorCDR_20' ) end [2025-04-11 04:15:17] Production.INFO: ProcessCDR(1,14881707,1,1,2) [2025-04-11 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881707', 'tblTempUsageDetail_20' ) start [2025-04-11 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881707', 'tblTempUsageDetail_20' ) end [2025-04-11 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:15:21] Production.INFO: ==1472== Releasing lock... [2025-04-11 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:16:05 [end_date_ymd] => 2025-04-11 04:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:16:05' and `end` < '2025-04-11 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-04-11 04:16:18] Production.INFO: count ==175 [2025-04-11 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:16:05 - End Time 2025-04-11 04:16:05 [2025-04-11 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881712', 'tblTempUsageDetail_20' ) start [2025-04-11 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881712', 'tblTempUsageDetail_20' ) end [2025-04-11 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881712', 'tblTempVendorCDR_20' ) start [2025-04-11 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881712', 'tblTempVendorCDR_20' ) end [2025-04-11 04:16:18] Production.INFO: ProcessCDR(1,14881712,1,1,2) [2025-04-11 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881712', 'tblTempUsageDetail_20' ) start [2025-04-11 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881712', 'tblTempUsageDetail_20' ) end [2025-04-11 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:16:22] Production.INFO: ==1606== Releasing lock... [2025-04-11 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:17:05 [end_date_ymd] => 2025-04-11 04:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:17:05' and `end` < '2025-04-11 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-04-11 04:17:18] Production.INFO: count ==175 [2025-04-11 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:17:05 - End Time 2025-04-11 04:17:05 [2025-04-11 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881717', 'tblTempUsageDetail_20' ) start [2025-04-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881717', 'tblTempUsageDetail_20' ) end [2025-04-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881717', 'tblTempVendorCDR_20' ) start [2025-04-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881717', 'tblTempVendorCDR_20' ) end [2025-04-11 04:17:18] Production.INFO: ProcessCDR(1,14881717,1,1,2) [2025-04-11 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881717', 'tblTempUsageDetail_20' ) start [2025-04-11 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881717', 'tblTempUsageDetail_20' ) end [2025-04-11 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:17:21] Production.INFO: ==1678== Releasing lock... [2025-04-11 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:18:06 [end_date_ymd] => 2025-04-11 04:18:06 [RateCDR] => 1 ) [2025-04-11 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:18:06' and `end` < '2025-04-11 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:18:18] Production.INFO: count ==177 [2025-04-11 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:18:06 - End Time 2025-04-11 04:18:06 [2025-04-11 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881722', 'tblTempUsageDetail_20' ) start [2025-04-11 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881722', 'tblTempUsageDetail_20' ) end [2025-04-11 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881722', 'tblTempVendorCDR_20' ) start [2025-04-11 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881722', 'tblTempVendorCDR_20' ) end [2025-04-11 04:18:19] Production.INFO: ProcessCDR(1,14881722,1,1,2) [2025-04-11 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881722', 'tblTempUsageDetail_20' ) start [2025-04-11 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881722', 'tblTempUsageDetail_20' ) end [2025-04-11 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:18:22] Production.INFO: ==1791== Releasing lock... [2025-04-11 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:19:06 [end_date_ymd] => 2025-04-11 04:19:06 [RateCDR] => 1 ) [2025-04-11 04: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-04-11 01:19:06' and `end` < '2025-04-11 04: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-04-11 04:19:19] Production.INFO: count ==177 [2025-04-11 04:19:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:19:06 - End Time 2025-04-11 04:19:06 [2025-04-11 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881727', 'tblTempUsageDetail_20' ) start [2025-04-11 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881727', 'tblTempUsageDetail_20' ) end [2025-04-11 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881727', 'tblTempVendorCDR_20' ) start [2025-04-11 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881727', 'tblTempVendorCDR_20' ) end [2025-04-11 04:19:19] Production.INFO: ProcessCDR(1,14881727,1,1,2) [2025-04-11 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881727', 'tblTempUsageDetail_20' ) start [2025-04-11 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881727', 'tblTempUsageDetail_20' ) end [2025-04-11 04:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:19:23] Production.INFO: ==1867== Releasing lock... [2025-04-11 04:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:19:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:20:06 [end_date_ymd] => 2025-04-11 04:20:06 [RateCDR] => 1 ) [2025-04-11 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:20:06' and `end` < '2025-04-11 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-04-11 04:20:18] Production.INFO: count ==172 [2025-04-11 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:20:06 - End Time 2025-04-11 04:20:06 [2025-04-11 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881732', 'tblTempUsageDetail_20' ) start [2025-04-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881732', 'tblTempUsageDetail_20' ) end [2025-04-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881732', 'tblTempVendorCDR_20' ) start [2025-04-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881732', 'tblTempVendorCDR_20' ) end [2025-04-11 04:20:19] Production.INFO: ProcessCDR(1,14881732,1,1,2) [2025-04-11 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881732', 'tblTempUsageDetail_20' ) start [2025-04-11 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881732', 'tblTempUsageDetail_20' ) end [2025-04-11 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:20:22] Production.INFO: ==1945== Releasing lock... [2025-04-11 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:21:05 [end_date_ymd] => 2025-04-11 04:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:21:05' and `end` < '2025-04-11 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-04-11 04:21:18] Production.INFO: count ==172 [2025-04-11 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:21:05 - End Time 2025-04-11 04:21:05 [2025-04-11 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881738', 'tblTempUsageDetail_20' ) start [2025-04-11 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881738', 'tblTempUsageDetail_20' ) end [2025-04-11 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881738', 'tblTempVendorCDR_20' ) start [2025-04-11 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881738', 'tblTempVendorCDR_20' ) end [2025-04-11 04:21:18] Production.INFO: ProcessCDR(1,14881738,1,1,2) [2025-04-11 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881738', 'tblTempUsageDetail_20' ) start [2025-04-11 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881738', 'tblTempUsageDetail_20' ) end [2025-04-11 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:21:21] Production.INFO: ==2022== Releasing lock... [2025-04-11 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:22:05 [end_date_ymd] => 2025-04-11 04:22:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:22:05' and `end` < '2025-04-11 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-04-11 04:22:18] Production.INFO: count ==172 [2025-04-11 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:22:05 - End Time 2025-04-11 04:22:05 [2025-04-11 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881743', 'tblTempUsageDetail_20' ) start [2025-04-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881743', 'tblTempUsageDetail_20' ) end [2025-04-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881743', 'tblTempVendorCDR_20' ) start [2025-04-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881743', 'tblTempVendorCDR_20' ) end [2025-04-11 04:22:18] Production.INFO: ProcessCDR(1,14881743,1,1,2) [2025-04-11 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881743', 'tblTempUsageDetail_20' ) start [2025-04-11 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881743', 'tblTempUsageDetail_20' ) end [2025-04-11 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:22:21] Production.INFO: ==2103== Releasing lock... [2025-04-11 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:23:05 [end_date_ymd] => 2025-04-11 04:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:23:05' and `end` < '2025-04-11 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-04-11 04:23:18] Production.INFO: count ==172 [2025-04-11 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:23:05 - End Time 2025-04-11 04:23:05 [2025-04-11 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881748', 'tblTempUsageDetail_20' ) start [2025-04-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881748', 'tblTempUsageDetail_20' ) end [2025-04-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881748', 'tblTempVendorCDR_20' ) start [2025-04-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881748', 'tblTempVendorCDR_20' ) end [2025-04-11 04:23:18] Production.INFO: ProcessCDR(1,14881748,1,1,2) [2025-04-11 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881748', 'tblTempUsageDetail_20' ) start [2025-04-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881748', 'tblTempUsageDetail_20' ) end [2025-04-11 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:23:21] Production.INFO: ==2176== Releasing lock... [2025-04-11 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:24:05 [end_date_ymd] => 2025-04-11 04:24:05 [RateCDR] => 1 ) [2025-04-11 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:24:05' and `end` < '2025-04-11 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:24:18] Production.INFO: count ==172 [2025-04-11 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:24:05 - End Time 2025-04-11 04:24:05 [2025-04-11 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881753', 'tblTempUsageDetail_20' ) start [2025-04-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881753', 'tblTempUsageDetail_20' ) end [2025-04-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881753', 'tblTempVendorCDR_20' ) start [2025-04-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881753', 'tblTempVendorCDR_20' ) end [2025-04-11 04:24:18] Production.INFO: ProcessCDR(1,14881753,1,1,2) [2025-04-11 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881753', 'tblTempUsageDetail_20' ) start [2025-04-11 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881753', 'tblTempUsageDetail_20' ) end [2025-04-11 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:24:21] Production.INFO: ==2248== Releasing lock... [2025-04-11 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:25:05 [end_date_ymd] => 2025-04-11 04:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:25:05' and `end` < '2025-04-11 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-04-11 04:25:18] Production.INFO: count ==172 [2025-04-11 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:25:05 - End Time 2025-04-11 04:25:05 [2025-04-11 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881758', 'tblTempUsageDetail_20' ) start [2025-04-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881758', 'tblTempUsageDetail_20' ) end [2025-04-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881758', 'tblTempVendorCDR_20' ) start [2025-04-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881758', 'tblTempVendorCDR_20' ) end [2025-04-11 04:25:18] Production.INFO: ProcessCDR(1,14881758,1,1,2) [2025-04-11 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881758', 'tblTempUsageDetail_20' ) start [2025-04-11 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881758', 'tblTempUsageDetail_20' ) end [2025-04-11 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:25:22] Production.INFO: ==2323== Releasing lock... [2025-04-11 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:26:05 [end_date_ymd] => 2025-04-11 04:26:05 [RateCDR] => 1 ) [2025-04-11 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:26:05' and `end` < '2025-04-11 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:26:18] Production.INFO: count ==170 [2025-04-11 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:26:05 - End Time 2025-04-11 04:26:05 [2025-04-11 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881763', 'tblTempUsageDetail_20' ) start [2025-04-11 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881763', 'tblTempUsageDetail_20' ) end [2025-04-11 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881763', 'tblTempVendorCDR_20' ) start [2025-04-11 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881763', 'tblTempVendorCDR_20' ) end [2025-04-11 04:26:18] Production.INFO: ProcessCDR(1,14881763,1,1,2) [2025-04-11 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881763', 'tblTempUsageDetail_20' ) start [2025-04-11 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881763', 'tblTempUsageDetail_20' ) end [2025-04-11 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:26:21] Production.INFO: ==2399== Releasing lock... [2025-04-11 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:27:05 [end_date_ymd] => 2025-04-11 04:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:27:05' and `end` < '2025-04-11 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-04-11 04:27:18] Production.INFO: count ==167 [2025-04-11 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:27:05 - End Time 2025-04-11 04:27:05 [2025-04-11 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881768', 'tblTempUsageDetail_20' ) start [2025-04-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881768', 'tblTempUsageDetail_20' ) end [2025-04-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881768', 'tblTempVendorCDR_20' ) start [2025-04-11 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881768', 'tblTempVendorCDR_20' ) end [2025-04-11 04:27:18] Production.INFO: ProcessCDR(1,14881768,1,1,2) [2025-04-11 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881768', 'tblTempUsageDetail_20' ) start [2025-04-11 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881768', 'tblTempUsageDetail_20' ) end [2025-04-11 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:27:21] Production.INFO: ==2477== Releasing lock... [2025-04-11 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:28:05 [end_date_ymd] => 2025-04-11 04:28:05 [RateCDR] => 1 ) [2025-04-11 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:28:05' and `end` < '2025-04-11 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:28:17] Production.INFO: count ==167 [2025-04-11 04:28:17] Production.ERROR: pbx CDR StartTime 2025-04-11 01:28:05 - End Time 2025-04-11 04:28:05 [2025-04-11 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881773', 'tblTempUsageDetail_20' ) start [2025-04-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881773', 'tblTempUsageDetail_20' ) end [2025-04-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881773', 'tblTempVendorCDR_20' ) start [2025-04-11 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881773', 'tblTempVendorCDR_20' ) end [2025-04-11 04:28:17] Production.INFO: ProcessCDR(1,14881773,1,1,2) [2025-04-11 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881773', 'tblTempUsageDetail_20' ) start [2025-04-11 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881773', 'tblTempUsageDetail_20' ) end [2025-04-11 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:28:21] Production.INFO: ==2553== Releasing lock... [2025-04-11 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:29:05 [end_date_ymd] => 2025-04-11 04:29:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:29:05' and `end` < '2025-04-11 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-04-11 04:29:17] Production.INFO: count ==167 [2025-04-11 04:29:17] Production.ERROR: pbx CDR StartTime 2025-04-11 01:29:05 - End Time 2025-04-11 04:29:05 [2025-04-11 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881775', 'tblTempUsageDetail_20' ) start [2025-04-11 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881775', 'tblTempUsageDetail_20' ) end [2025-04-11 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881775', 'tblTempVendorCDR_20' ) start [2025-04-11 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881775', 'tblTempVendorCDR_20' ) end [2025-04-11 04:29:17] Production.INFO: ProcessCDR(1,14881775,1,1,2) [2025-04-11 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881775', 'tblTempUsageDetail_20' ) start [2025-04-11 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881775', 'tblTempUsageDetail_20' ) end [2025-04-11 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:29:21] Production.INFO: ==2626== Releasing lock... [2025-04-11 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:30:06 [end_date_ymd] => 2025-04-11 04:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:30:06' and `end` < '2025-04-11 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-04-11 04:30:19] Production.INFO: count ==169 [2025-04-11 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:30:06 - End Time 2025-04-11 04:30:06 [2025-04-11 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881785', 'tblTempUsageDetail_20' ) start [2025-04-11 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881785', 'tblTempUsageDetail_20' ) end [2025-04-11 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881785', 'tblTempVendorCDR_20' ) start [2025-04-11 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881785', 'tblTempVendorCDR_20' ) end [2025-04-11 04:30:19] Production.INFO: ProcessCDR(1,14881785,1,1,2) [2025-04-11 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881785', 'tblTempUsageDetail_20' ) start [2025-04-11 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881785', 'tblTempUsageDetail_20' ) end [2025-04-11 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:30:23] Production.INFO: ==2702== Releasing lock... [2025-04-11 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:30:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:31:05 [end_date_ymd] => 2025-04-11 04:31:05 [RateCDR] => 1 ) [2025-04-11 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:31:05' and `end` < '2025-04-11 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:31:18] Production.INFO: count ==169 [2025-04-11 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:31:05 - End Time 2025-04-11 04:31:05 [2025-04-11 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881790', 'tblTempUsageDetail_20' ) start [2025-04-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881790', 'tblTempUsageDetail_20' ) end [2025-04-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881790', 'tblTempVendorCDR_20' ) start [2025-04-11 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881790', 'tblTempVendorCDR_20' ) end [2025-04-11 04:31:18] Production.INFO: ProcessCDR(1,14881790,1,1,2) [2025-04-11 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881790', 'tblTempUsageDetail_20' ) start [2025-04-11 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881790', 'tblTempUsageDetail_20' ) end [2025-04-11 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:31:22] Production.INFO: ==2879== Releasing lock... [2025-04-11 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:32:06 [end_date_ymd] => 2025-04-11 04:32:06 [RateCDR] => 1 ) [2025-04-11 04: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-04-11 01:32:06' and `end` < '2025-04-11 04: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-04-11 04:32:19] Production.INFO: count ==169 [2025-04-11 04:32:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:32:06 - End Time 2025-04-11 04:32:06 [2025-04-11 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881795', 'tblTempUsageDetail_20' ) start [2025-04-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881795', 'tblTempUsageDetail_20' ) end [2025-04-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881795', 'tblTempVendorCDR_20' ) start [2025-04-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881795', 'tblTempVendorCDR_20' ) end [2025-04-11 04:32:19] Production.INFO: ProcessCDR(1,14881795,1,1,2) [2025-04-11 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881795', 'tblTempUsageDetail_20' ) start [2025-04-11 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881795', 'tblTempUsageDetail_20' ) end [2025-04-11 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:32:22] Production.INFO: ==2953== Releasing lock... [2025-04-11 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:33:05 [end_date_ymd] => 2025-04-11 04:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:33:05' and `end` < '2025-04-11 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-04-11 04:33:18] Production.INFO: count ==173 [2025-04-11 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:33:05 - End Time 2025-04-11 04:33:05 [2025-04-11 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881799', 'tblTempUsageDetail_20' ) start [2025-04-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881799', 'tblTempUsageDetail_20' ) end [2025-04-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881799', 'tblTempVendorCDR_20' ) start [2025-04-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881799', 'tblTempVendorCDR_20' ) end [2025-04-11 04:33:18] Production.INFO: ProcessCDR(1,14881799,1,1,2) [2025-04-11 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881799', 'tblTempUsageDetail_20' ) start [2025-04-11 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881799', 'tblTempUsageDetail_20' ) end [2025-04-11 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:33:21] Production.INFO: ==3064== Releasing lock... [2025-04-11 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:34:05 [end_date_ymd] => 2025-04-11 04:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:34:05' and `end` < '2025-04-11 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-04-11 04:34:18] Production.INFO: count ==173 [2025-04-11 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:34:05 - End Time 2025-04-11 04:34:05 [2025-04-11 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881805', 'tblTempUsageDetail_20' ) start [2025-04-11 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881805', 'tblTempUsageDetail_20' ) end [2025-04-11 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881805', 'tblTempVendorCDR_20' ) start [2025-04-11 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881805', 'tblTempVendorCDR_20' ) end [2025-04-11 04:34:18] Production.INFO: ProcessCDR(1,14881805,1,1,2) [2025-04-11 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881805', 'tblTempUsageDetail_20' ) start [2025-04-11 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881805', 'tblTempUsageDetail_20' ) end [2025-04-11 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:34:21] Production.INFO: ==3146== Releasing lock... [2025-04-11 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:35:05 [end_date_ymd] => 2025-04-11 04:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:35:05' and `end` < '2025-04-11 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-04-11 04:35:17] Production.INFO: count ==172 [2025-04-11 04:35:17] Production.ERROR: pbx CDR StartTime 2025-04-11 01:35:05 - End Time 2025-04-11 04:35:05 [2025-04-11 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881810', 'tblTempUsageDetail_20' ) start [2025-04-11 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881810', 'tblTempUsageDetail_20' ) end [2025-04-11 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881810', 'tblTempVendorCDR_20' ) start [2025-04-11 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881810', 'tblTempVendorCDR_20' ) end [2025-04-11 04:35:17] Production.INFO: ProcessCDR(1,14881810,1,1,2) [2025-04-11 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881810', 'tblTempUsageDetail_20' ) start [2025-04-11 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881810', 'tblTempUsageDetail_20' ) end [2025-04-11 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:35:21] Production.INFO: ==3217== Releasing lock... [2025-04-11 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:36:06 [end_date_ymd] => 2025-04-11 04:36:06 [RateCDR] => 1 ) [2025-04-11 04:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:36:06' and `end` < '2025-04-11 04:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:36:18] Production.INFO: count ==173 [2025-04-11 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:36:06 - End Time 2025-04-11 04:36:06 [2025-04-11 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881815', 'tblTempUsageDetail_20' ) start [2025-04-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881815', 'tblTempUsageDetail_20' ) end [2025-04-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881815', 'tblTempVendorCDR_20' ) start [2025-04-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881815', 'tblTempVendorCDR_20' ) end [2025-04-11 04:36:18] Production.INFO: ProcessCDR(1,14881815,1,1,2) [2025-04-11 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881815', 'tblTempUsageDetail_20' ) start [2025-04-11 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881815', 'tblTempUsageDetail_20' ) end [2025-04-11 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:36:22] Production.INFO: ==3314== Releasing lock... [2025-04-11 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:37:05 [end_date_ymd] => 2025-04-11 04:37:05 [RateCDR] => 1 ) [2025-04-11 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:37:05' and `end` < '2025-04-11 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:37:18] Production.INFO: count ==173 [2025-04-11 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:37:05 - End Time 2025-04-11 04:37:05 [2025-04-11 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881820', 'tblTempUsageDetail_20' ) start [2025-04-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881820', 'tblTempUsageDetail_20' ) end [2025-04-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881820', 'tblTempVendorCDR_20' ) start [2025-04-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881820', 'tblTempVendorCDR_20' ) end [2025-04-11 04:37:18] Production.INFO: ProcessCDR(1,14881820,1,1,2) [2025-04-11 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881820', 'tblTempUsageDetail_20' ) start [2025-04-11 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881820', 'tblTempUsageDetail_20' ) end [2025-04-11 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:37:22] Production.INFO: ==3394== Releasing lock... [2025-04-11 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:38:06 [end_date_ymd] => 2025-04-11 04:38:06 [RateCDR] => 1 ) [2025-04-11 04: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-04-11 01:38:06' and `end` < '2025-04-11 04: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-04-11 04:38:18] Production.INFO: count ==171 [2025-04-11 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:38:06 - End Time 2025-04-11 04:38:06 [2025-04-11 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881825', 'tblTempUsageDetail_20' ) start [2025-04-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881825', 'tblTempUsageDetail_20' ) end [2025-04-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881825', 'tblTempVendorCDR_20' ) start [2025-04-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881825', 'tblTempVendorCDR_20' ) end [2025-04-11 04:38:18] Production.INFO: ProcessCDR(1,14881825,1,1,2) [2025-04-11 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881825', 'tblTempUsageDetail_20' ) start [2025-04-11 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881825', 'tblTempUsageDetail_20' ) end [2025-04-11 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:38:22] Production.INFO: ==3464== Releasing lock... [2025-04-11 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:39:05 [end_date_ymd] => 2025-04-11 04:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:39:05' and `end` < '2025-04-11 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-04-11 04:39:18] Production.INFO: count ==171 [2025-04-11 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:39:05 - End Time 2025-04-11 04:39:05 [2025-04-11 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881830', 'tblTempUsageDetail_20' ) start [2025-04-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881830', 'tblTempUsageDetail_20' ) end [2025-04-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881830', 'tblTempVendorCDR_20' ) start [2025-04-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881830', 'tblTempVendorCDR_20' ) end [2025-04-11 04:39:18] Production.INFO: ProcessCDR(1,14881830,1,1,2) [2025-04-11 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881830', 'tblTempUsageDetail_20' ) start [2025-04-11 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881830', 'tblTempUsageDetail_20' ) end [2025-04-11 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:39:21] Production.INFO: ==3542== Releasing lock... [2025-04-11 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:40:06 [end_date_ymd] => 2025-04-11 04:40:06 [RateCDR] => 1 ) [2025-04-11 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:40:06' and `end` < '2025-04-11 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:40:19] Production.INFO: count ==173 [2025-04-11 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:40:06 - End Time 2025-04-11 04:40:06 [2025-04-11 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881836', 'tblTempUsageDetail_20' ) start [2025-04-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881836', 'tblTempUsageDetail_20' ) end [2025-04-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881836', 'tblTempVendorCDR_20' ) start [2025-04-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881836', 'tblTempVendorCDR_20' ) end [2025-04-11 04:40:19] Production.INFO: ProcessCDR(1,14881836,1,1,2) [2025-04-11 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881836', 'tblTempUsageDetail_20' ) start [2025-04-11 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881836', 'tblTempUsageDetail_20' ) end [2025-04-11 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:40:22] Production.INFO: ==3616== Releasing lock... [2025-04-11 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:41:05 [end_date_ymd] => 2025-04-11 04:41:05 [RateCDR] => 1 ) [2025-04-11 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:41:05' and `end` < '2025-04-11 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:41:18] Production.INFO: count ==171 [2025-04-11 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:41:05 - End Time 2025-04-11 04:41:05 [2025-04-11 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881841', 'tblTempUsageDetail_20' ) start [2025-04-11 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881841', 'tblTempUsageDetail_20' ) end [2025-04-11 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881841', 'tblTempVendorCDR_20' ) start [2025-04-11 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881841', 'tblTempVendorCDR_20' ) end [2025-04-11 04:41:18] Production.INFO: ProcessCDR(1,14881841,1,1,2) [2025-04-11 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881841', 'tblTempUsageDetail_20' ) start [2025-04-11 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881841', 'tblTempUsageDetail_20' ) end [2025-04-11 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:41:21] Production.INFO: ==3699== Releasing lock... [2025-04-11 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:42:05 [end_date_ymd] => 2025-04-11 04:42:05 [RateCDR] => 1 ) [2025-04-11 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:42:05' and `end` < '2025-04-11 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:42:18] Production.INFO: count ==171 [2025-04-11 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:42:05 - End Time 2025-04-11 04:42:05 [2025-04-11 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881846', 'tblTempUsageDetail_20' ) start [2025-04-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881846', 'tblTempUsageDetail_20' ) end [2025-04-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881846', 'tblTempVendorCDR_20' ) start [2025-04-11 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881846', 'tblTempVendorCDR_20' ) end [2025-04-11 04:42:18] Production.INFO: ProcessCDR(1,14881846,1,1,2) [2025-04-11 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881846', 'tblTempUsageDetail_20' ) start [2025-04-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881846', 'tblTempUsageDetail_20' ) end [2025-04-11 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:42:22] Production.INFO: ==3772== Releasing lock... [2025-04-11 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:43:05 [end_date_ymd] => 2025-04-11 04:43:05 [RateCDR] => 1 ) [2025-04-11 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:43:05' and `end` < '2025-04-11 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:43:17] Production.INFO: count ==171 [2025-04-11 04:43:17] Production.ERROR: pbx CDR StartTime 2025-04-11 01:43:05 - End Time 2025-04-11 04:43:05 [2025-04-11 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881851', 'tblTempUsageDetail_20' ) start [2025-04-11 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881851', 'tblTempUsageDetail_20' ) end [2025-04-11 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881851', 'tblTempVendorCDR_20' ) start [2025-04-11 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881851', 'tblTempVendorCDR_20' ) end [2025-04-11 04:43:18] Production.INFO: ProcessCDR(1,14881851,1,1,2) [2025-04-11 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881851', 'tblTempUsageDetail_20' ) start [2025-04-11 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881851', 'tblTempUsageDetail_20' ) end [2025-04-11 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:43:21] Production.INFO: ==3849== Releasing lock... [2025-04-11 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:44:05 [end_date_ymd] => 2025-04-11 04:44:05 [RateCDR] => 1 ) [2025-04-11 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:44:05' and `end` < '2025-04-11 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:44:18] Production.INFO: count ==171 [2025-04-11 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:44:05 - End Time 2025-04-11 04:44:05 [2025-04-11 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881856', 'tblTempUsageDetail_20' ) start [2025-04-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881856', 'tblTempUsageDetail_20' ) end [2025-04-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881856', 'tblTempVendorCDR_20' ) start [2025-04-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881856', 'tblTempVendorCDR_20' ) end [2025-04-11 04:44:18] Production.INFO: ProcessCDR(1,14881856,1,1,2) [2025-04-11 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881856', 'tblTempUsageDetail_20' ) start [2025-04-11 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881856', 'tblTempUsageDetail_20' ) end [2025-04-11 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:44:21] Production.INFO: ==3922== Releasing lock... [2025-04-11 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:45:05 [end_date_ymd] => 2025-04-11 04:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:45:05' and `end` < '2025-04-11 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-04-11 04:45:17] Production.INFO: count ==170 [2025-04-11 04:45:17] Production.ERROR: pbx CDR StartTime 2025-04-11 01:45:05 - End Time 2025-04-11 04:45:05 [2025-04-11 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881861', 'tblTempUsageDetail_20' ) start [2025-04-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881861', 'tblTempUsageDetail_20' ) end [2025-04-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881861', 'tblTempVendorCDR_20' ) start [2025-04-11 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881861', 'tblTempVendorCDR_20' ) end [2025-04-11 04:45:17] Production.INFO: ProcessCDR(1,14881861,1,1,2) [2025-04-11 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881861', 'tblTempUsageDetail_20' ) start [2025-04-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881861', 'tblTempUsageDetail_20' ) end [2025-04-11 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:45:21] Production.INFO: ==4004== Releasing lock... [2025-04-11 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:46:05 [end_date_ymd] => 2025-04-11 04:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:46:05' and `end` < '2025-04-11 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-04-11 04:46:18] Production.INFO: count ==169 [2025-04-11 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:46:05 - End Time 2025-04-11 04:46:05 [2025-04-11 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881866', 'tblTempUsageDetail_20' ) start [2025-04-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881866', 'tblTempUsageDetail_20' ) end [2025-04-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881866', 'tblTempVendorCDR_20' ) start [2025-04-11 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881866', 'tblTempVendorCDR_20' ) end [2025-04-11 04:46:18] Production.INFO: ProcessCDR(1,14881866,1,1,2) [2025-04-11 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881866', 'tblTempUsageDetail_20' ) start [2025-04-11 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881866', 'tblTempUsageDetail_20' ) end [2025-04-11 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:46:21] Production.INFO: ==4078== Releasing lock... [2025-04-11 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:47:06 [end_date_ymd] => 2025-04-11 04:47:06 [RateCDR] => 1 ) [2025-04-11 04: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-04-11 01:47:06' and `end` < '2025-04-11 04: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-04-11 04:47:19] Production.INFO: count ==169 [2025-04-11 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:47:06 - End Time 2025-04-11 04:47:06 [2025-04-11 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881871', 'tblTempUsageDetail_20' ) start [2025-04-11 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881871', 'tblTempUsageDetail_20' ) end [2025-04-11 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881871', 'tblTempVendorCDR_20' ) start [2025-04-11 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881871', 'tblTempVendorCDR_20' ) end [2025-04-11 04:47:19] Production.INFO: ProcessCDR(1,14881871,1,1,2) [2025-04-11 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881871', 'tblTempUsageDetail_20' ) start [2025-04-11 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881871', 'tblTempUsageDetail_20' ) end [2025-04-11 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:47:22] Production.INFO: ==4163== Releasing lock... [2025-04-11 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:47:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:48:05 [end_date_ymd] => 2025-04-11 04:48:05 [RateCDR] => 1 ) [2025-04-11 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 01:48:05' and `end` < '2025-04-11 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 04:48:19] Production.INFO: count ==169 [2025-04-11 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:48:05 - End Time 2025-04-11 04:48:05 [2025-04-11 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881876', 'tblTempUsageDetail_20' ) start [2025-04-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881876', 'tblTempUsageDetail_20' ) end [2025-04-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881876', 'tblTempVendorCDR_20' ) start [2025-04-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881876', 'tblTempVendorCDR_20' ) end [2025-04-11 04:48:19] Production.INFO: ProcessCDR(1,14881876,1,1,2) [2025-04-11 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881876', 'tblTempUsageDetail_20' ) start [2025-04-11 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881876', 'tblTempUsageDetail_20' ) end [2025-04-11 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:48:22] Production.INFO: ==4237== Releasing lock... [2025-04-11 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:49:05 [end_date_ymd] => 2025-04-11 04:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:49:05' and `end` < '2025-04-11 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-04-11 04:49:18] Production.INFO: count ==169 [2025-04-11 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:49:05 - End Time 2025-04-11 04:49:05 [2025-04-11 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881881', 'tblTempUsageDetail_20' ) start [2025-04-11 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881881', 'tblTempUsageDetail_20' ) end [2025-04-11 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881881', 'tblTempVendorCDR_20' ) start [2025-04-11 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881881', 'tblTempVendorCDR_20' ) end [2025-04-11 04:49:18] Production.INFO: ProcessCDR(1,14881881,1,1,2) [2025-04-11 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881881', 'tblTempUsageDetail_20' ) start [2025-04-11 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881881', 'tblTempUsageDetail_20' ) end [2025-04-11 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:49:22] Production.INFO: ==4357== Releasing lock... [2025-04-11 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:50:06 [end_date_ymd] => 2025-04-11 04:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:50:06' and `end` < '2025-04-11 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-04-11 04:50:19] Production.INFO: count ==161 [2025-04-11 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:50:06 - End Time 2025-04-11 04:50:06 [2025-04-11 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881887', 'tblTempUsageDetail_20' ) start [2025-04-11 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881887', 'tblTempUsageDetail_20' ) end [2025-04-11 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881887', 'tblTempVendorCDR_20' ) start [2025-04-11 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881887', 'tblTempVendorCDR_20' ) end [2025-04-11 04:50:19] Production.INFO: ProcessCDR(1,14881887,1,1,2) [2025-04-11 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881887', 'tblTempUsageDetail_20' ) start [2025-04-11 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881887', 'tblTempUsageDetail_20' ) end [2025-04-11 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:50:22] Production.INFO: ==4436== Releasing lock... [2025-04-11 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:51:05 [end_date_ymd] => 2025-04-11 04:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:51:05' and `end` < '2025-04-11 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-04-11 04:51:18] Production.INFO: count ==161 [2025-04-11 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:51:05 - End Time 2025-04-11 04:51:05 [2025-04-11 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881892', 'tblTempUsageDetail_20' ) start [2025-04-11 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881892', 'tblTempUsageDetail_20' ) end [2025-04-11 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881892', 'tblTempVendorCDR_20' ) start [2025-04-11 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881892', 'tblTempVendorCDR_20' ) end [2025-04-11 04:51:19] Production.INFO: ProcessCDR(1,14881892,1,1,2) [2025-04-11 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881892', 'tblTempUsageDetail_20' ) start [2025-04-11 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881892', 'tblTempUsageDetail_20' ) end [2025-04-11 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:51:22] Production.INFO: ==4513== Releasing lock... [2025-04-11 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:52:05 [end_date_ymd] => 2025-04-11 04:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:52:05' and `end` < '2025-04-11 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-04-11 04:52:19] Production.INFO: count ==162 [2025-04-11 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:52:05 - End Time 2025-04-11 04:52:05 [2025-04-11 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881897', 'tblTempUsageDetail_20' ) start [2025-04-11 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881897', 'tblTempUsageDetail_20' ) end [2025-04-11 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881897', 'tblTempVendorCDR_20' ) start [2025-04-11 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881897', 'tblTempVendorCDR_20' ) end [2025-04-11 04:52:19] Production.INFO: ProcessCDR(1,14881897,1,1,2) [2025-04-11 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881897', 'tblTempUsageDetail_20' ) start [2025-04-11 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881897', 'tblTempUsageDetail_20' ) end [2025-04-11 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:52:23] Production.INFO: ==4596== Releasing lock... [2025-04-11 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:52:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:53:05 [end_date_ymd] => 2025-04-11 04:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:53:05' and `end` < '2025-04-11 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-04-11 04:53:19] Production.INFO: count ==161 [2025-04-11 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:53:05 - End Time 2025-04-11 04:53:05 [2025-04-11 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881902', 'tblTempUsageDetail_20' ) start [2025-04-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881902', 'tblTempUsageDetail_20' ) end [2025-04-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881902', 'tblTempVendorCDR_20' ) start [2025-04-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881902', 'tblTempVendorCDR_20' ) end [2025-04-11 04:53:19] Production.INFO: ProcessCDR(1,14881902,1,1,2) [2025-04-11 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881902', 'tblTempUsageDetail_20' ) start [2025-04-11 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881902', 'tblTempUsageDetail_20' ) end [2025-04-11 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:53:23] Production.INFO: ==4680== Releasing lock... [2025-04-11 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:53:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:54:05 [end_date_ymd] => 2025-04-11 04:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:54:05' and `end` < '2025-04-11 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-04-11 04:54:18] Production.INFO: count ==161 [2025-04-11 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:54:05 - End Time 2025-04-11 04:54:05 [2025-04-11 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881907', 'tblTempUsageDetail_20' ) start [2025-04-11 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881907', 'tblTempUsageDetail_20' ) end [2025-04-11 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881907', 'tblTempVendorCDR_20' ) start [2025-04-11 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881907', 'tblTempVendorCDR_20' ) end [2025-04-11 04:54:18] Production.INFO: ProcessCDR(1,14881907,1,1,2) [2025-04-11 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881907', 'tblTempUsageDetail_20' ) start [2025-04-11 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881907', 'tblTempUsageDetail_20' ) end [2025-04-11 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:54:22] Production.INFO: ==4750== Releasing lock... [2025-04-11 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:55:05 [end_date_ymd] => 2025-04-11 04:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:55:05' and `end` < '2025-04-11 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-04-11 04:55:20] Production.INFO: count ==161 [2025-04-11 04:55:20] Production.ERROR: pbx CDR StartTime 2025-04-11 01:55:05 - End Time 2025-04-11 04:55:05 [2025-04-11 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881912', 'tblTempUsageDetail_20' ) start [2025-04-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881912', 'tblTempUsageDetail_20' ) end [2025-04-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881912', 'tblTempVendorCDR_20' ) start [2025-04-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881912', 'tblTempVendorCDR_20' ) end [2025-04-11 04:55:20] Production.INFO: ProcessCDR(1,14881912,1,1,2) [2025-04-11 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881912', 'tblTempUsageDetail_20' ) start [2025-04-11 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881912', 'tblTempUsageDetail_20' ) end [2025-04-11 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:55:23] Production.INFO: ==4827== Releasing lock... [2025-04-11 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:55:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:56:05 [end_date_ymd] => 2025-04-11 04:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:56:05' and `end` < '2025-04-11 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-04-11 04:56:18] Production.INFO: count ==161 [2025-04-11 04:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:56:05 - End Time 2025-04-11 04:56:05 [2025-04-11 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881917', 'tblTempUsageDetail_20' ) start [2025-04-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881917', 'tblTempUsageDetail_20' ) end [2025-04-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881917', 'tblTempVendorCDR_20' ) start [2025-04-11 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881917', 'tblTempVendorCDR_20' ) end [2025-04-11 04:56:18] Production.INFO: ProcessCDR(1,14881917,1,1,2) [2025-04-11 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881917', 'tblTempUsageDetail_20' ) start [2025-04-11 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881917', 'tblTempUsageDetail_20' ) end [2025-04-11 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:56:21] Production.INFO: ==4905== Releasing lock... [2025-04-11 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:57:05 [end_date_ymd] => 2025-04-11 04:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:57:05' and `end` < '2025-04-11 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-04-11 04:57:19] Production.INFO: count ==161 [2025-04-11 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 01:57:05 - End Time 2025-04-11 04:57:05 [2025-04-11 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881922', 'tblTempUsageDetail_20' ) start [2025-04-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881922', 'tblTempUsageDetail_20' ) end [2025-04-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881922', 'tblTempVendorCDR_20' ) start [2025-04-11 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881922', 'tblTempVendorCDR_20' ) end [2025-04-11 04:57:19] Production.INFO: ProcessCDR(1,14881922,1,1,2) [2025-04-11 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881922', 'tblTempUsageDetail_20' ) start [2025-04-11 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881922', 'tblTempUsageDetail_20' ) end [2025-04-11 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:57:23] Production.INFO: ==4982== Releasing lock... [2025-04-11 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:58:05 [end_date_ymd] => 2025-04-11 04:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:58:05' and `end` < '2025-04-11 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-04-11 04:58:20] Production.INFO: count ==163 [2025-04-11 04:58:20] Production.ERROR: pbx CDR StartTime 2025-04-11 01:58:05 - End Time 2025-04-11 04:58:05 [2025-04-11 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881927', 'tblTempUsageDetail_20' ) start [2025-04-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881927', 'tblTempUsageDetail_20' ) end [2025-04-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881927', 'tblTempVendorCDR_20' ) start [2025-04-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881927', 'tblTempVendorCDR_20' ) end [2025-04-11 04:58:20] Production.INFO: ProcessCDR(1,14881927,1,1,2) [2025-04-11 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881927', 'tblTempUsageDetail_20' ) start [2025-04-11 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881927', 'tblTempUsageDetail_20' ) end [2025-04-11 04:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:58:24] Production.INFO: ==5055== Releasing lock... [2025-04-11 04:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:58:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 01:59:05 [end_date_ymd] => 2025-04-11 04:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 01:59:05' and `end` < '2025-04-11 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-04-11 04:59:18] Production.INFO: count ==163 [2025-04-11 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 01:59:05 - End Time 2025-04-11 04:59:05 [2025-04-11 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881932', 'tblTempUsageDetail_20' ) start [2025-04-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881932', 'tblTempUsageDetail_20' ) end [2025-04-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881932', 'tblTempVendorCDR_20' ) start [2025-04-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881932', 'tblTempVendorCDR_20' ) end [2025-04-11 04:59:18] Production.INFO: ProcessCDR(1,14881932,1,1,2) [2025-04-11 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881932', 'tblTempUsageDetail_20' ) start [2025-04-11 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881932', 'tblTempUsageDetail_20' ) end [2025-04-11 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 04:59:22] Production.INFO: ==5134== Releasing lock... [2025-04-11 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 04:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:00:06 [end_date_ymd] => 2025-04-11 05:00:06 [RateCDR] => 1 ) [2025-04-11 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:00:06' and `end` < '2025-04-11 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:00:20] Production.INFO: count ==160 [2025-04-11 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-11 02:00:06 - End Time 2025-04-11 05:00:06 [2025-04-11 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881938', 'tblTempUsageDetail_20' ) start [2025-04-11 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881938', 'tblTempUsageDetail_20' ) end [2025-04-11 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881938', 'tblTempVendorCDR_20' ) start [2025-04-11 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881938', 'tblTempVendorCDR_20' ) end [2025-04-11 05:00:20] Production.INFO: ProcessCDR(1,14881938,1,1,2) [2025-04-11 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881938', 'tblTempUsageDetail_20' ) start [2025-04-11 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881938', 'tblTempUsageDetail_20' ) end [2025-04-11 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:00:23] Production.INFO: ==5214== Releasing lock... [2025-04-11 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:01:05 [end_date_ymd] => 2025-04-11 05:01:05 [RateCDR] => 1 ) [2025-04-11 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:01:05' and `end` < '2025-04-11 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:01:20] Production.INFO: count ==160 [2025-04-11 05:01:20] Production.ERROR: pbx CDR StartTime 2025-04-11 02:01:05 - End Time 2025-04-11 05:01:05 [2025-04-11 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881943', 'tblTempUsageDetail_20' ) start [2025-04-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881943', 'tblTempUsageDetail_20' ) end [2025-04-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881943', 'tblTempVendorCDR_20' ) start [2025-04-11 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881943', 'tblTempVendorCDR_20' ) end [2025-04-11 05:01:20] Production.INFO: ProcessCDR(1,14881943,1,1,2) [2025-04-11 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881943', 'tblTempUsageDetail_20' ) start [2025-04-11 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881943', 'tblTempUsageDetail_20' ) end [2025-04-11 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:01:23] Production.INFO: ==5303== Releasing lock... [2025-04-11 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:01:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:02:05 [end_date_ymd] => 2025-04-11 05:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:02:05' and `end` < '2025-04-11 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-04-11 05:02:18] Production.INFO: count ==160 [2025-04-11 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:02:05 - End Time 2025-04-11 05:02:05 [2025-04-11 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881948', 'tblTempUsageDetail_20' ) start [2025-04-11 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881948', 'tblTempUsageDetail_20' ) end [2025-04-11 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881948', 'tblTempVendorCDR_20' ) start [2025-04-11 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881948', 'tblTempVendorCDR_20' ) end [2025-04-11 05:02:18] Production.INFO: ProcessCDR(1,14881948,1,1,2) [2025-04-11 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881948', 'tblTempUsageDetail_20' ) start [2025-04-11 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881948', 'tblTempUsageDetail_20' ) end [2025-04-11 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:02:21] Production.INFO: ==5385== Releasing lock... [2025-04-11 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:03:05 [end_date_ymd] => 2025-04-11 05:03:05 [RateCDR] => 1 ) [2025-04-11 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:03:05' and `end` < '2025-04-11 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:03:18] Production.INFO: count ==161 [2025-04-11 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:03:05 - End Time 2025-04-11 05:03:05 [2025-04-11 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881953', 'tblTempUsageDetail_20' ) start [2025-04-11 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881953', 'tblTempUsageDetail_20' ) end [2025-04-11 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881953', 'tblTempVendorCDR_20' ) start [2025-04-11 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881953', 'tblTempVendorCDR_20' ) end [2025-04-11 05:03:18] Production.INFO: ProcessCDR(1,14881953,1,1,2) [2025-04-11 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881953', 'tblTempUsageDetail_20' ) start [2025-04-11 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881953', 'tblTempUsageDetail_20' ) end [2025-04-11 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:03:23] Production.INFO: ==5468== Releasing lock... [2025-04-11 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:03:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:04:05 [end_date_ymd] => 2025-04-11 05:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:04:05' and `end` < '2025-04-11 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-04-11 05:04:18] Production.INFO: count ==161 [2025-04-11 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:04:05 - End Time 2025-04-11 05:04:05 [2025-04-11 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881958', 'tblTempUsageDetail_20' ) start [2025-04-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881958', 'tblTempUsageDetail_20' ) end [2025-04-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881958', 'tblTempVendorCDR_20' ) start [2025-04-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881958', 'tblTempVendorCDR_20' ) end [2025-04-11 05:04:18] Production.INFO: ProcessCDR(1,14881958,1,1,2) [2025-04-11 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881958', 'tblTempUsageDetail_20' ) start [2025-04-11 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881958', 'tblTempUsageDetail_20' ) end [2025-04-11 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:04:21] Production.INFO: ==5579== Releasing lock... [2025-04-11 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:05:05 [end_date_ymd] => 2025-04-11 05:05:05 [RateCDR] => 1 ) [2025-04-11 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:05:05' and `end` < '2025-04-11 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:05:18] Production.INFO: count ==161 [2025-04-11 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:05:05 - End Time 2025-04-11 05:05:05 [2025-04-11 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881963', 'tblTempUsageDetail_20' ) start [2025-04-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881963', 'tblTempUsageDetail_20' ) end [2025-04-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881963', 'tblTempVendorCDR_20' ) start [2025-04-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881963', 'tblTempVendorCDR_20' ) end [2025-04-11 05:05:18] Production.INFO: ProcessCDR(1,14881963,1,1,2) [2025-04-11 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881963', 'tblTempUsageDetail_20' ) start [2025-04-11 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881963', 'tblTempUsageDetail_20' ) end [2025-04-11 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:05:22] Production.INFO: ==5654== Releasing lock... [2025-04-11 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:06:05 [end_date_ymd] => 2025-04-11 05:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:06:05' and `end` < '2025-04-11 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-04-11 05:06:18] Production.INFO: count ==159 [2025-04-11 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:06:05 - End Time 2025-04-11 05:06:05 [2025-04-11 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881968', 'tblTempUsageDetail_20' ) start [2025-04-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881968', 'tblTempUsageDetail_20' ) end [2025-04-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881968', 'tblTempVendorCDR_20' ) start [2025-04-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881968', 'tblTempVendorCDR_20' ) end [2025-04-11 05:06:18] Production.INFO: ProcessCDR(1,14881968,1,1,2) [2025-04-11 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881968', 'tblTempUsageDetail_20' ) start [2025-04-11 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881968', 'tblTempUsageDetail_20' ) end [2025-04-11 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:06:22] Production.INFO: ==5733== Releasing lock... [2025-04-11 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:07:05 [end_date_ymd] => 2025-04-11 05:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:07:05' and `end` < '2025-04-11 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-04-11 05:07:18] Production.INFO: count ==158 [2025-04-11 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:07:05 - End Time 2025-04-11 05:07:05 [2025-04-11 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881973', 'tblTempUsageDetail_20' ) start [2025-04-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881973', 'tblTempUsageDetail_20' ) end [2025-04-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881973', 'tblTempVendorCDR_20' ) start [2025-04-11 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881973', 'tblTempVendorCDR_20' ) end [2025-04-11 05:07:18] Production.INFO: ProcessCDR(1,14881973,1,1,2) [2025-04-11 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881973', 'tblTempUsageDetail_20' ) start [2025-04-11 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881973', 'tblTempUsageDetail_20' ) end [2025-04-11 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:07:22] Production.INFO: ==5805== Releasing lock... [2025-04-11 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:08:05 [end_date_ymd] => 2025-04-11 05:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:08:05' and `end` < '2025-04-11 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-04-11 05:08:18] Production.INFO: count ==157 [2025-04-11 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:08:05 - End Time 2025-04-11 05:08:05 [2025-04-11 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881978', 'tblTempUsageDetail_20' ) start [2025-04-11 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881978', 'tblTempUsageDetail_20' ) end [2025-04-11 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881978', 'tblTempVendorCDR_20' ) start [2025-04-11 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881978', 'tblTempVendorCDR_20' ) end [2025-04-11 05:08:18] Production.INFO: ProcessCDR(1,14881978,1,1,2) [2025-04-11 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881978', 'tblTempUsageDetail_20' ) start [2025-04-11 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881978', 'tblTempUsageDetail_20' ) end [2025-04-11 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:08:21] Production.INFO: ==5886== Releasing lock... [2025-04-11 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:09:05 [end_date_ymd] => 2025-04-11 05:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:09:05' and `end` < '2025-04-11 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-04-11 05:09:18] Production.INFO: count ==157 [2025-04-11 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:09:05 - End Time 2025-04-11 05:09:05 [2025-04-11 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881983', 'tblTempUsageDetail_20' ) start [2025-04-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881983', 'tblTempUsageDetail_20' ) end [2025-04-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881983', 'tblTempVendorCDR_20' ) start [2025-04-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881983', 'tblTempVendorCDR_20' ) end [2025-04-11 05:09:18] Production.INFO: ProcessCDR(1,14881983,1,1,2) [2025-04-11 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881983', 'tblTempUsageDetail_20' ) start [2025-04-11 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881983', 'tblTempUsageDetail_20' ) end [2025-04-11 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:09:22] Production.INFO: ==5961== Releasing lock... [2025-04-11 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:10:06 [end_date_ymd] => 2025-04-11 05:10:06 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:10:06' and `end` < '2025-04-11 05: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-04-11 05:10:18] Production.INFO: count ==149 [2025-04-11 05:10:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:10:06 - End Time 2025-04-11 05:10:06 [2025-04-11 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881989', 'tblTempUsageDetail_20' ) start [2025-04-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881989', 'tblTempUsageDetail_20' ) end [2025-04-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881989', 'tblTempVendorCDR_20' ) start [2025-04-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881989', 'tblTempVendorCDR_20' ) end [2025-04-11 05:10:18] Production.INFO: ProcessCDR(1,14881989,1,1,2) [2025-04-11 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881989', 'tblTempUsageDetail_20' ) start [2025-04-11 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881989', 'tblTempUsageDetail_20' ) end [2025-04-11 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:10:22] Production.INFO: ==6041== Releasing lock... [2025-04-11 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:11:05 [end_date_ymd] => 2025-04-11 05:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:11:05' and `end` < '2025-04-11 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-04-11 05:11:18] Production.INFO: count ==127 [2025-04-11 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:11:05 - End Time 2025-04-11 05:11:05 [2025-04-11 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881994', 'tblTempUsageDetail_20' ) start [2025-04-11 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881994', 'tblTempUsageDetail_20' ) end [2025-04-11 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881994', 'tblTempVendorCDR_20' ) start [2025-04-11 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881994', 'tblTempVendorCDR_20' ) end [2025-04-11 05:11:18] Production.INFO: ProcessCDR(1,14881994,1,1,2) [2025-04-11 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881994', 'tblTempUsageDetail_20' ) start [2025-04-11 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881994', 'tblTempUsageDetail_20' ) end [2025-04-11 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:11:21] Production.INFO: ==6116== Releasing lock... [2025-04-11 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:12:05 [end_date_ymd] => 2025-04-11 05:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:12:05' and `end` < '2025-04-11 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-04-11 05:12:18] Production.INFO: count ==125 [2025-04-11 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:12:05 - End Time 2025-04-11 05:12:05 [2025-04-11 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881999', 'tblTempUsageDetail_20' ) start [2025-04-11 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14881999', 'tblTempUsageDetail_20' ) end [2025-04-11 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881999', 'tblTempVendorCDR_20' ) start [2025-04-11 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14881999', 'tblTempVendorCDR_20' ) end [2025-04-11 05:12:18] Production.INFO: ProcessCDR(1,14881999,1,1,2) [2025-04-11 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14881999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14881999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14881999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14881999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881999', 'tblTempUsageDetail_20' ) start [2025-04-11 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14881999', 'tblTempUsageDetail_20' ) end [2025-04-11 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:12:21] Production.INFO: ==6192== Releasing lock... [2025-04-11 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:13:04 [end_date_ymd] => 2025-04-11 05:13:04 [RateCDR] => 1 ) [2025-04-11 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:13:04' and `end` < '2025-04-11 05:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:13:17] Production.INFO: count ==125 [2025-04-11 05:13:17] Production.ERROR: pbx CDR StartTime 2025-04-11 02:13:04 - End Time 2025-04-11 05:13:04 [2025-04-11 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882004', 'tblTempUsageDetail_20' ) start [2025-04-11 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882004', 'tblTempUsageDetail_20' ) end [2025-04-11 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882004', 'tblTempVendorCDR_20' ) start [2025-04-11 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882004', 'tblTempVendorCDR_20' ) end [2025-04-11 05:13:17] Production.INFO: ProcessCDR(1,14882004,1,1,2) [2025-04-11 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882004', 'tblTempUsageDetail_20' ) start [2025-04-11 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882004', 'tblTempUsageDetail_20' ) end [2025-04-11 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:13:21] Production.INFO: ==6270== Releasing lock... [2025-04-11 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:14:05 [end_date_ymd] => 2025-04-11 05:14:05 [RateCDR] => 1 ) [2025-04-11 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:14:05' and `end` < '2025-04-11 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:14:18] Production.INFO: count ==125 [2025-04-11 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:14:05 - End Time 2025-04-11 05:14:05 [2025-04-11 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882009', 'tblTempUsageDetail_20' ) start [2025-04-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882009', 'tblTempUsageDetail_20' ) end [2025-04-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882009', 'tblTempVendorCDR_20' ) start [2025-04-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882009', 'tblTempVendorCDR_20' ) end [2025-04-11 05:14:18] Production.INFO: ProcessCDR(1,14882009,1,1,2) [2025-04-11 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882009', 'tblTempUsageDetail_20' ) start [2025-04-11 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882009', 'tblTempUsageDetail_20' ) end [2025-04-11 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:14:21] Production.INFO: ==6350== Releasing lock... [2025-04-11 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:15:05 [end_date_ymd] => 2025-04-11 05:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:15:05' and `end` < '2025-04-11 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-04-11 05:15:17] Production.INFO: count ==125 [2025-04-11 05:15:17] Production.ERROR: pbx CDR StartTime 2025-04-11 02:15:05 - End Time 2025-04-11 05:15:05 [2025-04-11 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882014', 'tblTempUsageDetail_20' ) start [2025-04-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882014', 'tblTempUsageDetail_20' ) end [2025-04-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882014', 'tblTempVendorCDR_20' ) start [2025-04-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882014', 'tblTempVendorCDR_20' ) end [2025-04-11 05:15:18] Production.INFO: ProcessCDR(1,14882014,1,1,2) [2025-04-11 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882014', 'tblTempUsageDetail_20' ) start [2025-04-11 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882014', 'tblTempUsageDetail_20' ) end [2025-04-11 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:15:21] Production.INFO: ==6420== Releasing lock... [2025-04-11 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:16:05 [end_date_ymd] => 2025-04-11 05:16:05 [RateCDR] => 1 ) [2025-04-11 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:16:05' and `end` < '2025-04-11 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:16:18] Production.INFO: count ==125 [2025-04-11 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:16:05 - End Time 2025-04-11 05:16:05 [2025-04-11 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882019', 'tblTempUsageDetail_20' ) start [2025-04-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882019', 'tblTempUsageDetail_20' ) end [2025-04-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882019', 'tblTempVendorCDR_20' ) start [2025-04-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882019', 'tblTempVendorCDR_20' ) end [2025-04-11 05:16:18] Production.INFO: ProcessCDR(1,14882019,1,1,2) [2025-04-11 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882019', 'tblTempUsageDetail_20' ) start [2025-04-11 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882019', 'tblTempUsageDetail_20' ) end [2025-04-11 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:16:22] Production.INFO: ==6494== Releasing lock... [2025-04-11 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:17:05 [end_date_ymd] => 2025-04-11 05:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:17:05' and `end` < '2025-04-11 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-04-11 05:17:18] Production.INFO: count ==125 [2025-04-11 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:17:05 - End Time 2025-04-11 05:17:05 [2025-04-11 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882024', 'tblTempUsageDetail_20' ) start [2025-04-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882024', 'tblTempUsageDetail_20' ) end [2025-04-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882024', 'tblTempVendorCDR_20' ) start [2025-04-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882024', 'tblTempVendorCDR_20' ) end [2025-04-11 05:17:18] Production.INFO: ProcessCDR(1,14882024,1,1,2) [2025-04-11 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882024', 'tblTempUsageDetail_20' ) start [2025-04-11 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882024', 'tblTempUsageDetail_20' ) end [2025-04-11 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:17:21] Production.INFO: ==6577== Releasing lock... [2025-04-11 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:18:05 [end_date_ymd] => 2025-04-11 05:18:05 [RateCDR] => 1 ) [2025-04-11 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:18:05' and `end` < '2025-04-11 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:18:18] Production.INFO: count ==125 [2025-04-11 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:18:05 - End Time 2025-04-11 05:18:05 [2025-04-11 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882029', 'tblTempUsageDetail_20' ) start [2025-04-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882029', 'tblTempUsageDetail_20' ) end [2025-04-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882029', 'tblTempVendorCDR_20' ) start [2025-04-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882029', 'tblTempVendorCDR_20' ) end [2025-04-11 05:18:18] Production.INFO: ProcessCDR(1,14882029,1,1,2) [2025-04-11 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882029', 'tblTempUsageDetail_20' ) start [2025-04-11 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882029', 'tblTempUsageDetail_20' ) end [2025-04-11 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:18:22] Production.INFO: ==6670== Releasing lock... [2025-04-11 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:19:06 [end_date_ymd] => 2025-04-11 05:19:06 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:19:06' and `end` < '2025-04-11 05: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-04-11 05:19:19] Production.INFO: count ==125 [2025-04-11 05:19:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:19:06 - End Time 2025-04-11 05:19:06 [2025-04-11 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882034', 'tblTempUsageDetail_20' ) start [2025-04-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882034', 'tblTempUsageDetail_20' ) end [2025-04-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882034', 'tblTempVendorCDR_20' ) start [2025-04-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882034', 'tblTempVendorCDR_20' ) end [2025-04-11 05:19:19] Production.INFO: ProcessCDR(1,14882034,1,1,2) [2025-04-11 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882034', 'tblTempUsageDetail_20' ) start [2025-04-11 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882034', 'tblTempUsageDetail_20' ) end [2025-04-11 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:19:22] Production.INFO: ==6786== Releasing lock... [2025-04-11 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:20:06 [end_date_ymd] => 2025-04-11 05:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:20:06' and `end` < '2025-04-11 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-04-11 05:20:19] Production.INFO: count ==125 [2025-04-11 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:20:06 - End Time 2025-04-11 05:20:06 [2025-04-11 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882039', 'tblTempUsageDetail_20' ) start [2025-04-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882039', 'tblTempUsageDetail_20' ) end [2025-04-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882039', 'tblTempVendorCDR_20' ) start [2025-04-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882039', 'tblTempVendorCDR_20' ) end [2025-04-11 05:20:19] Production.INFO: ProcessCDR(1,14882039,1,1,2) [2025-04-11 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882039', 'tblTempUsageDetail_20' ) start [2025-04-11 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882039', 'tblTempUsageDetail_20' ) end [2025-04-11 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:20:22] Production.INFO: ==6864== Releasing lock... [2025-04-11 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:21:06 [end_date_ymd] => 2025-04-11 05:21:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:21:06' and `end` < '2025-04-11 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-04-11 05:21:19] Production.INFO: count ==125 [2025-04-11 05:21:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:21:06 - End Time 2025-04-11 05:21:06 [2025-04-11 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882045', 'tblTempUsageDetail_20' ) start [2025-04-11 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882045', 'tblTempUsageDetail_20' ) end [2025-04-11 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882045', 'tblTempVendorCDR_20' ) start [2025-04-11 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882045', 'tblTempVendorCDR_20' ) end [2025-04-11 05:21:19] Production.INFO: ProcessCDR(1,14882045,1,1,2) [2025-04-11 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882045', 'tblTempUsageDetail_20' ) start [2025-04-11 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882045', 'tblTempUsageDetail_20' ) end [2025-04-11 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:21:22] Production.INFO: ==6943== Releasing lock... [2025-04-11 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:22:05 [end_date_ymd] => 2025-04-11 05:22:05 [RateCDR] => 1 ) [2025-04-11 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:22:05' and `end` < '2025-04-11 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-04-11 05:22:18] Production.INFO: count ==125 [2025-04-11 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:22:05 - End Time 2025-04-11 05:22:05 [2025-04-11 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882050', 'tblTempUsageDetail_20' ) start [2025-04-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882050', 'tblTempUsageDetail_20' ) end [2025-04-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882050', 'tblTempVendorCDR_20' ) start [2025-04-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882050', 'tblTempVendorCDR_20' ) end [2025-04-11 05:22:18] Production.INFO: ProcessCDR(1,14882050,1,1,2) [2025-04-11 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882050', 'tblTempUsageDetail_20' ) start [2025-04-11 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882050', 'tblTempUsageDetail_20' ) end [2025-04-11 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:22:21] Production.INFO: ==7018== Releasing lock... [2025-04-11 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:23:05 [end_date_ymd] => 2025-04-11 05:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:23:05' and `end` < '2025-04-11 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-04-11 05:23:18] Production.INFO: count ==125 [2025-04-11 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:23:05 - End Time 2025-04-11 05:23:05 [2025-04-11 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882055', 'tblTempUsageDetail_20' ) start [2025-04-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882055', 'tblTempUsageDetail_20' ) end [2025-04-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882055', 'tblTempVendorCDR_20' ) start [2025-04-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882055', 'tblTempVendorCDR_20' ) end [2025-04-11 05:23:18] Production.INFO: ProcessCDR(1,14882055,1,1,2) [2025-04-11 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882055', 'tblTempUsageDetail_20' ) start [2025-04-11 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882055', 'tblTempUsageDetail_20' ) end [2025-04-11 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:23:21] Production.INFO: ==7092== Releasing lock... [2025-04-11 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:24:05 [end_date_ymd] => 2025-04-11 05:24:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:24:05' and `end` < '2025-04-11 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-04-11 05:24:17] Production.INFO: count ==125 [2025-04-11 05:24:17] Production.ERROR: pbx CDR StartTime 2025-04-11 02:24:05 - End Time 2025-04-11 05:24:05 [2025-04-11 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882060', 'tblTempUsageDetail_20' ) start [2025-04-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882060', 'tblTempUsageDetail_20' ) end [2025-04-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882060', 'tblTempVendorCDR_20' ) start [2025-04-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882060', 'tblTempVendorCDR_20' ) end [2025-04-11 05:24:17] Production.INFO: ProcessCDR(1,14882060,1,1,2) [2025-04-11 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882060', 'tblTempUsageDetail_20' ) start [2025-04-11 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882060', 'tblTempUsageDetail_20' ) end [2025-04-11 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:24:21] Production.INFO: ==7174== Releasing lock... [2025-04-11 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:25:05 [end_date_ymd] => 2025-04-11 05:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:25:05' and `end` < '2025-04-11 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-04-11 05:25:18] Production.INFO: count ==125 [2025-04-11 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:25:05 - End Time 2025-04-11 05:25:05 [2025-04-11 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882065', 'tblTempUsageDetail_20' ) start [2025-04-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882065', 'tblTempUsageDetail_20' ) end [2025-04-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882065', 'tblTempVendorCDR_20' ) start [2025-04-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882065', 'tblTempVendorCDR_20' ) end [2025-04-11 05:25:18] Production.INFO: ProcessCDR(1,14882065,1,1,2) [2025-04-11 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882065', 'tblTempUsageDetail_20' ) start [2025-04-11 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882065', 'tblTempUsageDetail_20' ) end [2025-04-11 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:25:22] Production.INFO: ==7249== Releasing lock... [2025-04-11 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:26:05 [end_date_ymd] => 2025-04-11 05:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:26:05' and `end` < '2025-04-11 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-04-11 05:26:17] Production.INFO: count ==125 [2025-04-11 05:26:17] Production.ERROR: pbx CDR StartTime 2025-04-11 02:26:05 - End Time 2025-04-11 05:26:05 [2025-04-11 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882070', 'tblTempUsageDetail_20' ) start [2025-04-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882070', 'tblTempUsageDetail_20' ) end [2025-04-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882070', 'tblTempVendorCDR_20' ) start [2025-04-11 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882070', 'tblTempVendorCDR_20' ) end [2025-04-11 05:26:17] Production.INFO: ProcessCDR(1,14882070,1,1,2) [2025-04-11 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882070', 'tblTempUsageDetail_20' ) start [2025-04-11 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882070', 'tblTempUsageDetail_20' ) end [2025-04-11 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:26:21] Production.INFO: ==7318== Releasing lock... [2025-04-11 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:27:05 [end_date_ymd] => 2025-04-11 05:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:27:05' and `end` < '2025-04-11 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-04-11 05:27:18] Production.INFO: count ==125 [2025-04-11 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:27:05 - End Time 2025-04-11 05:27:05 [2025-04-11 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882075', 'tblTempUsageDetail_20' ) start [2025-04-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882075', 'tblTempUsageDetail_20' ) end [2025-04-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882075', 'tblTempVendorCDR_20' ) start [2025-04-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882075', 'tblTempVendorCDR_20' ) end [2025-04-11 05:27:18] Production.INFO: ProcessCDR(1,14882075,1,1,2) [2025-04-11 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882075', 'tblTempUsageDetail_20' ) start [2025-04-11 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882075', 'tblTempUsageDetail_20' ) end [2025-04-11 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:27:22] Production.INFO: ==7393== Releasing lock... [2025-04-11 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:28:06 [end_date_ymd] => 2025-04-11 05:28:06 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:28:06' and `end` < '2025-04-11 05: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-04-11 05:28:19] Production.INFO: count ==125 [2025-04-11 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:28:06 - End Time 2025-04-11 05:28:06 [2025-04-11 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882080', 'tblTempUsageDetail_20' ) start [2025-04-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882080', 'tblTempUsageDetail_20' ) end [2025-04-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882080', 'tblTempVendorCDR_20' ) start [2025-04-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882080', 'tblTempVendorCDR_20' ) end [2025-04-11 05:28:19] Production.INFO: ProcessCDR(1,14882080,1,1,2) [2025-04-11 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882080', 'tblTempUsageDetail_20' ) start [2025-04-11 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882080', 'tblTempUsageDetail_20' ) end [2025-04-11 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:28:22] Production.INFO: ==7468== Releasing lock... [2025-04-11 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:29:05 [end_date_ymd] => 2025-04-11 05:29:05 [RateCDR] => 1 ) [2025-04-11 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:29:05' and `end` < '2025-04-11 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:29:17] Production.INFO: count ==125 [2025-04-11 05:29:17] Production.ERROR: pbx CDR StartTime 2025-04-11 02:29:05 - End Time 2025-04-11 05:29:05 [2025-04-11 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882085', 'tblTempUsageDetail_20' ) start [2025-04-11 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882085', 'tblTempUsageDetail_20' ) end [2025-04-11 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882085', 'tblTempVendorCDR_20' ) start [2025-04-11 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882085', 'tblTempVendorCDR_20' ) end [2025-04-11 05:29:18] Production.INFO: ProcessCDR(1,14882085,1,1,2) [2025-04-11 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882085', 'tblTempUsageDetail_20' ) start [2025-04-11 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882085', 'tblTempUsageDetail_20' ) end [2025-04-11 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:29:21] Production.INFO: ==7547== Releasing lock... [2025-04-11 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:30:06 [end_date_ymd] => 2025-04-11 05:30:06 [RateCDR] => 1 ) [2025-04-11 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:30:06' and `end` < '2025-04-11 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:30:19] Production.INFO: count ==123 [2025-04-11 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:30:06 - End Time 2025-04-11 05:30:06 [2025-04-11 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882090', 'tblTempUsageDetail_20' ) start [2025-04-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882090', 'tblTempUsageDetail_20' ) end [2025-04-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882090', 'tblTempVendorCDR_20' ) start [2025-04-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882090', 'tblTempVendorCDR_20' ) end [2025-04-11 05:30:19] Production.INFO: ProcessCDR(1,14882090,1,1,2) [2025-04-11 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882090', 'tblTempUsageDetail_20' ) start [2025-04-11 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882090', 'tblTempUsageDetail_20' ) end [2025-04-11 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:30:22] Production.INFO: ==7623== Releasing lock... [2025-04-11 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:31:05 [end_date_ymd] => 2025-04-11 05:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:31:05' and `end` < '2025-04-11 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-04-11 05:31:18] Production.INFO: count ==123 [2025-04-11 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:31:05 - End Time 2025-04-11 05:31:05 [2025-04-11 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882096', 'tblTempUsageDetail_20' ) start [2025-04-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882096', 'tblTempUsageDetail_20' ) end [2025-04-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882096', 'tblTempVendorCDR_20' ) start [2025-04-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882096', 'tblTempVendorCDR_20' ) end [2025-04-11 05:31:18] Production.INFO: ProcessCDR(1,14882096,1,1,2) [2025-04-11 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882096', 'tblTempUsageDetail_20' ) start [2025-04-11 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882096', 'tblTempUsageDetail_20' ) end [2025-04-11 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:31:21] Production.INFO: ==7704== Releasing lock... [2025-04-11 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:32:05 [end_date_ymd] => 2025-04-11 05:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:32:05' and `end` < '2025-04-11 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-04-11 05:32:18] Production.INFO: count ==123 [2025-04-11 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:32:05 - End Time 2025-04-11 05:32:05 [2025-04-11 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882101', 'tblTempUsageDetail_20' ) start [2025-04-11 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882101', 'tblTempUsageDetail_20' ) end [2025-04-11 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882101', 'tblTempVendorCDR_20' ) start [2025-04-11 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882101', 'tblTempVendorCDR_20' ) end [2025-04-11 05:32:18] Production.INFO: ProcessCDR(1,14882101,1,1,2) [2025-04-11 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882101', 'tblTempUsageDetail_20' ) start [2025-04-11 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882101', 'tblTempUsageDetail_20' ) end [2025-04-11 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:32:22] Production.INFO: ==7775== Releasing lock... [2025-04-11 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:33:04 [end_date_ymd] => 2025-04-11 05:33:04 [RateCDR] => 1 ) [2025-04-11 05:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:33:04' and `end` < '2025-04-11 05:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:33:17] Production.INFO: count ==121 [2025-04-11 05:33:17] Production.ERROR: pbx CDR StartTime 2025-04-11 02:33:04 - End Time 2025-04-11 05:33:04 [2025-04-11 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882106', 'tblTempUsageDetail_20' ) start [2025-04-11 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882106', 'tblTempUsageDetail_20' ) end [2025-04-11 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882106', 'tblTempVendorCDR_20' ) start [2025-04-11 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882106', 'tblTempVendorCDR_20' ) end [2025-04-11 05:33:17] Production.INFO: ProcessCDR(1,14882106,1,1,2) [2025-04-11 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882106', 'tblTempUsageDetail_20' ) start [2025-04-11 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882106', 'tblTempUsageDetail_20' ) end [2025-04-11 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:33:21] Production.INFO: ==7854== Releasing lock... [2025-04-11 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:34:06 [end_date_ymd] => 2025-04-11 05:34:06 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:34:06' and `end` < '2025-04-11 05: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-04-11 05:34:18] Production.INFO: count ==121 [2025-04-11 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:34:06 - End Time 2025-04-11 05:34:06 [2025-04-11 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882111', 'tblTempUsageDetail_20' ) start [2025-04-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882111', 'tblTempUsageDetail_20' ) end [2025-04-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882111', 'tblTempVendorCDR_20' ) start [2025-04-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882111', 'tblTempVendorCDR_20' ) end [2025-04-11 05:34:18] Production.INFO: ProcessCDR(1,14882111,1,1,2) [2025-04-11 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882111', 'tblTempUsageDetail_20' ) start [2025-04-11 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882111', 'tblTempUsageDetail_20' ) end [2025-04-11 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:34:22] Production.INFO: ==7935== Releasing lock... [2025-04-11 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:35:05 [end_date_ymd] => 2025-04-11 05:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:35:05' and `end` < '2025-04-11 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-04-11 05:35:18] Production.INFO: count ==121 [2025-04-11 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:35:05 - End Time 2025-04-11 05:35:05 [2025-04-11 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882116', 'tblTempUsageDetail_20' ) start [2025-04-11 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882116', 'tblTempUsageDetail_20' ) end [2025-04-11 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882116', 'tblTempVendorCDR_20' ) start [2025-04-11 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882116', 'tblTempVendorCDR_20' ) end [2025-04-11 05:35:18] Production.INFO: ProcessCDR(1,14882116,1,1,2) [2025-04-11 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882116', 'tblTempUsageDetail_20' ) start [2025-04-11 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882116', 'tblTempUsageDetail_20' ) end [2025-04-11 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:35:21] Production.INFO: ==8049== Releasing lock... [2025-04-11 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:36:05 [end_date_ymd] => 2025-04-11 05:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:36:05' and `end` < '2025-04-11 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-04-11 05:36:18] Production.INFO: count ==121 [2025-04-11 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:36:05 - End Time 2025-04-11 05:36:05 [2025-04-11 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882121', 'tblTempUsageDetail_20' ) start [2025-04-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882121', 'tblTempUsageDetail_20' ) end [2025-04-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882121', 'tblTempVendorCDR_20' ) start [2025-04-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882121', 'tblTempVendorCDR_20' ) end [2025-04-11 05:36:18] Production.INFO: ProcessCDR(1,14882121,1,1,2) [2025-04-11 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882121', 'tblTempUsageDetail_20' ) start [2025-04-11 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882121', 'tblTempUsageDetail_20' ) end [2025-04-11 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:36:21] Production.INFO: ==8122== Releasing lock... [2025-04-11 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:37:06 [end_date_ymd] => 2025-04-11 05:37:06 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:37:06' and `end` < '2025-04-11 05: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-04-11 05:37:18] Production.INFO: count ==121 [2025-04-11 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:37:06 - End Time 2025-04-11 05:37:06 [2025-04-11 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882126', 'tblTempUsageDetail_20' ) start [2025-04-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882126', 'tblTempUsageDetail_20' ) end [2025-04-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882126', 'tblTempVendorCDR_20' ) start [2025-04-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882126', 'tblTempVendorCDR_20' ) end [2025-04-11 05:37:18] Production.INFO: ProcessCDR(1,14882126,1,1,2) [2025-04-11 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882126', 'tblTempUsageDetail_20' ) start [2025-04-11 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882126', 'tblTempUsageDetail_20' ) end [2025-04-11 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:37:22] Production.INFO: ==8199== Releasing lock... [2025-04-11 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:38:05 [end_date_ymd] => 2025-04-11 05:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:38:05' and `end` < '2025-04-11 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-04-11 05:38:18] Production.INFO: count ==121 [2025-04-11 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:38:05 - End Time 2025-04-11 05:38:05 [2025-04-11 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882131', 'tblTempUsageDetail_20' ) start [2025-04-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882131', 'tblTempUsageDetail_20' ) end [2025-04-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882131', 'tblTempVendorCDR_20' ) start [2025-04-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882131', 'tblTempVendorCDR_20' ) end [2025-04-11 05:38:18] Production.INFO: ProcessCDR(1,14882131,1,1,2) [2025-04-11 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882131', 'tblTempUsageDetail_20' ) start [2025-04-11 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882131', 'tblTempUsageDetail_20' ) end [2025-04-11 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:38:21] Production.INFO: ==8273== Releasing lock... [2025-04-11 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:39:05 [end_date_ymd] => 2025-04-11 05:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:39:05' and `end` < '2025-04-11 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-04-11 05:39:17] Production.INFO: count ==121 [2025-04-11 05:39:17] Production.ERROR: pbx CDR StartTime 2025-04-11 02:39:05 - End Time 2025-04-11 05:39:05 [2025-04-11 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882136', 'tblTempUsageDetail_20' ) start [2025-04-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882136', 'tblTempUsageDetail_20' ) end [2025-04-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882136', 'tblTempVendorCDR_20' ) start [2025-04-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882136', 'tblTempVendorCDR_20' ) end [2025-04-11 05:39:17] Production.INFO: ProcessCDR(1,14882136,1,1,2) [2025-04-11 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882136', 'tblTempUsageDetail_20' ) start [2025-04-11 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882136', 'tblTempUsageDetail_20' ) end [2025-04-11 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:39:21] Production.INFO: ==8351== Releasing lock... [2025-04-11 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:40:05 [end_date_ymd] => 2025-04-11 05:40:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:40:05' and `end` < '2025-04-11 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:40:18] Production.INFO: count ==119 [2025-04-11 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:40:05 - End Time 2025-04-11 05:40:05 [2025-04-11 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882142', 'tblTempUsageDetail_20' ) start [2025-04-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882142', 'tblTempUsageDetail_20' ) end [2025-04-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882142', 'tblTempVendorCDR_20' ) start [2025-04-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882142', 'tblTempVendorCDR_20' ) end [2025-04-11 05:40:18] Production.INFO: ProcessCDR(1,14882142,1,1,2) [2025-04-11 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882142', 'tblTempUsageDetail_20' ) start [2025-04-11 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882142', 'tblTempUsageDetail_20' ) end [2025-04-11 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:40:22] Production.INFO: ==8430== Releasing lock... [2025-04-11 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:41:05 [end_date_ymd] => 2025-04-11 05:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:41:05' and `end` < '2025-04-11 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-04-11 05:41:18] Production.INFO: count ==119 [2025-04-11 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:41:05 - End Time 2025-04-11 05:41:05 [2025-04-11 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882147', 'tblTempUsageDetail_20' ) start [2025-04-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882147', 'tblTempUsageDetail_20' ) end [2025-04-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882147', 'tblTempVendorCDR_20' ) start [2025-04-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882147', 'tblTempVendorCDR_20' ) end [2025-04-11 05:41:18] Production.INFO: ProcessCDR(1,14882147,1,1,2) [2025-04-11 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882147', 'tblTempUsageDetail_20' ) start [2025-04-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882147', 'tblTempUsageDetail_20' ) end [2025-04-11 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:41:21] Production.INFO: ==8503== Releasing lock... [2025-04-11 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:42:05 [end_date_ymd] => 2025-04-11 05:42:05 [RateCDR] => 1 ) [2025-04-11 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:42:05' and `end` < '2025-04-11 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-04-11 05:42:18] Production.INFO: count ==119 [2025-04-11 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:42:05 - End Time 2025-04-11 05:42:05 [2025-04-11 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882152', 'tblTempUsageDetail_20' ) start [2025-04-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882152', 'tblTempUsageDetail_20' ) end [2025-04-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882152', 'tblTempVendorCDR_20' ) start [2025-04-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882152', 'tblTempVendorCDR_20' ) end [2025-04-11 05:42:18] Production.INFO: ProcessCDR(1,14882152,1,1,2) [2025-04-11 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882152', 'tblTempUsageDetail_20' ) start [2025-04-11 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882152', 'tblTempUsageDetail_20' ) end [2025-04-11 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:42:21] Production.INFO: ==8576== Releasing lock... [2025-04-11 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:43:05 [end_date_ymd] => 2025-04-11 05:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:43:05' and `end` < '2025-04-11 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-04-11 05:43:18] Production.INFO: count ==119 [2025-04-11 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:43:05 - End Time 2025-04-11 05:43:05 [2025-04-11 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882157', 'tblTempUsageDetail_20' ) start [2025-04-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882157', 'tblTempUsageDetail_20' ) end [2025-04-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882157', 'tblTempVendorCDR_20' ) start [2025-04-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882157', 'tblTempVendorCDR_20' ) end [2025-04-11 05:43:18] Production.INFO: ProcessCDR(1,14882157,1,1,2) [2025-04-11 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882157', 'tblTempUsageDetail_20' ) start [2025-04-11 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882157', 'tblTempUsageDetail_20' ) end [2025-04-11 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:43:21] Production.INFO: ==8650== Releasing lock... [2025-04-11 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:44:05 [end_date_ymd] => 2025-04-11 05:44:05 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:44:05' and `end` < '2025-04-11 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-04-11 05:44:18] Production.INFO: count ==119 [2025-04-11 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:44:05 - End Time 2025-04-11 05:44:05 [2025-04-11 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882162', 'tblTempUsageDetail_20' ) start [2025-04-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882162', 'tblTempUsageDetail_20' ) end [2025-04-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882162', 'tblTempVendorCDR_20' ) start [2025-04-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882162', 'tblTempVendorCDR_20' ) end [2025-04-11 05:44:18] Production.INFO: ProcessCDR(1,14882162,1,1,2) [2025-04-11 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882162', 'tblTempUsageDetail_20' ) start [2025-04-11 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882162', 'tblTempUsageDetail_20' ) end [2025-04-11 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:44:22] Production.INFO: ==8731== Releasing lock... [2025-04-11 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:45:05 [end_date_ymd] => 2025-04-11 05:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:45:05' and `end` < '2025-04-11 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-04-11 05:45:18] Production.INFO: count ==119 [2025-04-11 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:45:05 - End Time 2025-04-11 05:45:05 [2025-04-11 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882167', 'tblTempUsageDetail_20' ) start [2025-04-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882167', 'tblTempUsageDetail_20' ) end [2025-04-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882167', 'tblTempVendorCDR_20' ) start [2025-04-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882167', 'tblTempVendorCDR_20' ) end [2025-04-11 05:45:18] Production.INFO: ProcessCDR(1,14882167,1,1,2) [2025-04-11 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882167', 'tblTempUsageDetail_20' ) start [2025-04-11 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882167', 'tblTempUsageDetail_20' ) end [2025-04-11 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:45:22] Production.INFO: ==8812== Releasing lock... [2025-04-11 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:46:06 [end_date_ymd] => 2025-04-11 05:46:06 [RateCDR] => 1 ) [2025-04-11 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:46:06' and `end` < '2025-04-11 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:46:18] Production.INFO: count ==119 [2025-04-11 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:46:06 - End Time 2025-04-11 05:46:06 [2025-04-11 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882172', 'tblTempUsageDetail_20' ) start [2025-04-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882172', 'tblTempUsageDetail_20' ) end [2025-04-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882172', 'tblTempVendorCDR_20' ) start [2025-04-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882172', 'tblTempVendorCDR_20' ) end [2025-04-11 05:46:18] Production.INFO: ProcessCDR(1,14882172,1,1,2) [2025-04-11 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882172', 'tblTempUsageDetail_20' ) start [2025-04-11 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882172', 'tblTempUsageDetail_20' ) end [2025-04-11 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:46:22] Production.INFO: ==8885== Releasing lock... [2025-04-11 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:47:05 [end_date_ymd] => 2025-04-11 05:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:47:05' and `end` < '2025-04-11 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-04-11 05:47:18] Production.INFO: count ==118 [2025-04-11 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:47:05 - End Time 2025-04-11 05:47:05 [2025-04-11 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882177', 'tblTempUsageDetail_20' ) start [2025-04-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882177', 'tblTempUsageDetail_20' ) end [2025-04-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882177', 'tblTempVendorCDR_20' ) start [2025-04-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882177', 'tblTempVendorCDR_20' ) end [2025-04-11 05:47:18] Production.INFO: ProcessCDR(1,14882177,1,1,2) [2025-04-11 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882177', 'tblTempUsageDetail_20' ) start [2025-04-11 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882177', 'tblTempUsageDetail_20' ) end [2025-04-11 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:47:21] Production.INFO: ==8962== Releasing lock... [2025-04-11 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:48:05 [end_date_ymd] => 2025-04-11 05:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:48:05' and `end` < '2025-04-11 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-04-11 05:48:18] Production.INFO: count ==118 [2025-04-11 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:48:05 - End Time 2025-04-11 05:48:05 [2025-04-11 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882182', 'tblTempUsageDetail_20' ) start [2025-04-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882182', 'tblTempUsageDetail_20' ) end [2025-04-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882182', 'tblTempVendorCDR_20' ) start [2025-04-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882182', 'tblTempVendorCDR_20' ) end [2025-04-11 05:48:18] Production.INFO: ProcessCDR(1,14882182,1,1,2) [2025-04-11 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882182', 'tblTempUsageDetail_20' ) start [2025-04-11 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882182', 'tblTempUsageDetail_20' ) end [2025-04-11 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:48:22] Production.INFO: ==9033== Releasing lock... [2025-04-11 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:49:05 [end_date_ymd] => 2025-04-11 05:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:49:05' and `end` < '2025-04-11 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-04-11 05:49:18] Production.INFO: count ==118 [2025-04-11 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:49:05 - End Time 2025-04-11 05:49:05 [2025-04-11 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882187', 'tblTempUsageDetail_20' ) start [2025-04-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882187', 'tblTempUsageDetail_20' ) end [2025-04-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882187', 'tblTempVendorCDR_20' ) start [2025-04-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882187', 'tblTempVendorCDR_20' ) end [2025-04-11 05:49:18] Production.INFO: ProcessCDR(1,14882187,1,1,2) [2025-04-11 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882187', 'tblTempUsageDetail_20' ) start [2025-04-11 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882187', 'tblTempUsageDetail_20' ) end [2025-04-11 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:49:21] Production.INFO: ==9108== Releasing lock... [2025-04-11 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:50:07 [end_date_ymd] => 2025-04-11 05:50:07 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:50:07' and `end` < '2025-04-11 05: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-04-11 05:50:19] Production.INFO: count ==126 [2025-04-11 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:50:07 - End Time 2025-04-11 05:50:07 [2025-04-11 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882193', 'tblTempUsageDetail_20' ) start [2025-04-11 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882193', 'tblTempUsageDetail_20' ) end [2025-04-11 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882193', 'tblTempVendorCDR_20' ) start [2025-04-11 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882193', 'tblTempVendorCDR_20' ) end [2025-04-11 05:50:19] Production.INFO: ProcessCDR(1,14882193,1,1,2) [2025-04-11 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882193', 'tblTempUsageDetail_20' ) start [2025-04-11 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882193', 'tblTempUsageDetail_20' ) end [2025-04-11 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:50:23] Production.INFO: ==9226== Releasing lock... [2025-04-11 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:50:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:51:05 [end_date_ymd] => 2025-04-11 05:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:51:05' and `end` < '2025-04-11 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-04-11 05:51:18] Production.INFO: count ==128 [2025-04-11 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:51:05 - End Time 2025-04-11 05:51:05 [2025-04-11 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882198', 'tblTempUsageDetail_20' ) start [2025-04-11 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882198', 'tblTempUsageDetail_20' ) end [2025-04-11 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882198', 'tblTempVendorCDR_20' ) start [2025-04-11 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882198', 'tblTempVendorCDR_20' ) end [2025-04-11 05:51:18] Production.INFO: ProcessCDR(1,14882198,1,1,2) [2025-04-11 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882198', 'tblTempUsageDetail_20' ) start [2025-04-11 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882198', 'tblTempUsageDetail_20' ) end [2025-04-11 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:51:21] Production.INFO: ==9308== Releasing lock... [2025-04-11 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:52:06 [end_date_ymd] => 2025-04-11 05:52:06 [RateCDR] => 1 ) [2025-04-11 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:52:06' and `end` < '2025-04-11 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:52:19] Production.INFO: count ==128 [2025-04-11 05:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:52:06 - End Time 2025-04-11 05:52:06 [2025-04-11 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882203', 'tblTempUsageDetail_20' ) start [2025-04-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882203', 'tblTempUsageDetail_20' ) end [2025-04-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882203', 'tblTempVendorCDR_20' ) start [2025-04-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882203', 'tblTempVendorCDR_20' ) end [2025-04-11 05:52:19] Production.INFO: ProcessCDR(1,14882203,1,1,2) [2025-04-11 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882203', 'tblTempUsageDetail_20' ) start [2025-04-11 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882203', 'tblTempUsageDetail_20' ) end [2025-04-11 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:52:22] Production.INFO: ==9383== Releasing lock... [2025-04-11 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:52:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:53:05 [end_date_ymd] => 2025-04-11 05:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:53:05' and `end` < '2025-04-11 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-04-11 05:53:18] Production.INFO: count ==128 [2025-04-11 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:53:05 - End Time 2025-04-11 05:53:05 [2025-04-11 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882208', 'tblTempUsageDetail_20' ) start [2025-04-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882208', 'tblTempUsageDetail_20' ) end [2025-04-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882208', 'tblTempVendorCDR_20' ) start [2025-04-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882208', 'tblTempVendorCDR_20' ) end [2025-04-11 05:53:18] Production.INFO: ProcessCDR(1,14882208,1,1,2) [2025-04-11 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882208', 'tblTempUsageDetail_20' ) start [2025-04-11 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882208', 'tblTempUsageDetail_20' ) end [2025-04-11 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:53:21] Production.INFO: ==9457== Releasing lock... [2025-04-11 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:54:05 [end_date_ymd] => 2025-04-11 05:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:54:05' and `end` < '2025-04-11 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-04-11 05:54:18] Production.INFO: count ==128 [2025-04-11 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:54:05 - End Time 2025-04-11 05:54:05 [2025-04-11 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882213', 'tblTempUsageDetail_20' ) start [2025-04-11 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882213', 'tblTempUsageDetail_20' ) end [2025-04-11 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882213', 'tblTempVendorCDR_20' ) start [2025-04-11 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882213', 'tblTempVendorCDR_20' ) end [2025-04-11 05:54:18] Production.INFO: ProcessCDR(1,14882213,1,1,2) [2025-04-11 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882213', 'tblTempUsageDetail_20' ) start [2025-04-11 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882213', 'tblTempUsageDetail_20' ) end [2025-04-11 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:54:22] Production.INFO: ==9528== Releasing lock... [2025-04-11 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:55:05 [end_date_ymd] => 2025-04-11 05:55:05 [RateCDR] => 1 ) [2025-04-11 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 02:55:05' and `end` < '2025-04-11 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 05:55:18] Production.INFO: count ==128 [2025-04-11 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:55:05 - End Time 2025-04-11 05:55:05 [2025-04-11 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882218', 'tblTempUsageDetail_20' ) start [2025-04-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882218', 'tblTempUsageDetail_20' ) end [2025-04-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882218', 'tblTempVendorCDR_20' ) start [2025-04-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882218', 'tblTempVendorCDR_20' ) end [2025-04-11 05:55:18] Production.INFO: ProcessCDR(1,14882218,1,1,2) [2025-04-11 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882218', 'tblTempUsageDetail_20' ) start [2025-04-11 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882218', 'tblTempUsageDetail_20' ) end [2025-04-11 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:55:22] Production.INFO: ==9600== Releasing lock... [2025-04-11 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:56:05 [end_date_ymd] => 2025-04-11 05:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:56:05' and `end` < '2025-04-11 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-04-11 05:56:18] Production.INFO: count ==128 [2025-04-11 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:56:05 - End Time 2025-04-11 05:56:05 [2025-04-11 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882223', 'tblTempUsageDetail_20' ) start [2025-04-11 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882223', 'tblTempUsageDetail_20' ) end [2025-04-11 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882223', 'tblTempVendorCDR_20' ) start [2025-04-11 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882223', 'tblTempVendorCDR_20' ) end [2025-04-11 05:56:18] Production.INFO: ProcessCDR(1,14882223,1,1,2) [2025-04-11 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882223', 'tblTempUsageDetail_20' ) start [2025-04-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882223', 'tblTempUsageDetail_20' ) end [2025-04-11 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:56:22] Production.INFO: ==9678== Releasing lock... [2025-04-11 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:57:05 [end_date_ymd] => 2025-04-11 05:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:57:05' and `end` < '2025-04-11 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-04-11 05:57:18] Production.INFO: count ==127 [2025-04-11 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:57:05 - End Time 2025-04-11 05:57:05 [2025-04-11 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882228', 'tblTempUsageDetail_20' ) start [2025-04-11 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882228', 'tblTempUsageDetail_20' ) end [2025-04-11 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882228', 'tblTempVendorCDR_20' ) start [2025-04-11 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882228', 'tblTempVendorCDR_20' ) end [2025-04-11 05:57:18] Production.INFO: ProcessCDR(1,14882228,1,1,2) [2025-04-11 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882228', 'tblTempUsageDetail_20' ) start [2025-04-11 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882228', 'tblTempUsageDetail_20' ) end [2025-04-11 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:57:22] Production.INFO: ==9748== Releasing lock... [2025-04-11 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:58:06 [end_date_ymd] => 2025-04-11 05:58:06 [RateCDR] => 1 ) [2025-04-11 05: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-04-11 02:58:06' and `end` < '2025-04-11 05: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-04-11 05:58:19] Production.INFO: count ==127 [2025-04-11 05:58:19] Production.ERROR: pbx CDR StartTime 2025-04-11 02:58:06 - End Time 2025-04-11 05:58:06 [2025-04-11 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882233', 'tblTempUsageDetail_20' ) start [2025-04-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882233', 'tblTempUsageDetail_20' ) end [2025-04-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882233', 'tblTempVendorCDR_20' ) start [2025-04-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882233', 'tblTempVendorCDR_20' ) end [2025-04-11 05:58:19] Production.INFO: ProcessCDR(1,14882233,1,1,2) [2025-04-11 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882233', 'tblTempUsageDetail_20' ) start [2025-04-11 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882233', 'tblTempUsageDetail_20' ) end [2025-04-11 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:58:22] Production.INFO: ==9826== Releasing lock... [2025-04-11 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 02:59:05 [end_date_ymd] => 2025-04-11 05:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 02:59:05' and `end` < '2025-04-11 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-04-11 05:59:18] Production.INFO: count ==129 [2025-04-11 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 02:59:05 - End Time 2025-04-11 05:59:05 [2025-04-11 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882238', 'tblTempUsageDetail_20' ) start [2025-04-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882238', 'tblTempUsageDetail_20' ) end [2025-04-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882238', 'tblTempVendorCDR_20' ) start [2025-04-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882238', 'tblTempVendorCDR_20' ) end [2025-04-11 05:59:18] Production.INFO: ProcessCDR(1,14882238,1,1,2) [2025-04-11 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882238', 'tblTempUsageDetail_20' ) start [2025-04-11 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882238', 'tblTempUsageDetail_20' ) end [2025-04-11 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 05:59:21] Production.INFO: ==9900== Releasing lock... [2025-04-11 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 05:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-11 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:00:07 [end_date_ymd] => 2025-04-11 06:00:07 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:00:07' and `end` < '2025-04-11 06: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-04-11 06:00:19] Production.INFO: count ==117 [2025-04-11 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:00:07 - End Time 2025-04-11 06:00:07 [2025-04-11 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882243', 'tblTempUsageDetail_20' ) start [2025-04-11 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882243', 'tblTempUsageDetail_20' ) end [2025-04-11 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882243', 'tblTempVendorCDR_20' ) start [2025-04-11 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882243', 'tblTempVendorCDR_20' ) end [2025-04-11 06:00:19] Production.INFO: ProcessCDR(1,14882243,1,1,2) [2025-04-11 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882243', 'tblTempUsageDetail_20' ) start [2025-04-11 06:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882243', 'tblTempUsageDetail_20' ) end [2025-04-11 06:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:00:25] Production.INFO: ==9975== Releasing lock... [2025-04-11 06:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:00:25] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:01:05 [end_date_ymd] => 2025-04-11 06:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:01:05' and `end` < '2025-04-11 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-04-11 06:01:18] Production.INFO: count ==60 [2025-04-11 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:01:05 - End Time 2025-04-11 06:01:05 [2025-04-11 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882249', 'tblTempUsageDetail_20' ) start [2025-04-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882249', 'tblTempUsageDetail_20' ) end [2025-04-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882249', 'tblTempVendorCDR_20' ) start [2025-04-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882249', 'tblTempVendorCDR_20' ) end [2025-04-11 06:01:18] Production.INFO: ProcessCDR(1,14882249,1,1,2) [2025-04-11 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882249', 'tblTempUsageDetail_20' ) start [2025-04-11 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882249', 'tblTempUsageDetail_20' ) end [2025-04-11 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:01:22] Production.INFO: ==10063== Releasing lock... [2025-04-11 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:02:06 [end_date_ymd] => 2025-04-11 06:02:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:02:06' and `end` < '2025-04-11 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-04-11 06:02:19] Production.INFO: count ==46 [2025-04-11 06:02:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:02:06 - End Time 2025-04-11 06:02:06 [2025-04-11 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882254', 'tblTempUsageDetail_20' ) start [2025-04-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882254', 'tblTempUsageDetail_20' ) end [2025-04-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882254', 'tblTempVendorCDR_20' ) start [2025-04-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882254', 'tblTempVendorCDR_20' ) end [2025-04-11 06:02:19] Production.INFO: ProcessCDR(1,14882254,1,1,2) [2025-04-11 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882254', 'tblTempUsageDetail_20' ) start [2025-04-11 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882254', 'tblTempUsageDetail_20' ) end [2025-04-11 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:02:22] Production.INFO: ==10139== Releasing lock... [2025-04-11 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:03:05 [end_date_ymd] => 2025-04-11 06:03:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:03:05' and `end` < '2025-04-11 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-04-11 06:03:18] Production.INFO: count ==46 [2025-04-11 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:03:05 - End Time 2025-04-11 06:03:05 [2025-04-11 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882259', 'tblTempUsageDetail_20' ) start [2025-04-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882259', 'tblTempUsageDetail_20' ) end [2025-04-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882259', 'tblTempVendorCDR_20' ) start [2025-04-11 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882259', 'tblTempVendorCDR_20' ) end [2025-04-11 06:03:18] Production.INFO: ProcessCDR(1,14882259,1,1,2) [2025-04-11 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882259', 'tblTempUsageDetail_20' ) start [2025-04-11 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882259', 'tblTempUsageDetail_20' ) end [2025-04-11 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:03:21] Production.INFO: ==10212== Releasing lock... [2025-04-11 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:03:21] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:04:06 [end_date_ymd] => 2025-04-11 06:04:06 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:04:06' and `end` < '2025-04-11 06: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-04-11 06:04:18] Production.INFO: count ==46 [2025-04-11 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:04:06 - End Time 2025-04-11 06:04:06 [2025-04-11 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882264', 'tblTempUsageDetail_20' ) start [2025-04-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882264', 'tblTempUsageDetail_20' ) end [2025-04-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882264', 'tblTempVendorCDR_20' ) start [2025-04-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882264', 'tblTempVendorCDR_20' ) end [2025-04-11 06:04:18] Production.INFO: ProcessCDR(1,14882264,1,1,2) [2025-04-11 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882264', 'tblTempUsageDetail_20' ) start [2025-04-11 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882264', 'tblTempUsageDetail_20' ) end [2025-04-11 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:04:22] Production.INFO: ==10286== Releasing lock... [2025-04-11 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:04:22] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:05:05 [end_date_ymd] => 2025-04-11 06:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:05:05' and `end` < '2025-04-11 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-04-11 06:05:18] Production.INFO: count ==46 [2025-04-11 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:05:05 - End Time 2025-04-11 06:05:05 [2025-04-11 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882269', 'tblTempUsageDetail_20' ) start [2025-04-11 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882269', 'tblTempUsageDetail_20' ) end [2025-04-11 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882269', 'tblTempVendorCDR_20' ) start [2025-04-11 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882269', 'tblTempVendorCDR_20' ) end [2025-04-11 06:05:18] Production.INFO: ProcessCDR(1,14882269,1,1,2) [2025-04-11 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882269', 'tblTempUsageDetail_20' ) start [2025-04-11 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882269', 'tblTempUsageDetail_20' ) end [2025-04-11 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:05:21] Production.INFO: ==10361== Releasing lock... [2025-04-11 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:06:06 [end_date_ymd] => 2025-04-11 06:06:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:06:06' and `end` < '2025-04-11 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-04-11 06:06:19] Production.INFO: count ==46 [2025-04-11 06:06:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:06:06 - End Time 2025-04-11 06:06:06 [2025-04-11 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882274', 'tblTempUsageDetail_20' ) start [2025-04-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882274', 'tblTempUsageDetail_20' ) end [2025-04-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882274', 'tblTempVendorCDR_20' ) start [2025-04-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882274', 'tblTempVendorCDR_20' ) end [2025-04-11 06:06:19] Production.INFO: ProcessCDR(1,14882274,1,1,2) [2025-04-11 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882274', 'tblTempUsageDetail_20' ) start [2025-04-11 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882274', 'tblTempUsageDetail_20' ) end [2025-04-11 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:06:22] Production.INFO: ==10479== Releasing lock... [2025-04-11 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:07:05 [end_date_ymd] => 2025-04-11 06:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:07:05' and `end` < '2025-04-11 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-04-11 06:07:18] Production.INFO: count ==46 [2025-04-11 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:07:05 - End Time 2025-04-11 06:07:05 [2025-04-11 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882279', 'tblTempUsageDetail_20' ) start [2025-04-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882279', 'tblTempUsageDetail_20' ) end [2025-04-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882279', 'tblTempVendorCDR_20' ) start [2025-04-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882279', 'tblTempVendorCDR_20' ) end [2025-04-11 06:07:18] Production.INFO: ProcessCDR(1,14882279,1,1,2) [2025-04-11 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882279', 'tblTempUsageDetail_20' ) start [2025-04-11 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882279', 'tblTempUsageDetail_20' ) end [2025-04-11 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:07:21] Production.INFO: ==10553== Releasing lock... [2025-04-11 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:08:06 [end_date_ymd] => 2025-04-11 06:08:06 [RateCDR] => 1 ) [2025-04-11 06:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:08:06' and `end` < '2025-04-11 06:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:08:18] Production.INFO: count ==47 [2025-04-11 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:08:06 - End Time 2025-04-11 06:08:06 [2025-04-11 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882284', 'tblTempUsageDetail_20' ) start [2025-04-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882284', 'tblTempUsageDetail_20' ) end [2025-04-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882284', 'tblTempVendorCDR_20' ) start [2025-04-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882284', 'tblTempVendorCDR_20' ) end [2025-04-11 06:08:18] Production.INFO: ProcessCDR(1,14882284,1,1,2) [2025-04-11 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882284', 'tblTempUsageDetail_20' ) start [2025-04-11 06:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882284', 'tblTempUsageDetail_20' ) end [2025-04-11 06:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:08:24] Production.INFO: ==10624== Releasing lock... [2025-04-11 06:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:08:24] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:09:05 [end_date_ymd] => 2025-04-11 06:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:09:05' and `end` < '2025-04-11 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-04-11 06:09:18] Production.INFO: count ==47 [2025-04-11 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:09:05 - End Time 2025-04-11 06:09:05 [2025-04-11 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882289', 'tblTempUsageDetail_20' ) start [2025-04-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882289', 'tblTempUsageDetail_20' ) end [2025-04-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882289', 'tblTempVendorCDR_20' ) start [2025-04-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882289', 'tblTempVendorCDR_20' ) end [2025-04-11 06:09:18] Production.INFO: ProcessCDR(1,14882289,1,1,2) [2025-04-11 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882289', 'tblTempUsageDetail_20' ) start [2025-04-11 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882289', 'tblTempUsageDetail_20' ) end [2025-04-11 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:09:21] Production.INFO: ==10697== Releasing lock... [2025-04-11 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:10:06 [end_date_ymd] => 2025-04-11 06:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:10:06' and `end` < '2025-04-11 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-04-11 06:10:19] Production.INFO: count ==47 [2025-04-11 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:10:06 - End Time 2025-04-11 06:10:06 [2025-04-11 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882294', 'tblTempUsageDetail_20' ) start [2025-04-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882294', 'tblTempUsageDetail_20' ) end [2025-04-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882294', 'tblTempVendorCDR_20' ) start [2025-04-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882294', 'tblTempVendorCDR_20' ) end [2025-04-11 06:10:19] Production.INFO: ProcessCDR(1,14882294,1,1,2) [2025-04-11 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882294', 'tblTempUsageDetail_20' ) start [2025-04-11 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882294', 'tblTempUsageDetail_20' ) end [2025-04-11 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:10:22] Production.INFO: ==10772== Releasing lock... [2025-04-11 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:11:05 [end_date_ymd] => 2025-04-11 06:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:11:05' and `end` < '2025-04-11 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-04-11 06:11:18] Production.INFO: count ==47 [2025-04-11 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:11:05 - End Time 2025-04-11 06:11:05 [2025-04-11 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882300', 'tblTempUsageDetail_20' ) start [2025-04-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882300', 'tblTempUsageDetail_20' ) end [2025-04-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882300', 'tblTempVendorCDR_20' ) start [2025-04-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882300', 'tblTempVendorCDR_20' ) end [2025-04-11 06:11:18] Production.INFO: ProcessCDR(1,14882300,1,1,2) [2025-04-11 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882300', 'tblTempUsageDetail_20' ) start [2025-04-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882300', 'tblTempUsageDetail_20' ) end [2025-04-11 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:11:21] Production.INFO: ==10855== Releasing lock... [2025-04-11 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:12:06 [end_date_ymd] => 2025-04-11 06:12:06 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:12:06' and `end` < '2025-04-11 06: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-04-11 06:12:19] Production.INFO: count ==47 [2025-04-11 06:12:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:12:06 - End Time 2025-04-11 06:12:06 [2025-04-11 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882305', 'tblTempUsageDetail_20' ) start [2025-04-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882305', 'tblTempUsageDetail_20' ) end [2025-04-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882305', 'tblTempVendorCDR_20' ) start [2025-04-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882305', 'tblTempVendorCDR_20' ) end [2025-04-11 06:12:19] Production.INFO: ProcessCDR(1,14882305,1,1,2) [2025-04-11 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882305', 'tblTempUsageDetail_20' ) start [2025-04-11 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882305', 'tblTempUsageDetail_20' ) end [2025-04-11 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:12:22] Production.INFO: ==10929== Releasing lock... [2025-04-11 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:13:05 [end_date_ymd] => 2025-04-11 06:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:13:05' and `end` < '2025-04-11 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-04-11 06:13:18] Production.INFO: count ==47 [2025-04-11 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:13:05 - End Time 2025-04-11 06:13:05 [2025-04-11 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882310', 'tblTempUsageDetail_20' ) start [2025-04-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882310', 'tblTempUsageDetail_20' ) end [2025-04-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882310', 'tblTempVendorCDR_20' ) start [2025-04-11 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882310', 'tblTempVendorCDR_20' ) end [2025-04-11 06:13:18] Production.INFO: ProcessCDR(1,14882310,1,1,2) [2025-04-11 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882310', 'tblTempUsageDetail_20' ) start [2025-04-11 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882310', 'tblTempUsageDetail_20' ) end [2025-04-11 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:13:21] Production.INFO: ==11002== Releasing lock... [2025-04-11 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:14:06 [end_date_ymd] => 2025-04-11 06:14:06 [RateCDR] => 1 ) [2025-04-11 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:14:06' and `end` < '2025-04-11 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:14:18] Production.INFO: count ==49 [2025-04-11 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:14:06 - End Time 2025-04-11 06:14:06 [2025-04-11 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882315', 'tblTempUsageDetail_20' ) start [2025-04-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882315', 'tblTempUsageDetail_20' ) end [2025-04-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882315', 'tblTempVendorCDR_20' ) start [2025-04-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882315', 'tblTempVendorCDR_20' ) end [2025-04-11 06:14:18] Production.INFO: ProcessCDR(1,14882315,1,1,2) [2025-04-11 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882315', 'tblTempUsageDetail_20' ) start [2025-04-11 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882315', 'tblTempUsageDetail_20' ) end [2025-04-11 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:14:22] Production.INFO: ==11074== Releasing lock... [2025-04-11 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-04-11 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:15:05 [end_date_ymd] => 2025-04-11 06:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:15:05' and `end` < '2025-04-11 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-04-11 06:15:18] Production.INFO: count ==51 [2025-04-11 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:15:05 - End Time 2025-04-11 06:15:05 [2025-04-11 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882320', 'tblTempUsageDetail_20' ) start [2025-04-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882320', 'tblTempUsageDetail_20' ) end [2025-04-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882320', 'tblTempVendorCDR_20' ) start [2025-04-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882320', 'tblTempVendorCDR_20' ) end [2025-04-11 06:15:18] Production.INFO: ProcessCDR(1,14882320,1,1,2) [2025-04-11 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882320', 'tblTempUsageDetail_20' ) start [2025-04-11 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882320', 'tblTempUsageDetail_20' ) end [2025-04-11 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:15:22] Production.INFO: ==11161== Releasing lock... [2025-04-11 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:16:05 [end_date_ymd] => 2025-04-11 06:16:05 [RateCDR] => 1 ) [2025-04-11 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:16:05' and `end` < '2025-04-11 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:16:18] Production.INFO: count ==51 [2025-04-11 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:16:05 - End Time 2025-04-11 06:16:05 [2025-04-11 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882325', 'tblTempUsageDetail_20' ) start [2025-04-11 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882325', 'tblTempUsageDetail_20' ) end [2025-04-11 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882325', 'tblTempVendorCDR_20' ) start [2025-04-11 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882325', 'tblTempVendorCDR_20' ) end [2025-04-11 06:16:18] Production.INFO: ProcessCDR(1,14882325,1,1,2) [2025-04-11 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882325', 'tblTempUsageDetail_20' ) start [2025-04-11 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882325', 'tblTempUsageDetail_20' ) end [2025-04-11 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:16:22] Production.INFO: ==11236== Releasing lock... [2025-04-11 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:17:05 [end_date_ymd] => 2025-04-11 06:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:17:05' and `end` < '2025-04-11 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-04-11 06:17:18] Production.INFO: count ==51 [2025-04-11 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:17:05 - End Time 2025-04-11 06:17:05 [2025-04-11 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882330', 'tblTempUsageDetail_20' ) start [2025-04-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882330', 'tblTempUsageDetail_20' ) end [2025-04-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882330', 'tblTempVendorCDR_20' ) start [2025-04-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882330', 'tblTempVendorCDR_20' ) end [2025-04-11 06:17:18] Production.INFO: ProcessCDR(1,14882330,1,1,2) [2025-04-11 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882330', 'tblTempUsageDetail_20' ) start [2025-04-11 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882330', 'tblTempUsageDetail_20' ) end [2025-04-11 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:17:22] Production.INFO: ==11309== Releasing lock... [2025-04-11 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:18:05 [end_date_ymd] => 2025-04-11 06:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:18:05' and `end` < '2025-04-11 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-04-11 06:18:18] Production.INFO: count ==51 [2025-04-11 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:18:05 - End Time 2025-04-11 06:18:05 [2025-04-11 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882335', 'tblTempUsageDetail_20' ) start [2025-04-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882335', 'tblTempUsageDetail_20' ) end [2025-04-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882335', 'tblTempVendorCDR_20' ) start [2025-04-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882335', 'tblTempVendorCDR_20' ) end [2025-04-11 06:18:18] Production.INFO: ProcessCDR(1,14882335,1,1,2) [2025-04-11 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882335', 'tblTempUsageDetail_20' ) start [2025-04-11 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882335', 'tblTempUsageDetail_20' ) end [2025-04-11 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:18:22] Production.INFO: ==11383== Releasing lock... [2025-04-11 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:19:05 [end_date_ymd] => 2025-04-11 06:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:19:05' and `end` < '2025-04-11 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-04-11 06:19:18] Production.INFO: count ==51 [2025-04-11 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:19:05 - End Time 2025-04-11 06:19:05 [2025-04-11 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882340', 'tblTempUsageDetail_20' ) start [2025-04-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882340', 'tblTempUsageDetail_20' ) end [2025-04-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882340', 'tblTempVendorCDR_20' ) start [2025-04-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882340', 'tblTempVendorCDR_20' ) end [2025-04-11 06:19:18] Production.INFO: ProcessCDR(1,14882340,1,1,2) [2025-04-11 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882340', 'tblTempUsageDetail_20' ) start [2025-04-11 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882340', 'tblTempUsageDetail_20' ) end [2025-04-11 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:19:21] Production.INFO: ==11453== Releasing lock... [2025-04-11 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:20:05 [end_date_ymd] => 2025-04-11 06:20:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:20:05' and `end` < '2025-04-11 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-04-11 06:20:18] Production.INFO: count ==53 [2025-04-11 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:20:05 - End Time 2025-04-11 06:20:05 [2025-04-11 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882345', 'tblTempUsageDetail_20' ) start [2025-04-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882345', 'tblTempUsageDetail_20' ) end [2025-04-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882345', 'tblTempVendorCDR_20' ) start [2025-04-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882345', 'tblTempVendorCDR_20' ) end [2025-04-11 06:20:18] Production.INFO: ProcessCDR(1,14882345,1,1,2) [2025-04-11 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882345', 'tblTempUsageDetail_20' ) start [2025-04-11 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882345', 'tblTempUsageDetail_20' ) end [2025-04-11 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:20:21] Production.INFO: ==11529== Releasing lock... [2025-04-11 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:21:04 [end_date_ymd] => 2025-04-11 06:21:04 [RateCDR] => 1 ) [2025-04-11 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:21:04' and `end` < '2025-04-11 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:21:17] Production.INFO: count ==55 [2025-04-11 06:21:17] Production.ERROR: pbx CDR StartTime 2025-04-11 03:21:04 - End Time 2025-04-11 06:21:04 [2025-04-11 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882351', 'tblTempUsageDetail_20' ) start [2025-04-11 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882351', 'tblTempUsageDetail_20' ) end [2025-04-11 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882351', 'tblTempVendorCDR_20' ) start [2025-04-11 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882351', 'tblTempVendorCDR_20' ) end [2025-04-11 06:21:17] Production.INFO: ProcessCDR(1,14882351,1,1,2) [2025-04-11 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882351', 'tblTempUsageDetail_20' ) start [2025-04-11 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882351', 'tblTempUsageDetail_20' ) end [2025-04-11 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:21:21] Production.INFO: ==11656== Releasing lock... [2025-04-11 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:22:06 [end_date_ymd] => 2025-04-11 06:22:06 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:22:06' and `end` < '2025-04-11 06: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-04-11 06:22:19] Production.INFO: count ==55 [2025-04-11 06:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:22:06 - End Time 2025-04-11 06:22:06 [2025-04-11 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882356', 'tblTempUsageDetail_20' ) start [2025-04-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882356', 'tblTempUsageDetail_20' ) end [2025-04-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882356', 'tblTempVendorCDR_20' ) start [2025-04-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882356', 'tblTempVendorCDR_20' ) end [2025-04-11 06:22:19] Production.INFO: ProcessCDR(1,14882356,1,1,2) [2025-04-11 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882356', 'tblTempUsageDetail_20' ) start [2025-04-11 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882356', 'tblTempUsageDetail_20' ) end [2025-04-11 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:22:22] Production.INFO: ==11753== Releasing lock... [2025-04-11 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:23:04 [end_date_ymd] => 2025-04-11 06:23:04 [RateCDR] => 1 ) [2025-04-11 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:23:04' and `end` < '2025-04-11 06:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:23:17] Production.INFO: count ==55 [2025-04-11 06:23:17] Production.ERROR: pbx CDR StartTime 2025-04-11 03:23:04 - End Time 2025-04-11 06:23:04 [2025-04-11 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882361', 'tblTempUsageDetail_20' ) start [2025-04-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882361', 'tblTempUsageDetail_20' ) end [2025-04-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882361', 'tblTempVendorCDR_20' ) start [2025-04-11 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882361', 'tblTempVendorCDR_20' ) end [2025-04-11 06:23:17] Production.INFO: ProcessCDR(1,14882361,1,1,2) [2025-04-11 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882361', 'tblTempUsageDetail_20' ) start [2025-04-11 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882361', 'tblTempUsageDetail_20' ) end [2025-04-11 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:23:21] Production.INFO: ==11837== Releasing lock... [2025-04-11 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:24:05 [end_date_ymd] => 2025-04-11 06:24:05 [RateCDR] => 1 ) [2025-04-11 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:24:05' and `end` < '2025-04-11 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:24:18] Production.INFO: count ==55 [2025-04-11 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:24:05 - End Time 2025-04-11 06:24:05 [2025-04-11 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882366', 'tblTempUsageDetail_20' ) start [2025-04-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882366', 'tblTempUsageDetail_20' ) end [2025-04-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882366', 'tblTempVendorCDR_20' ) start [2025-04-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882366', 'tblTempVendorCDR_20' ) end [2025-04-11 06:24:18] Production.INFO: ProcessCDR(1,14882366,1,1,2) [2025-04-11 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882366', 'tblTempUsageDetail_20' ) start [2025-04-11 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882366', 'tblTempUsageDetail_20' ) end [2025-04-11 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:24:22] Production.INFO: ==11912== Releasing lock... [2025-04-11 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:25:05 [end_date_ymd] => 2025-04-11 06:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:25:05' and `end` < '2025-04-11 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-04-11 06:25:18] Production.INFO: count ==55 [2025-04-11 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:25:05 - End Time 2025-04-11 06:25:05 [2025-04-11 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882371', 'tblTempUsageDetail_20' ) start [2025-04-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882371', 'tblTempUsageDetail_20' ) end [2025-04-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882371', 'tblTempVendorCDR_20' ) start [2025-04-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882371', 'tblTempVendorCDR_20' ) end [2025-04-11 06:25:18] Production.INFO: ProcessCDR(1,14882371,1,1,2) [2025-04-11 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882371', 'tblTempUsageDetail_20' ) start [2025-04-11 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882371', 'tblTempUsageDetail_20' ) end [2025-04-11 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:25:22] Production.INFO: ==11989== Releasing lock... [2025-04-11 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:25:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:26:05 [end_date_ymd] => 2025-04-11 06:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:26:05' and `end` < '2025-04-11 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-04-11 06:26:18] Production.INFO: count ==55 [2025-04-11 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:26:05 - End Time 2025-04-11 06:26:05 [2025-04-11 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882376', 'tblTempUsageDetail_20' ) start [2025-04-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882376', 'tblTempUsageDetail_20' ) end [2025-04-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882376', 'tblTempVendorCDR_20' ) start [2025-04-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882376', 'tblTempVendorCDR_20' ) end [2025-04-11 06:26:18] Production.INFO: ProcessCDR(1,14882376,1,1,2) [2025-04-11 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882376', 'tblTempUsageDetail_20' ) start [2025-04-11 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882376', 'tblTempUsageDetail_20' ) end [2025-04-11 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:26:22] Production.INFO: ==12065== Releasing lock... [2025-04-11 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:27:05 [end_date_ymd] => 2025-04-11 06:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:27:05' and `end` < '2025-04-11 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-04-11 06:27:18] Production.INFO: count ==55 [2025-04-11 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:27:05 - End Time 2025-04-11 06:27:05 [2025-04-11 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882381', 'tblTempUsageDetail_20' ) start [2025-04-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882381', 'tblTempUsageDetail_20' ) end [2025-04-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882381', 'tblTempVendorCDR_20' ) start [2025-04-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882381', 'tblTempVendorCDR_20' ) end [2025-04-11 06:27:18] Production.INFO: ProcessCDR(1,14882381,1,1,2) [2025-04-11 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882381', 'tblTempUsageDetail_20' ) start [2025-04-11 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882381', 'tblTempUsageDetail_20' ) end [2025-04-11 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:27:21] Production.INFO: ==12138== Releasing lock... [2025-04-11 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:28:06 [end_date_ymd] => 2025-04-11 06:28:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:28:06' and `end` < '2025-04-11 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-04-11 06:28:18] Production.INFO: count ==55 [2025-04-11 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:28:06 - End Time 2025-04-11 06:28:06 [2025-04-11 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882386', 'tblTempUsageDetail_20' ) start [2025-04-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882386', 'tblTempUsageDetail_20' ) end [2025-04-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882386', 'tblTempVendorCDR_20' ) start [2025-04-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882386', 'tblTempVendorCDR_20' ) end [2025-04-11 06:28:18] Production.INFO: ProcessCDR(1,14882386,1,1,2) [2025-04-11 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882386', 'tblTempUsageDetail_20' ) start [2025-04-11 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882386', 'tblTempUsageDetail_20' ) end [2025-04-11 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:28:22] Production.INFO: ==12215== Releasing lock... [2025-04-11 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:29:05 [end_date_ymd] => 2025-04-11 06:29:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:29:05' and `end` < '2025-04-11 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-04-11 06:29:18] Production.INFO: count ==55 [2025-04-11 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:29:05 - End Time 2025-04-11 06:29:05 [2025-04-11 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882391', 'tblTempUsageDetail_20' ) start [2025-04-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882391', 'tblTempUsageDetail_20' ) end [2025-04-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882391', 'tblTempVendorCDR_20' ) start [2025-04-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882391', 'tblTempVendorCDR_20' ) end [2025-04-11 06:29:18] Production.INFO: ProcessCDR(1,14882391,1,1,2) [2025-04-11 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882391', 'tblTempUsageDetail_20' ) start [2025-04-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882391', 'tblTempUsageDetail_20' ) end [2025-04-11 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:29:21] Production.INFO: ==12290== Releasing lock... [2025-04-11 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:30:06 [end_date_ymd] => 2025-04-11 06:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:30:06' and `end` < '2025-04-11 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-04-11 06:30:19] Production.INFO: count ==57 [2025-04-11 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:30:06 - End Time 2025-04-11 06:30:06 [2025-04-11 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882397', 'tblTempUsageDetail_20' ) start [2025-04-11 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882397', 'tblTempUsageDetail_20' ) end [2025-04-11 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882397', 'tblTempVendorCDR_20' ) start [2025-04-11 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882397', 'tblTempVendorCDR_20' ) end [2025-04-11 06:30:19] Production.INFO: ProcessCDR(1,14882397,1,1,2) [2025-04-11 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882397', 'tblTempUsageDetail_20' ) start [2025-04-11 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882397', 'tblTempUsageDetail_20' ) end [2025-04-11 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:30:22] Production.INFO: ==12374== Releasing lock... [2025-04-11 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:31:06 [end_date_ymd] => 2025-04-11 06:31:06 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:31:06' and `end` < '2025-04-11 06: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-04-11 06:31:19] Production.INFO: count ==57 [2025-04-11 06:31:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:31:06 - End Time 2025-04-11 06:31:06 [2025-04-11 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882402', 'tblTempUsageDetail_20' ) start [2025-04-11 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882402', 'tblTempUsageDetail_20' ) end [2025-04-11 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882402', 'tblTempVendorCDR_20' ) start [2025-04-11 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882402', 'tblTempVendorCDR_20' ) end [2025-04-11 06:31:19] Production.INFO: ProcessCDR(1,14882402,1,1,2) [2025-04-11 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882402', 'tblTempUsageDetail_20' ) start [2025-04-11 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882402', 'tblTempUsageDetail_20' ) end [2025-04-11 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:31:22] Production.INFO: ==12455== Releasing lock... [2025-04-11 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:32:05 [end_date_ymd] => 2025-04-11 06:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:32:05' and `end` < '2025-04-11 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-04-11 06:32:18] Production.INFO: count ==57 [2025-04-11 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:32:05 - End Time 2025-04-11 06:32:05 [2025-04-11 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882407', 'tblTempUsageDetail_20' ) start [2025-04-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882407', 'tblTempUsageDetail_20' ) end [2025-04-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882407', 'tblTempVendorCDR_20' ) start [2025-04-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882407', 'tblTempVendorCDR_20' ) end [2025-04-11 06:32:18] Production.INFO: ProcessCDR(1,14882407,1,1,2) [2025-04-11 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882407', 'tblTempUsageDetail_20' ) start [2025-04-11 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882407', 'tblTempUsageDetail_20' ) end [2025-04-11 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:32:22] Production.INFO: ==12534== Releasing lock... [2025-04-11 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:33:05 [end_date_ymd] => 2025-04-11 06:33:05 [RateCDR] => 1 ) [2025-04-11 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:33:05' and `end` < '2025-04-11 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:33:18] Production.INFO: count ==57 [2025-04-11 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:33:05 - End Time 2025-04-11 06:33:05 [2025-04-11 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882412', 'tblTempUsageDetail_20' ) start [2025-04-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882412', 'tblTempUsageDetail_20' ) end [2025-04-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882412', 'tblTempVendorCDR_20' ) start [2025-04-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882412', 'tblTempVendorCDR_20' ) end [2025-04-11 06:33:18] Production.INFO: ProcessCDR(1,14882412,1,1,2) [2025-04-11 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882412', 'tblTempUsageDetail_20' ) start [2025-04-11 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882412', 'tblTempUsageDetail_20' ) end [2025-04-11 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:33:21] Production.INFO: ==12615== Releasing lock... [2025-04-11 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:34:05 [end_date_ymd] => 2025-04-11 06:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:34:05' and `end` < '2025-04-11 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-04-11 06:34:18] Production.INFO: count ==57 [2025-04-11 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:34:05 - End Time 2025-04-11 06:34:05 [2025-04-11 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882417', 'tblTempUsageDetail_20' ) start [2025-04-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882417', 'tblTempUsageDetail_20' ) end [2025-04-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882417', 'tblTempVendorCDR_20' ) start [2025-04-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882417', 'tblTempVendorCDR_20' ) end [2025-04-11 06:34:18] Production.INFO: ProcessCDR(1,14882417,1,1,2) [2025-04-11 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882417', 'tblTempUsageDetail_20' ) start [2025-04-11 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882417', 'tblTempUsageDetail_20' ) end [2025-04-11 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:34:21] Production.INFO: ==12697== Releasing lock... [2025-04-11 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:35:05 [end_date_ymd] => 2025-04-11 06:35:05 [RateCDR] => 1 ) [2025-04-11 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:35:05' and `end` < '2025-04-11 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:35:18] Production.INFO: count ==57 [2025-04-11 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:35:05 - End Time 2025-04-11 06:35:05 [2025-04-11 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882422', 'tblTempUsageDetail_20' ) start [2025-04-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882422', 'tblTempUsageDetail_20' ) end [2025-04-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882422', 'tblTempVendorCDR_20' ) start [2025-04-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882422', 'tblTempVendorCDR_20' ) end [2025-04-11 06:35:18] Production.INFO: ProcessCDR(1,14882422,1,1,2) [2025-04-11 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882422', 'tblTempUsageDetail_20' ) start [2025-04-11 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882422', 'tblTempUsageDetail_20' ) end [2025-04-11 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:35:22] Production.INFO: ==12779== Releasing lock... [2025-04-11 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:36:05 [end_date_ymd] => 2025-04-11 06:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:36:05' and `end` < '2025-04-11 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-04-11 06:36:18] Production.INFO: count ==57 [2025-04-11 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:36:05 - End Time 2025-04-11 06:36:05 [2025-04-11 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882427', 'tblTempUsageDetail_20' ) start [2025-04-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882427', 'tblTempUsageDetail_20' ) end [2025-04-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882427', 'tblTempVendorCDR_20' ) start [2025-04-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882427', 'tblTempVendorCDR_20' ) end [2025-04-11 06:36:18] Production.INFO: ProcessCDR(1,14882427,1,1,2) [2025-04-11 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882427', 'tblTempUsageDetail_20' ) start [2025-04-11 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882427', 'tblTempUsageDetail_20' ) end [2025-04-11 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:36:21] Production.INFO: ==12860== Releasing lock... [2025-04-11 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:37:05 [end_date_ymd] => 2025-04-11 06:37:05 [RateCDR] => 1 ) [2025-04-11 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:37:05' and `end` < '2025-04-11 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:37:18] Production.INFO: count ==57 [2025-04-11 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:37:05 - End Time 2025-04-11 06:37:05 [2025-04-11 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882432', 'tblTempUsageDetail_20' ) start [2025-04-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882432', 'tblTempUsageDetail_20' ) end [2025-04-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882432', 'tblTempVendorCDR_20' ) start [2025-04-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882432', 'tblTempVendorCDR_20' ) end [2025-04-11 06:37:18] Production.INFO: ProcessCDR(1,14882432,1,1,2) [2025-04-11 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882432', 'tblTempUsageDetail_20' ) start [2025-04-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882432', 'tblTempUsageDetail_20' ) end [2025-04-11 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:37:21] Production.INFO: ==12978== Releasing lock... [2025-04-11 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:38:05 [end_date_ymd] => 2025-04-11 06:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:38:05' and `end` < '2025-04-11 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-04-11 06:38:18] Production.INFO: count ==57 [2025-04-11 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:38:05 - End Time 2025-04-11 06:38:05 [2025-04-11 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882437', 'tblTempUsageDetail_20' ) start [2025-04-11 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882437', 'tblTempUsageDetail_20' ) end [2025-04-11 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882437', 'tblTempVendorCDR_20' ) start [2025-04-11 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882437', 'tblTempVendorCDR_20' ) end [2025-04-11 06:38:18] Production.INFO: ProcessCDR(1,14882437,1,1,2) [2025-04-11 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882437', 'tblTempUsageDetail_20' ) start [2025-04-11 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882437', 'tblTempUsageDetail_20' ) end [2025-04-11 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:38:21] Production.INFO: ==13065== Releasing lock... [2025-04-11 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:39:06 [end_date_ymd] => 2025-04-11 06:39:06 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:39:06' and `end` < '2025-04-11 06: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-04-11 06:39:18] Production.INFO: count ==57 [2025-04-11 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:39:06 - End Time 2025-04-11 06:39:06 [2025-04-11 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882442', 'tblTempUsageDetail_20' ) start [2025-04-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882442', 'tblTempUsageDetail_20' ) end [2025-04-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882442', 'tblTempVendorCDR_20' ) start [2025-04-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882442', 'tblTempVendorCDR_20' ) end [2025-04-11 06:39:18] Production.INFO: ProcessCDR(1,14882442,1,1,2) [2025-04-11 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882442', 'tblTempUsageDetail_20' ) start [2025-04-11 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882442', 'tblTempUsageDetail_20' ) end [2025-04-11 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:39:22] Production.INFO: ==13150== Releasing lock... [2025-04-11 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:40:05 [end_date_ymd] => 2025-04-11 06:40:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:40:05' and `end` < '2025-04-11 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-04-11 06:40:18] Production.INFO: count ==57 [2025-04-11 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:40:05 - End Time 2025-04-11 06:40:05 [2025-04-11 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882447', 'tblTempUsageDetail_20' ) start [2025-04-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882447', 'tblTempUsageDetail_20' ) end [2025-04-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882447', 'tblTempVendorCDR_20' ) start [2025-04-11 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882447', 'tblTempVendorCDR_20' ) end [2025-04-11 06:40:18] Production.INFO: ProcessCDR(1,14882447,1,1,2) [2025-04-11 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882447', 'tblTempUsageDetail_20' ) start [2025-04-11 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882447', 'tblTempUsageDetail_20' ) end [2025-04-11 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:40:21] Production.INFO: ==13226== Releasing lock... [2025-04-11 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:41:05 [end_date_ymd] => 2025-04-11 06:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:41:05' and `end` < '2025-04-11 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-04-11 06:41:18] Production.INFO: count ==57 [2025-04-11 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:41:05 - End Time 2025-04-11 06:41:05 [2025-04-11 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882453', 'tblTempUsageDetail_20' ) start [2025-04-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882453', 'tblTempUsageDetail_20' ) end [2025-04-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882453', 'tblTempVendorCDR_20' ) start [2025-04-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882453', 'tblTempVendorCDR_20' ) end [2025-04-11 06:41:18] Production.INFO: ProcessCDR(1,14882453,1,1,2) [2025-04-11 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882453', 'tblTempUsageDetail_20' ) start [2025-04-11 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882453', 'tblTempUsageDetail_20' ) end [2025-04-11 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:41:21] Production.INFO: ==13310== Releasing lock... [2025-04-11 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:42:06 [end_date_ymd] => 2025-04-11 06:42:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:42:06' and `end` < '2025-04-11 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-04-11 06:42:18] Production.INFO: count ==57 [2025-04-11 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:42:06 - End Time 2025-04-11 06:42:06 [2025-04-11 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882458', 'tblTempUsageDetail_20' ) start [2025-04-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882458', 'tblTempUsageDetail_20' ) end [2025-04-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882458', 'tblTempVendorCDR_20' ) start [2025-04-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882458', 'tblTempVendorCDR_20' ) end [2025-04-11 06:42:18] Production.INFO: ProcessCDR(1,14882458,1,1,2) [2025-04-11 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882458', 'tblTempUsageDetail_20' ) start [2025-04-11 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882458', 'tblTempUsageDetail_20' ) end [2025-04-11 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:42:22] Production.INFO: ==13388== Releasing lock... [2025-04-11 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:43:05 [end_date_ymd] => 2025-04-11 06:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:43:05' and `end` < '2025-04-11 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-04-11 06:43:18] Production.INFO: count ==57 [2025-04-11 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:43:05 - End Time 2025-04-11 06:43:05 [2025-04-11 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882463', 'tblTempUsageDetail_20' ) start [2025-04-11 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882463', 'tblTempUsageDetail_20' ) end [2025-04-11 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882463', 'tblTempVendorCDR_20' ) start [2025-04-11 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882463', 'tblTempVendorCDR_20' ) end [2025-04-11 06:43:18] Production.INFO: ProcessCDR(1,14882463,1,1,2) [2025-04-11 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882463', 'tblTempUsageDetail_20' ) start [2025-04-11 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882463', 'tblTempUsageDetail_20' ) end [2025-04-11 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:43:21] Production.INFO: ==13464== Releasing lock... [2025-04-11 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:44:05 [end_date_ymd] => 2025-04-11 06:44:05 [RateCDR] => 1 ) [2025-04-11 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:44:05' and `end` < '2025-04-11 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:44:18] Production.INFO: count ==57 [2025-04-11 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:44:05 - End Time 2025-04-11 06:44:05 [2025-04-11 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882468', 'tblTempUsageDetail_20' ) start [2025-04-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882468', 'tblTempUsageDetail_20' ) end [2025-04-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882468', 'tblTempVendorCDR_20' ) start [2025-04-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882468', 'tblTempVendorCDR_20' ) end [2025-04-11 06:44:18] Production.INFO: ProcessCDR(1,14882468,1,1,2) [2025-04-11 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882468', 'tblTempUsageDetail_20' ) start [2025-04-11 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882468', 'tblTempUsageDetail_20' ) end [2025-04-11 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:44:22] Production.INFO: ==13552== Releasing lock... [2025-04-11 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:45:05 [end_date_ymd] => 2025-04-11 06:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:45:05' and `end` < '2025-04-11 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-04-11 06:45:17] Production.INFO: count ==57 [2025-04-11 06:45:17] Production.ERROR: pbx CDR StartTime 2025-04-11 03:45:05 - End Time 2025-04-11 06:45:05 [2025-04-11 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882473', 'tblTempUsageDetail_20' ) start [2025-04-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882473', 'tblTempUsageDetail_20' ) end [2025-04-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882473', 'tblTempVendorCDR_20' ) start [2025-04-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882473', 'tblTempVendorCDR_20' ) end [2025-04-11 06:45:17] Production.INFO: ProcessCDR(1,14882473,1,1,2) [2025-04-11 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882473', 'tblTempUsageDetail_20' ) start [2025-04-11 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882473', 'tblTempUsageDetail_20' ) end [2025-04-11 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:45:21] Production.INFO: ==13626== Releasing lock... [2025-04-11 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:46:05 [end_date_ymd] => 2025-04-11 06:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:46:05' and `end` < '2025-04-11 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-04-11 06:46:18] Production.INFO: count ==57 [2025-04-11 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:46:05 - End Time 2025-04-11 06:46:05 [2025-04-11 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882478', 'tblTempUsageDetail_20' ) start [2025-04-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882478', 'tblTempUsageDetail_20' ) end [2025-04-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882478', 'tblTempVendorCDR_20' ) start [2025-04-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882478', 'tblTempVendorCDR_20' ) end [2025-04-11 06:46:18] Production.INFO: ProcessCDR(1,14882478,1,1,2) [2025-04-11 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882478', 'tblTempUsageDetail_20' ) start [2025-04-11 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882478', 'tblTempUsageDetail_20' ) end [2025-04-11 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:46:21] Production.INFO: ==13707== Releasing lock... [2025-04-11 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:47:05 [end_date_ymd] => 2025-04-11 06:47:05 [RateCDR] => 1 ) [2025-04-11 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:47:05' and `end` < '2025-04-11 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:47:18] Production.INFO: count ==57 [2025-04-11 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:47:05 - End Time 2025-04-11 06:47:05 [2025-04-11 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882483', 'tblTempUsageDetail_20' ) start [2025-04-11 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882483', 'tblTempUsageDetail_20' ) end [2025-04-11 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882483', 'tblTempVendorCDR_20' ) start [2025-04-11 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882483', 'tblTempVendorCDR_20' ) end [2025-04-11 06:47:18] Production.INFO: ProcessCDR(1,14882483,1,1,2) [2025-04-11 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882483', 'tblTempUsageDetail_20' ) start [2025-04-11 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882483', 'tblTempUsageDetail_20' ) end [2025-04-11 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:47:21] Production.INFO: ==13780== Releasing lock... [2025-04-11 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:48:05 [end_date_ymd] => 2025-04-11 06:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:48:05' and `end` < '2025-04-11 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-04-11 06:48:18] Production.INFO: count ==57 [2025-04-11 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:48:05 - End Time 2025-04-11 06:48:05 [2025-04-11 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882488', 'tblTempUsageDetail_20' ) start [2025-04-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882488', 'tblTempUsageDetail_20' ) end [2025-04-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882488', 'tblTempVendorCDR_20' ) start [2025-04-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882488', 'tblTempVendorCDR_20' ) end [2025-04-11 06:48:18] Production.INFO: ProcessCDR(1,14882488,1,1,2) [2025-04-11 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882488', 'tblTempUsageDetail_20' ) start [2025-04-11 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882488', 'tblTempUsageDetail_20' ) end [2025-04-11 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:48:21] Production.INFO: ==13870== Releasing lock... [2025-04-11 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:49:04 [end_date_ymd] => 2025-04-11 06:49:04 [RateCDR] => 1 ) [2025-04-11 06:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:49:04' and `end` < '2025-04-11 06:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:49:17] Production.INFO: count ==57 [2025-04-11 06:49:17] Production.ERROR: pbx CDR StartTime 2025-04-11 03:49:04 - End Time 2025-04-11 06:49:04 [2025-04-11 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882493', 'tblTempUsageDetail_20' ) start [2025-04-11 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882493', 'tblTempUsageDetail_20' ) end [2025-04-11 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882493', 'tblTempVendorCDR_20' ) start [2025-04-11 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882493', 'tblTempVendorCDR_20' ) end [2025-04-11 06:49:17] Production.INFO: ProcessCDR(1,14882493,1,1,2) [2025-04-11 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882493', 'tblTempUsageDetail_20' ) start [2025-04-11 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882493', 'tblTempUsageDetail_20' ) end [2025-04-11 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:49:20] Production.INFO: ==13945== Releasing lock... [2025-04-11 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:50:06 [end_date_ymd] => 2025-04-11 06:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:50:06' and `end` < '2025-04-11 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-04-11 06:50:19] Production.INFO: count ==65 [2025-04-11 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 03:50:06 - End Time 2025-04-11 06:50:06 [2025-04-11 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882499', 'tblTempUsageDetail_20' ) start [2025-04-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882499', 'tblTempUsageDetail_20' ) end [2025-04-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882499', 'tblTempVendorCDR_20' ) start [2025-04-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882499', 'tblTempVendorCDR_20' ) end [2025-04-11 06:50:19] Production.INFO: ProcessCDR(1,14882499,1,1,2) [2025-04-11 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882499', 'tblTempUsageDetail_20' ) start [2025-04-11 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882499', 'tblTempUsageDetail_20' ) end [2025-04-11 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:50:22] Production.INFO: ==14030== Releasing lock... [2025-04-11 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:51:05 [end_date_ymd] => 2025-04-11 06:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:51:05' and `end` < '2025-04-11 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-04-11 06:51:18] Production.INFO: count ==66 [2025-04-11 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:51:05 - End Time 2025-04-11 06:51:05 [2025-04-11 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882504', 'tblTempUsageDetail_20' ) start [2025-04-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882504', 'tblTempUsageDetail_20' ) end [2025-04-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882504', 'tblTempVendorCDR_20' ) start [2025-04-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882504', 'tblTempVendorCDR_20' ) end [2025-04-11 06:51:18] Production.INFO: ProcessCDR(1,14882504,1,1,2) [2025-04-11 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882504', 'tblTempUsageDetail_20' ) start [2025-04-11 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882504', 'tblTempUsageDetail_20' ) end [2025-04-11 06:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:51:23] Production.INFO: ==14105== Releasing lock... [2025-04-11 06:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:51:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:52:05 [end_date_ymd] => 2025-04-11 06:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:52:05' and `end` < '2025-04-11 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-04-11 06:52:18] Production.INFO: count ==67 [2025-04-11 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:52:05 - End Time 2025-04-11 06:52:05 [2025-04-11 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882509', 'tblTempUsageDetail_20' ) start [2025-04-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882509', 'tblTempUsageDetail_20' ) end [2025-04-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882509', 'tblTempVendorCDR_20' ) start [2025-04-11 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882509', 'tblTempVendorCDR_20' ) end [2025-04-11 06:52:18] Production.INFO: ProcessCDR(1,14882509,1,1,2) [2025-04-11 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882509', 'tblTempUsageDetail_20' ) start [2025-04-11 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882509', 'tblTempUsageDetail_20' ) end [2025-04-11 06:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:52:23] Production.INFO: ==14231== Releasing lock... [2025-04-11 06:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:52:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:53:06 [end_date_ymd] => 2025-04-11 06:53:06 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:53:06' and `end` < '2025-04-11 06: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-04-11 06:53:18] Production.INFO: count ==68 [2025-04-11 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:53:06 - End Time 2025-04-11 06:53:06 [2025-04-11 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882514', 'tblTempUsageDetail_20' ) start [2025-04-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882514', 'tblTempUsageDetail_20' ) end [2025-04-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882514', 'tblTempVendorCDR_20' ) start [2025-04-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882514', 'tblTempVendorCDR_20' ) end [2025-04-11 06:53:18] Production.INFO: ProcessCDR(1,14882514,1,1,2) [2025-04-11 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882514', 'tblTempUsageDetail_20' ) start [2025-04-11 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882514', 'tblTempUsageDetail_20' ) end [2025-04-11 06:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:53:23] Production.INFO: ==14313== Releasing lock... [2025-04-11 06:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:53:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:54:05 [end_date_ymd] => 2025-04-11 06:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:54:05' and `end` < '2025-04-11 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-04-11 06:54:18] Production.INFO: count ==70 [2025-04-11 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:54:05 - End Time 2025-04-11 06:54:05 [2025-04-11 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882519', 'tblTempUsageDetail_20' ) start [2025-04-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882519', 'tblTempUsageDetail_20' ) end [2025-04-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882519', 'tblTempVendorCDR_20' ) start [2025-04-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882519', 'tblTempVendorCDR_20' ) end [2025-04-11 06:54:18] Production.INFO: ProcessCDR(1,14882519,1,1,2) [2025-04-11 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882519', 'tblTempUsageDetail_20' ) start [2025-04-11 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882519', 'tblTempUsageDetail_20' ) end [2025-04-11 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:54:21] Production.INFO: ==14399== Releasing lock... [2025-04-11 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:55:06 [end_date_ymd] => 2025-04-11 06:55:06 [RateCDR] => 1 ) [2025-04-11 06: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-04-11 03:55:06' and `end` < '2025-04-11 06: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-04-11 06:55:18] Production.INFO: count ==74 [2025-04-11 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:55:06 - End Time 2025-04-11 06:55:06 [2025-04-11 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882524', 'tblTempUsageDetail_20' ) start [2025-04-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882524', 'tblTempUsageDetail_20' ) end [2025-04-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882524', 'tblTempVendorCDR_20' ) start [2025-04-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882524', 'tblTempVendorCDR_20' ) end [2025-04-11 06:55:18] Production.INFO: ProcessCDR(1,14882524,1,1,2) [2025-04-11 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882524', 'tblTempUsageDetail_20' ) start [2025-04-11 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882524', 'tblTempUsageDetail_20' ) end [2025-04-11 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:55:22] Production.INFO: ==14477== Releasing lock... [2025-04-11 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:56:04 [end_date_ymd] => 2025-04-11 06:56:04 [RateCDR] => 1 ) [2025-04-11 06:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:56:04' and `end` < '2025-04-11 06:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:56:17] Production.INFO: count ==76 [2025-04-11 06:56:17] Production.ERROR: pbx CDR StartTime 2025-04-11 03:56:04 - End Time 2025-04-11 06:56:04 [2025-04-11 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882529', 'tblTempUsageDetail_20' ) start [2025-04-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882529', 'tblTempUsageDetail_20' ) end [2025-04-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882529', 'tblTempVendorCDR_20' ) start [2025-04-11 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882529', 'tblTempVendorCDR_20' ) end [2025-04-11 06:56:17] Production.INFO: ProcessCDR(1,14882529,1,1,2) [2025-04-11 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882529', 'tblTempUsageDetail_20' ) start [2025-04-11 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882529', 'tblTempUsageDetail_20' ) end [2025-04-11 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:56:21] Production.INFO: ==14564== Releasing lock... [2025-04-11 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:57:05 [end_date_ymd] => 2025-04-11 06:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:57:05' and `end` < '2025-04-11 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-04-11 06:57:18] Production.INFO: count ==74 [2025-04-11 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:57:05 - End Time 2025-04-11 06:57:05 [2025-04-11 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882534', 'tblTempUsageDetail_20' ) start [2025-04-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882534', 'tblTempUsageDetail_20' ) end [2025-04-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882534', 'tblTempVendorCDR_20' ) start [2025-04-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882534', 'tblTempVendorCDR_20' ) end [2025-04-11 06:57:18] Production.INFO: ProcessCDR(1,14882534,1,1,2) [2025-04-11 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882534', 'tblTempUsageDetail_20' ) start [2025-04-11 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882534', 'tblTempUsageDetail_20' ) end [2025-04-11 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:57:21] Production.INFO: ==14643== Releasing lock... [2025-04-11 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:58:04 [end_date_ymd] => 2025-04-11 06:58:04 [RateCDR] => 1 ) [2025-04-11 06:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 03:58:04' and `end` < '2025-04-11 06:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 06:58:17] Production.INFO: count ==74 [2025-04-11 06:58:17] Production.ERROR: pbx CDR StartTime 2025-04-11 03:58:04 - End Time 2025-04-11 06:58:04 [2025-04-11 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882539', 'tblTempUsageDetail_20' ) start [2025-04-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882539', 'tblTempUsageDetail_20' ) end [2025-04-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882539', 'tblTempVendorCDR_20' ) start [2025-04-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882539', 'tblTempVendorCDR_20' ) end [2025-04-11 06:58:17] Production.INFO: ProcessCDR(1,14882539,1,1,2) [2025-04-11 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882539', 'tblTempUsageDetail_20' ) start [2025-04-11 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882539', 'tblTempUsageDetail_20' ) end [2025-04-11 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:58:20] Production.INFO: ==14721== Releasing lock... [2025-04-11 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:58:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 03:59:05 [end_date_ymd] => 2025-04-11 06:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 03:59:05' and `end` < '2025-04-11 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-04-11 06:59:18] Production.INFO: count ==74 [2025-04-11 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 03:59:05 - End Time 2025-04-11 06:59:05 [2025-04-11 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882544', 'tblTempUsageDetail_20' ) start [2025-04-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882544', 'tblTempUsageDetail_20' ) end [2025-04-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882544', 'tblTempVendorCDR_20' ) start [2025-04-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882544', 'tblTempVendorCDR_20' ) end [2025-04-11 06:59:18] Production.INFO: ProcessCDR(1,14882544,1,1,2) [2025-04-11 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882544', 'tblTempUsageDetail_20' ) start [2025-04-11 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882544', 'tblTempUsageDetail_20' ) end [2025-04-11 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 06:59:22] Production.INFO: ==14797== Releasing lock... [2025-04-11 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 06:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:00:05 [end_date_ymd] => 2025-04-11 07:00:05 [RateCDR] => 1 ) [2025-04-11 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:00:05' and `end` < '2025-04-11 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:00:18] Production.INFO: count ==74 [2025-04-11 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:00:05 - End Time 2025-04-11 07:00:05 [2025-04-11 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882550', 'tblTempUsageDetail_20' ) start [2025-04-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882550', 'tblTempUsageDetail_20' ) end [2025-04-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882550', 'tblTempVendorCDR_20' ) start [2025-04-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882550', 'tblTempVendorCDR_20' ) end [2025-04-11 07:00:18] Production.INFO: ProcessCDR(1,14882550,1,1,2) [2025-04-11 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882550', 'tblTempUsageDetail_20' ) start [2025-04-11 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882550', 'tblTempUsageDetail_20' ) end [2025-04-11 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:00:21] Production.INFO: ==14879== Releasing lock... [2025-04-11 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:01:05 [end_date_ymd] => 2025-04-11 07:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:01:05' and `end` < '2025-04-11 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-04-11 07:01:18] Production.INFO: count ==74 [2025-04-11 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:01:05 - End Time 2025-04-11 07:01:05 [2025-04-11 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882555', 'tblTempUsageDetail_20' ) start [2025-04-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882555', 'tblTempUsageDetail_20' ) end [2025-04-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882555', 'tblTempVendorCDR_20' ) start [2025-04-11 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882555', 'tblTempVendorCDR_20' ) end [2025-04-11 07:01:18] Production.INFO: ProcessCDR(1,14882555,1,1,2) [2025-04-11 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882555', 'tblTempUsageDetail_20' ) start [2025-04-11 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882555', 'tblTempUsageDetail_20' ) end [2025-04-11 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:01:21] Production.INFO: ==14996== Releasing lock... [2025-04-11 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:02:05 [end_date_ymd] => 2025-04-11 07:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:02:05' and `end` < '2025-04-11 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-04-11 07:02:19] Production.INFO: count ==74 [2025-04-11 07:02:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:02:05 - End Time 2025-04-11 07:02:05 [2025-04-11 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882560', 'tblTempUsageDetail_20' ) start [2025-04-11 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882560', 'tblTempUsageDetail_20' ) end [2025-04-11 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882560', 'tblTempVendorCDR_20' ) start [2025-04-11 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882560', 'tblTempVendorCDR_20' ) end [2025-04-11 07:02:19] Production.INFO: ProcessCDR(1,14882560,1,1,2) [2025-04-11 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882560', 'tblTempUsageDetail_20' ) start [2025-04-11 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882560', 'tblTempUsageDetail_20' ) end [2025-04-11 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:02:22] Production.INFO: ==15131== Releasing lock... [2025-04-11 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:03:05 [end_date_ymd] => 2025-04-11 07:03:05 [RateCDR] => 1 ) [2025-04-11 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:03:05' and `end` < '2025-04-11 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:03:18] Production.INFO: count ==72 [2025-04-11 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:03:05 - End Time 2025-04-11 07:03:05 [2025-04-11 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882565', 'tblTempUsageDetail_20' ) start [2025-04-11 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882565', 'tblTempUsageDetail_20' ) end [2025-04-11 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882565', 'tblTempVendorCDR_20' ) start [2025-04-11 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882565', 'tblTempVendorCDR_20' ) end [2025-04-11 07:03:18] Production.INFO: ProcessCDR(1,14882565,1,1,2) [2025-04-11 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882565', 'tblTempUsageDetail_20' ) start [2025-04-11 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882565', 'tblTempUsageDetail_20' ) end [2025-04-11 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:03:21] Production.INFO: ==15208== Releasing lock... [2025-04-11 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:04:06 [end_date_ymd] => 2025-04-11 07:04:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:04:06' and `end` < '2025-04-11 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-04-11 07:04:19] Production.INFO: count ==71 [2025-04-11 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:04:06 - End Time 2025-04-11 07:04:06 [2025-04-11 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882570', 'tblTempUsageDetail_20' ) start [2025-04-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882570', 'tblTempUsageDetail_20' ) end [2025-04-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882570', 'tblTempVendorCDR_20' ) start [2025-04-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882570', 'tblTempVendorCDR_20' ) end [2025-04-11 07:04:19] Production.INFO: ProcessCDR(1,14882570,1,1,2) [2025-04-11 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882570', 'tblTempUsageDetail_20' ) start [2025-04-11 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882570', 'tblTempUsageDetail_20' ) end [2025-04-11 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:04:22] Production.INFO: ==15291== Releasing lock... [2025-04-11 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:05:05 [end_date_ymd] => 2025-04-11 07:05:05 [RateCDR] => 1 ) [2025-04-11 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:05:05' and `end` < '2025-04-11 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:05:18] Production.INFO: count ==73 [2025-04-11 07:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:05:05 - End Time 2025-04-11 07:05:05 [2025-04-11 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882575', 'tblTempUsageDetail_20' ) start [2025-04-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882575', 'tblTempUsageDetail_20' ) end [2025-04-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882575', 'tblTempVendorCDR_20' ) start [2025-04-11 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882575', 'tblTempVendorCDR_20' ) end [2025-04-11 07:05:18] Production.INFO: ProcessCDR(1,14882575,1,1,2) [2025-04-11 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882575', 'tblTempUsageDetail_20' ) start [2025-04-11 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882575', 'tblTempUsageDetail_20' ) end [2025-04-11 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:05:22] Production.INFO: ==15448== Releasing lock... [2025-04-11 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:06:05 [end_date_ymd] => 2025-04-11 07:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:06:05' and `end` < '2025-04-11 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-04-11 07:06:19] Production.INFO: count ==73 [2025-04-11 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:06:05 - End Time 2025-04-11 07:06:05 [2025-04-11 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882580', 'tblTempUsageDetail_20' ) start [2025-04-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882580', 'tblTempUsageDetail_20' ) end [2025-04-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882580', 'tblTempVendorCDR_20' ) start [2025-04-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882580', 'tblTempVendorCDR_20' ) end [2025-04-11 07:06:19] Production.INFO: ProcessCDR(1,14882580,1,1,2) [2025-04-11 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882580', 'tblTempUsageDetail_20' ) start [2025-04-11 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882580', 'tblTempUsageDetail_20' ) end [2025-04-11 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:06:23] Production.INFO: ==15533== Releasing lock... [2025-04-11 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:06:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:07:05 [end_date_ymd] => 2025-04-11 07:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:07:05' and `end` < '2025-04-11 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-04-11 07:07:18] Production.INFO: count ==71 [2025-04-11 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:07:05 - End Time 2025-04-11 07:07:05 [2025-04-11 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882585', 'tblTempUsageDetail_20' ) start [2025-04-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882585', 'tblTempUsageDetail_20' ) end [2025-04-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882585', 'tblTempVendorCDR_20' ) start [2025-04-11 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882585', 'tblTempVendorCDR_20' ) end [2025-04-11 07:07:18] Production.INFO: ProcessCDR(1,14882585,1,1,2) [2025-04-11 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882585', 'tblTempUsageDetail_20' ) start [2025-04-11 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882585', 'tblTempUsageDetail_20' ) end [2025-04-11 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:07:22] Production.INFO: ==15651== Releasing lock... [2025-04-11 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:08:06 [end_date_ymd] => 2025-04-11 07:08:06 [RateCDR] => 1 ) [2025-04-11 07: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-04-11 04:08:06' and `end` < '2025-04-11 07: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-04-11 07:08:18] Production.INFO: count ==69 [2025-04-11 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:08:06 - End Time 2025-04-11 07:08:06 [2025-04-11 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882590', 'tblTempUsageDetail_20' ) start [2025-04-11 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882590', 'tblTempUsageDetail_20' ) end [2025-04-11 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882590', 'tblTempVendorCDR_20' ) start [2025-04-11 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882590', 'tblTempVendorCDR_20' ) end [2025-04-11 07:08:18] Production.INFO: ProcessCDR(1,14882590,1,1,2) [2025-04-11 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882590', 'tblTempUsageDetail_20' ) start [2025-04-11 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882590', 'tblTempUsageDetail_20' ) end [2025-04-11 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:08:22] Production.INFO: ==15806== Releasing lock... [2025-04-11 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:09:06 [end_date_ymd] => 2025-04-11 07:09:06 [RateCDR] => 1 ) [2025-04-11 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:09:06' and `end` < '2025-04-11 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:09:19] Production.INFO: count ==69 [2025-04-11 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:09:06 - End Time 2025-04-11 07:09:06 [2025-04-11 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882595', 'tblTempUsageDetail_20' ) start [2025-04-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882595', 'tblTempUsageDetail_20' ) end [2025-04-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882595', 'tblTempVendorCDR_20' ) start [2025-04-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882595', 'tblTempVendorCDR_20' ) end [2025-04-11 07:09:19] Production.INFO: ProcessCDR(1,14882595,1,1,2) [2025-04-11 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882595', 'tblTempUsageDetail_20' ) start [2025-04-11 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882595', 'tblTempUsageDetail_20' ) end [2025-04-11 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:09:22] Production.INFO: ==15890== Releasing lock... [2025-04-11 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:10:06 [end_date_ymd] => 2025-04-11 07:10:06 [RateCDR] => 1 ) [2025-04-11 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:10:06' and `end` < '2025-04-11 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:10:20] Production.INFO: count ==77 [2025-04-11 07:10:20] Production.ERROR: pbx CDR StartTime 2025-04-11 04:10:06 - End Time 2025-04-11 07:10:06 [2025-04-11 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882601', 'tblTempUsageDetail_20' ) start [2025-04-11 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882601', 'tblTempUsageDetail_20' ) end [2025-04-11 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882601', 'tblTempVendorCDR_20' ) start [2025-04-11 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882601', 'tblTempVendorCDR_20' ) end [2025-04-11 07:10:20] Production.INFO: ProcessCDR(1,14882601,1,1,2) [2025-04-11 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882601', 'tblTempUsageDetail_20' ) start [2025-04-11 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882601', 'tblTempUsageDetail_20' ) end [2025-04-11 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:10:23] Production.INFO: ==15974== Releasing lock... [2025-04-11 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:10:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:11:05 [end_date_ymd] => 2025-04-11 07:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:11:05' and `end` < '2025-04-11 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-04-11 07:11:19] Production.INFO: count ==77 [2025-04-11 07:11:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:11:05 - End Time 2025-04-11 07:11:05 [2025-04-11 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882606', 'tblTempUsageDetail_20' ) start [2025-04-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882606', 'tblTempUsageDetail_20' ) end [2025-04-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882606', 'tblTempVendorCDR_20' ) start [2025-04-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882606', 'tblTempVendorCDR_20' ) end [2025-04-11 07:11:19] Production.INFO: ProcessCDR(1,14882606,1,1,2) [2025-04-11 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882606', 'tblTempUsageDetail_20' ) start [2025-04-11 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882606', 'tblTempUsageDetail_20' ) end [2025-04-11 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:11:22] Production.INFO: ==16052== Releasing lock... [2025-04-11 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:12:05 [end_date_ymd] => 2025-04-11 07:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:12:05' and `end` < '2025-04-11 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-04-11 07:12:19] Production.INFO: count ==77 [2025-04-11 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:12:05 - End Time 2025-04-11 07:12:05 [2025-04-11 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882611', 'tblTempUsageDetail_20' ) start [2025-04-11 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882611', 'tblTempUsageDetail_20' ) end [2025-04-11 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882611', 'tblTempVendorCDR_20' ) start [2025-04-11 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882611', 'tblTempVendorCDR_20' ) end [2025-04-11 07:12:19] Production.INFO: ProcessCDR(1,14882611,1,1,2) [2025-04-11 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882611', 'tblTempUsageDetail_20' ) start [2025-04-11 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882611', 'tblTempUsageDetail_20' ) end [2025-04-11 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:12:22] Production.INFO: ==16205== Releasing lock... [2025-04-11 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:13:04 [end_date_ymd] => 2025-04-11 07:13:04 [RateCDR] => 1 ) [2025-04-11 07:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:13:04' and `end` < '2025-04-11 07:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:13:17] Production.INFO: count ==77 [2025-04-11 07:13:17] Production.ERROR: pbx CDR StartTime 2025-04-11 04:13:04 - End Time 2025-04-11 07:13:04 [2025-04-11 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882616', 'tblTempUsageDetail_20' ) start [2025-04-11 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882616', 'tblTempUsageDetail_20' ) end [2025-04-11 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882616', 'tblTempVendorCDR_20' ) start [2025-04-11 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882616', 'tblTempVendorCDR_20' ) end [2025-04-11 07:13:17] Production.INFO: ProcessCDR(1,14882616,1,1,2) [2025-04-11 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882616', 'tblTempUsageDetail_20' ) start [2025-04-11 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882616', 'tblTempUsageDetail_20' ) end [2025-04-11 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:13:21] Production.INFO: ==16283== Releasing lock... [2025-04-11 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:14:05 [end_date_ymd] => 2025-04-11 07:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:14:05' and `end` < '2025-04-11 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-04-11 07:14:19] Production.INFO: count ==77 [2025-04-11 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:14:05 - End Time 2025-04-11 07:14:05 [2025-04-11 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882621', 'tblTempUsageDetail_20' ) start [2025-04-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882621', 'tblTempUsageDetail_20' ) end [2025-04-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882621', 'tblTempVendorCDR_20' ) start [2025-04-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882621', 'tblTempVendorCDR_20' ) end [2025-04-11 07:14:19] Production.INFO: ProcessCDR(1,14882621,1,1,2) [2025-04-11 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882621', 'tblTempUsageDetail_20' ) start [2025-04-11 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882621', 'tblTempUsageDetail_20' ) end [2025-04-11 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:14:23] Production.INFO: ==16354== Releasing lock... [2025-04-11 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:14:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:15:05 [end_date_ymd] => 2025-04-11 07:15:05 [RateCDR] => 1 ) [2025-04-11 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:15:05' and `end` < '2025-04-11 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:15:18] Production.INFO: count ==78 [2025-04-11 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:15:05 - End Time 2025-04-11 07:15:05 [2025-04-11 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882626', 'tblTempUsageDetail_20' ) start [2025-04-11 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882626', 'tblTempUsageDetail_20' ) end [2025-04-11 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882626', 'tblTempVendorCDR_20' ) start [2025-04-11 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882626', 'tblTempVendorCDR_20' ) end [2025-04-11 07:15:18] Production.INFO: ProcessCDR(1,14882626,1,1,2) [2025-04-11 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882626', 'tblTempUsageDetail_20' ) start [2025-04-11 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882626', 'tblTempUsageDetail_20' ) end [2025-04-11 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:15:23] Production.INFO: ==16494== Releasing lock... [2025-04-11 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:15:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-11 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:16:05 [end_date_ymd] => 2025-04-11 07:16:05 [RateCDR] => 1 ) [2025-04-11 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:16:05' and `end` < '2025-04-11 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:16:18] Production.INFO: count ==79 [2025-04-11 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:16:05 - End Time 2025-04-11 07:16:05 [2025-04-11 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882631', 'tblTempUsageDetail_20' ) start [2025-04-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882631', 'tblTempUsageDetail_20' ) end [2025-04-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882631', 'tblTempVendorCDR_20' ) start [2025-04-11 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882631', 'tblTempVendorCDR_20' ) end [2025-04-11 07:16:18] Production.INFO: ProcessCDR(1,14882631,1,1,2) [2025-04-11 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882631', 'tblTempUsageDetail_20' ) start [2025-04-11 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882631', 'tblTempUsageDetail_20' ) end [2025-04-11 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:16:23] Production.INFO: ==16581== Releasing lock... [2025-04-11 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:16:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:17:06 [end_date_ymd] => 2025-04-11 07:17:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:17:06' and `end` < '2025-04-11 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-04-11 07:17:19] Production.INFO: count ==79 [2025-04-11 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:17:06 - End Time 2025-04-11 07:17:06 [2025-04-11 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882636', 'tblTempUsageDetail_20' ) start [2025-04-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882636', 'tblTempUsageDetail_20' ) end [2025-04-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882636', 'tblTempVendorCDR_20' ) start [2025-04-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882636', 'tblTempVendorCDR_20' ) end [2025-04-11 07:17:19] Production.INFO: ProcessCDR(1,14882636,1,1,2) [2025-04-11 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882636', 'tblTempUsageDetail_20' ) start [2025-04-11 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882636', 'tblTempUsageDetail_20' ) end [2025-04-11 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:17:23] Production.INFO: ==16655== Releasing lock... [2025-04-11 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:17:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:18:05 [end_date_ymd] => 2025-04-11 07:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:18:05' and `end` < '2025-04-11 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-04-11 07:18:19] Production.INFO: count ==82 [2025-04-11 07:18:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:18:05 - End Time 2025-04-11 07:18:05 [2025-04-11 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882641', 'tblTempUsageDetail_20' ) start [2025-04-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882641', 'tblTempUsageDetail_20' ) end [2025-04-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882641', 'tblTempVendorCDR_20' ) start [2025-04-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882641', 'tblTempVendorCDR_20' ) end [2025-04-11 07:18:19] Production.INFO: ProcessCDR(1,14882641,1,1,2) [2025-04-11 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882641', 'tblTempUsageDetail_20' ) start [2025-04-11 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882641', 'tblTempUsageDetail_20' ) end [2025-04-11 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:18:23] Production.INFO: ==16730== Releasing lock... [2025-04-11 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:18:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:19:06 [end_date_ymd] => 2025-04-11 07:19:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:19:06' and `end` < '2025-04-11 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-04-11 07:19:19] Production.INFO: count ==82 [2025-04-11 07:19:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:19:06 - End Time 2025-04-11 07:19:06 [2025-04-11 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882646', 'tblTempUsageDetail_20' ) start [2025-04-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882646', 'tblTempUsageDetail_20' ) end [2025-04-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882646', 'tblTempVendorCDR_20' ) start [2025-04-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882646', 'tblTempVendorCDR_20' ) end [2025-04-11 07:19:19] Production.INFO: ProcessCDR(1,14882646,1,1,2) [2025-04-11 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882646', 'tblTempUsageDetail_20' ) start [2025-04-11 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882646', 'tblTempUsageDetail_20' ) end [2025-04-11 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:19:23] Production.INFO: ==16811== Releasing lock... [2025-04-11 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:19:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:20:06 [end_date_ymd] => 2025-04-11 07:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:20:06' and `end` < '2025-04-11 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-04-11 07:20:19] Production.INFO: count ==79 [2025-04-11 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:20:06 - End Time 2025-04-11 07:20:06 [2025-04-11 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882651', 'tblTempUsageDetail_20' ) start [2025-04-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882651', 'tblTempUsageDetail_20' ) end [2025-04-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882651', 'tblTempVendorCDR_20' ) start [2025-04-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882651', 'tblTempVendorCDR_20' ) end [2025-04-11 07:20:19] Production.INFO: ProcessCDR(1,14882651,1,1,2) [2025-04-11 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882651', 'tblTempUsageDetail_20' ) start [2025-04-11 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882651', 'tblTempUsageDetail_20' ) end [2025-04-11 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:20:23] Production.INFO: ==16890== Releasing lock... [2025-04-11 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:21:06 [end_date_ymd] => 2025-04-11 07:21:06 [RateCDR] => 1 ) [2025-04-11 07: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-04-11 04:21:06' and `end` < '2025-04-11 07: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-04-11 07:21:19] Production.INFO: count ==79 [2025-04-11 07:21:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:21:06 - End Time 2025-04-11 07:21:06 [2025-04-11 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882657', 'tblTempUsageDetail_20' ) start [2025-04-11 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882657', 'tblTempUsageDetail_20' ) end [2025-04-11 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882657', 'tblTempVendorCDR_20' ) start [2025-04-11 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882657', 'tblTempVendorCDR_20' ) end [2025-04-11 07:21:19] Production.INFO: ProcessCDR(1,14882657,1,1,2) [2025-04-11 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882657', 'tblTempUsageDetail_20' ) start [2025-04-11 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882657', 'tblTempUsageDetail_20' ) end [2025-04-11 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:21:23] Production.INFO: ==16962== Releasing lock... [2025-04-11 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:21:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:22:06 [end_date_ymd] => 2025-04-11 07:22:06 [RateCDR] => 1 ) [2025-04-11 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:22:06' and `end` < '2025-04-11 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:22:20] Production.INFO: count ==84 [2025-04-11 07:22:20] Production.ERROR: pbx CDR StartTime 2025-04-11 04:22:06 - End Time 2025-04-11 07:22:06 [2025-04-11 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882662', 'tblTempUsageDetail_20' ) start [2025-04-11 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882662', 'tblTempUsageDetail_20' ) end [2025-04-11 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882662', 'tblTempVendorCDR_20' ) start [2025-04-11 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882662', 'tblTempVendorCDR_20' ) end [2025-04-11 07:22:20] Production.INFO: ProcessCDR(1,14882662,1,1,2) [2025-04-11 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882662', 'tblTempUsageDetail_20' ) start [2025-04-11 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882662', 'tblTempUsageDetail_20' ) end [2025-04-11 07:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:22:24] Production.INFO: ==17034== Releasing lock... [2025-04-11 07:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:22:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:23:06 [end_date_ymd] => 2025-04-11 07:23:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:23:06' and `end` < '2025-04-11 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-04-11 07:23:19] Production.INFO: count ==84 [2025-04-11 07:23:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:23:06 - End Time 2025-04-11 07:23:06 [2025-04-11 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882667', 'tblTempUsageDetail_20' ) start [2025-04-11 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882667', 'tblTempUsageDetail_20' ) end [2025-04-11 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882667', 'tblTempVendorCDR_20' ) start [2025-04-11 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882667', 'tblTempVendorCDR_20' ) end [2025-04-11 07:23:19] Production.INFO: ProcessCDR(1,14882667,1,1,2) [2025-04-11 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882667', 'tblTempUsageDetail_20' ) start [2025-04-11 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882667', 'tblTempUsageDetail_20' ) end [2025-04-11 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:23:22] Production.INFO: ==17147== Releasing lock... [2025-04-11 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:24:06 [end_date_ymd] => 2025-04-11 07:24:06 [RateCDR] => 1 ) [2025-04-11 07: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-04-11 04:24:06' and `end` < '2025-04-11 07: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-04-11 07:24:18] Production.INFO: count ==84 [2025-04-11 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:24:06 - End Time 2025-04-11 07:24:06 [2025-04-11 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882672', 'tblTempUsageDetail_20' ) start [2025-04-11 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882672', 'tblTempUsageDetail_20' ) end [2025-04-11 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882672', 'tblTempVendorCDR_20' ) start [2025-04-11 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882672', 'tblTempVendorCDR_20' ) end [2025-04-11 07:24:18] Production.INFO: ProcessCDR(1,14882672,1,1,2) [2025-04-11 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882672', 'tblTempUsageDetail_20' ) start [2025-04-11 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882672', 'tblTempUsageDetail_20' ) end [2025-04-11 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:24:22] Production.INFO: ==17224== Releasing lock... [2025-04-11 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:25:05 [end_date_ymd] => 2025-04-11 07:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:25:05' and `end` < '2025-04-11 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-04-11 07:25:18] Production.INFO: count ==84 [2025-04-11 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:25:05 - End Time 2025-04-11 07:25:05 [2025-04-11 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882677', 'tblTempUsageDetail_20' ) start [2025-04-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882677', 'tblTempUsageDetail_20' ) end [2025-04-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882677', 'tblTempVendorCDR_20' ) start [2025-04-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882677', 'tblTempVendorCDR_20' ) end [2025-04-11 07:25:18] Production.INFO: ProcessCDR(1,14882677,1,1,2) [2025-04-11 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882677', 'tblTempUsageDetail_20' ) start [2025-04-11 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882677', 'tblTempUsageDetail_20' ) end [2025-04-11 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:25:21] Production.INFO: ==17294== Releasing lock... [2025-04-11 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:26:05 [end_date_ymd] => 2025-04-11 07:26:05 [RateCDR] => 1 ) [2025-04-11 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:26:05' and `end` < '2025-04-11 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:26:18] Production.INFO: count ==86 [2025-04-11 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:26:05 - End Time 2025-04-11 07:26:05 [2025-04-11 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882682', 'tblTempUsageDetail_20' ) start [2025-04-11 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882682', 'tblTempUsageDetail_20' ) end [2025-04-11 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882682', 'tblTempVendorCDR_20' ) start [2025-04-11 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882682', 'tblTempVendorCDR_20' ) end [2025-04-11 07:26:18] Production.INFO: ProcessCDR(1,14882682,1,1,2) [2025-04-11 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882682', 'tblTempUsageDetail_20' ) start [2025-04-11 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882682', 'tblTempUsageDetail_20' ) end [2025-04-11 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:26:21] Production.INFO: ==17368== Releasing lock... [2025-04-11 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:27:05 [end_date_ymd] => 2025-04-11 07:27:05 [RateCDR] => 1 ) [2025-04-11 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:27:05' and `end` < '2025-04-11 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:27:17] Production.INFO: count ==86 [2025-04-11 07:27:17] Production.ERROR: pbx CDR StartTime 2025-04-11 04:27:05 - End Time 2025-04-11 07:27:05 [2025-04-11 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882687', 'tblTempUsageDetail_20' ) start [2025-04-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882687', 'tblTempUsageDetail_20' ) end [2025-04-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882687', 'tblTempVendorCDR_20' ) start [2025-04-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882687', 'tblTempVendorCDR_20' ) end [2025-04-11 07:27:17] Production.INFO: ProcessCDR(1,14882687,1,1,2) [2025-04-11 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882687', 'tblTempUsageDetail_20' ) start [2025-04-11 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882687', 'tblTempUsageDetail_20' ) end [2025-04-11 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:27:21] Production.INFO: ==17442== Releasing lock... [2025-04-11 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:28:05 [end_date_ymd] => 2025-04-11 07:28:05 [RateCDR] => 1 ) [2025-04-11 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:28:05' and `end` < '2025-04-11 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:28:17] Production.INFO: count ==86 [2025-04-11 07:28:17] Production.ERROR: pbx CDR StartTime 2025-04-11 04:28:05 - End Time 2025-04-11 07:28:05 [2025-04-11 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882692', 'tblTempUsageDetail_20' ) start [2025-04-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882692', 'tblTempUsageDetail_20' ) end [2025-04-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882692', 'tblTempVendorCDR_20' ) start [2025-04-11 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882692', 'tblTempVendorCDR_20' ) end [2025-04-11 07:28:17] Production.INFO: ProcessCDR(1,14882692,1,1,2) [2025-04-11 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882692', 'tblTempUsageDetail_20' ) start [2025-04-11 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882692', 'tblTempUsageDetail_20' ) end [2025-04-11 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:28:21] Production.INFO: ==17513== Releasing lock... [2025-04-11 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:29:05 [end_date_ymd] => 2025-04-11 07:29:05 [RateCDR] => 1 ) [2025-04-11 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:29:05' and `end` < '2025-04-11 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:29:18] Production.INFO: count ==86 [2025-04-11 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:29:05 - End Time 2025-04-11 07:29:05 [2025-04-11 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882697', 'tblTempUsageDetail_20' ) start [2025-04-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882697', 'tblTempUsageDetail_20' ) end [2025-04-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882697', 'tblTempVendorCDR_20' ) start [2025-04-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882697', 'tblTempVendorCDR_20' ) end [2025-04-11 07:29:18] Production.INFO: ProcessCDR(1,14882697,1,1,2) [2025-04-11 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882697', 'tblTempUsageDetail_20' ) start [2025-04-11 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882697', 'tblTempUsageDetail_20' ) end [2025-04-11 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:29:21] Production.INFO: ==17585== Releasing lock... [2025-04-11 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:30:05 [end_date_ymd] => 2025-04-11 07:30:05 [RateCDR] => 1 ) [2025-04-11 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:30:05' and `end` < '2025-04-11 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:30:18] Production.INFO: count ==84 [2025-04-11 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:30:05 - End Time 2025-04-11 07:30:05 [2025-04-11 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882703', 'tblTempUsageDetail_20' ) start [2025-04-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882703', 'tblTempUsageDetail_20' ) end [2025-04-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882703', 'tblTempVendorCDR_20' ) start [2025-04-11 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882703', 'tblTempVendorCDR_20' ) end [2025-04-11 07:30:18] Production.INFO: ProcessCDR(1,14882703,1,1,2) [2025-04-11 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882703', 'tblTempUsageDetail_20' ) start [2025-04-11 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882703', 'tblTempUsageDetail_20' ) end [2025-04-11 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:30:21] Production.INFO: ==17662== Releasing lock... [2025-04-11 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:31:05 [end_date_ymd] => 2025-04-11 07:31:05 [RateCDR] => 1 ) [2025-04-11 07: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-04-11 04:31:05' and `end` < '2025-04-11 07: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-04-11 07:31:18] Production.INFO: count ==84 [2025-04-11 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:31:05 - End Time 2025-04-11 07:31:05 [2025-04-11 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882708', 'tblTempUsageDetail_20' ) start [2025-04-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882708', 'tblTempUsageDetail_20' ) end [2025-04-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882708', 'tblTempVendorCDR_20' ) start [2025-04-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882708', 'tblTempVendorCDR_20' ) end [2025-04-11 07:31:18] Production.INFO: ProcessCDR(1,14882708,1,1,2) [2025-04-11 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882708', 'tblTempUsageDetail_20' ) start [2025-04-11 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882708', 'tblTempUsageDetail_20' ) end [2025-04-11 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:31:21] Production.INFO: ==17737== Releasing lock... [2025-04-11 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:32:06 [end_date_ymd] => 2025-04-11 07:32:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:32:06' and `end` < '2025-04-11 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-04-11 07:32:19] Production.INFO: count ==84 [2025-04-11 07:32:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:32:06 - End Time 2025-04-11 07:32:06 [2025-04-11 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882713', 'tblTempUsageDetail_20' ) start [2025-04-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882713', 'tblTempUsageDetail_20' ) end [2025-04-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882713', 'tblTempVendorCDR_20' ) start [2025-04-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882713', 'tblTempVendorCDR_20' ) end [2025-04-11 07:32:19] Production.INFO: ProcessCDR(1,14882713,1,1,2) [2025-04-11 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882713', 'tblTempUsageDetail_20' ) start [2025-04-11 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882713', 'tblTempUsageDetail_20' ) end [2025-04-11 07:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:32:23] Production.INFO: ==17808== Releasing lock... [2025-04-11 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:32:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:33:05 [end_date_ymd] => 2025-04-11 07:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:33:05' and `end` < '2025-04-11 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-04-11 07:33:18] Production.INFO: count ==80 [2025-04-11 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:33:05 - End Time 2025-04-11 07:33:05 [2025-04-11 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882718', 'tblTempUsageDetail_20' ) start [2025-04-11 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882718', 'tblTempUsageDetail_20' ) end [2025-04-11 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882718', 'tblTempVendorCDR_20' ) start [2025-04-11 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882718', 'tblTempVendorCDR_20' ) end [2025-04-11 07:33:18] Production.INFO: ProcessCDR(1,14882718,1,1,2) [2025-04-11 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882718', 'tblTempUsageDetail_20' ) start [2025-04-11 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882718', 'tblTempUsageDetail_20' ) end [2025-04-11 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:33:22] Production.INFO: ==17887== Releasing lock... [2025-04-11 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:34:05 [end_date_ymd] => 2025-04-11 07:34:05 [RateCDR] => 1 ) [2025-04-11 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:34:05' and `end` < '2025-04-11 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:34:18] Production.INFO: count ==80 [2025-04-11 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:34:05 - End Time 2025-04-11 07:34:05 [2025-04-11 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882723', 'tblTempUsageDetail_20' ) start [2025-04-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882723', 'tblTempUsageDetail_20' ) end [2025-04-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882723', 'tblTempVendorCDR_20' ) start [2025-04-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882723', 'tblTempVendorCDR_20' ) end [2025-04-11 07:34:18] Production.INFO: ProcessCDR(1,14882723,1,1,2) [2025-04-11 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882723', 'tblTempUsageDetail_20' ) start [2025-04-11 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882723', 'tblTempUsageDetail_20' ) end [2025-04-11 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:34:21] Production.INFO: ==17960== Releasing lock... [2025-04-11 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:35:05 [end_date_ymd] => 2025-04-11 07:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:35:05' and `end` < '2025-04-11 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-04-11 07:35:18] Production.INFO: count ==78 [2025-04-11 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:35:05 - End Time 2025-04-11 07:35:05 [2025-04-11 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882728', 'tblTempUsageDetail_20' ) start [2025-04-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882728', 'tblTempUsageDetail_20' ) end [2025-04-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882728', 'tblTempVendorCDR_20' ) start [2025-04-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882728', 'tblTempVendorCDR_20' ) end [2025-04-11 07:35:18] Production.INFO: ProcessCDR(1,14882728,1,1,2) [2025-04-11 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882728', 'tblTempUsageDetail_20' ) start [2025-04-11 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882728', 'tblTempUsageDetail_20' ) end [2025-04-11 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:35:22] Production.INFO: ==18030== Releasing lock... [2025-04-11 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:35:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:36:05 [end_date_ymd] => 2025-04-11 07:36:05 [RateCDR] => 1 ) [2025-04-11 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:36:05' and `end` < '2025-04-11 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:36:18] Production.INFO: count ==77 [2025-04-11 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:36:05 - End Time 2025-04-11 07:36:05 [2025-04-11 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882733', 'tblTempUsageDetail_20' ) start [2025-04-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882733', 'tblTempUsageDetail_20' ) end [2025-04-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882733', 'tblTempVendorCDR_20' ) start [2025-04-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882733', 'tblTempVendorCDR_20' ) end [2025-04-11 07:36:18] Production.INFO: ProcessCDR(1,14882733,1,1,2) [2025-04-11 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882733', 'tblTempUsageDetail_20' ) start [2025-04-11 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882733', 'tblTempUsageDetail_20' ) end [2025-04-11 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:36:22] Production.INFO: ==18105== Releasing lock... [2025-04-11 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:37:05 [end_date_ymd] => 2025-04-11 07:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:37:05' and `end` < '2025-04-11 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-04-11 07:37:18] Production.INFO: count ==77 [2025-04-11 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:37:05 - End Time 2025-04-11 07:37:05 [2025-04-11 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882738', 'tblTempUsageDetail_20' ) start [2025-04-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882738', 'tblTempUsageDetail_20' ) end [2025-04-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882738', 'tblTempVendorCDR_20' ) start [2025-04-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882738', 'tblTempVendorCDR_20' ) end [2025-04-11 07:37:18] Production.INFO: ProcessCDR(1,14882738,1,1,2) [2025-04-11 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882738', 'tblTempUsageDetail_20' ) start [2025-04-11 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882738', 'tblTempUsageDetail_20' ) end [2025-04-11 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:37:21] Production.INFO: ==18184== Releasing lock... [2025-04-11 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:38:05 [end_date_ymd] => 2025-04-11 07:38:05 [RateCDR] => 1 ) [2025-04-11 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:38:05' and `end` < '2025-04-11 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:38:18] Production.INFO: count ==77 [2025-04-11 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:38:05 - End Time 2025-04-11 07:38:05 [2025-04-11 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882743', 'tblTempUsageDetail_20' ) start [2025-04-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882743', 'tblTempUsageDetail_20' ) end [2025-04-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882743', 'tblTempVendorCDR_20' ) start [2025-04-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882743', 'tblTempVendorCDR_20' ) end [2025-04-11 07:38:18] Production.INFO: ProcessCDR(1,14882743,1,1,2) [2025-04-11 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882743', 'tblTempUsageDetail_20' ) start [2025-04-11 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882743', 'tblTempUsageDetail_20' ) end [2025-04-11 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:38:22] Production.INFO: ==18300== Releasing lock... [2025-04-11 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:39:05 [end_date_ymd] => 2025-04-11 07:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:39:05' and `end` < '2025-04-11 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-04-11 07:39:18] Production.INFO: count ==77 [2025-04-11 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:39:05 - End Time 2025-04-11 07:39:05 [2025-04-11 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882748', 'tblTempUsageDetail_20' ) start [2025-04-11 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882748', 'tblTempUsageDetail_20' ) end [2025-04-11 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882748', 'tblTempVendorCDR_20' ) start [2025-04-11 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882748', 'tblTempVendorCDR_20' ) end [2025-04-11 07:39:18] Production.INFO: ProcessCDR(1,14882748,1,1,2) [2025-04-11 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882748', 'tblTempUsageDetail_20' ) start [2025-04-11 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882748', 'tblTempUsageDetail_20' ) end [2025-04-11 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:39:21] Production.INFO: ==18372== Releasing lock... [2025-04-11 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:40:06 [end_date_ymd] => 2025-04-11 07:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:40:06' and `end` < '2025-04-11 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-04-11 07:40:19] Production.INFO: count ==79 [2025-04-11 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 04:40:06 - End Time 2025-04-11 07:40:06 [2025-04-11 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882753', 'tblTempUsageDetail_20' ) start [2025-04-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882753', 'tblTempUsageDetail_20' ) end [2025-04-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882753', 'tblTempVendorCDR_20' ) start [2025-04-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882753', 'tblTempVendorCDR_20' ) end [2025-04-11 07:40:19] Production.INFO: ProcessCDR(1,14882753,1,1,2) [2025-04-11 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882753', 'tblTempUsageDetail_20' ) start [2025-04-11 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882753', 'tblTempUsageDetail_20' ) end [2025-04-11 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:40:23] Production.INFO: ==18449== Releasing lock... [2025-04-11 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:41:04 [end_date_ymd] => 2025-04-11 07:41:04 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:41:04' and `end` < '2025-04-11 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-04-11 07:41:17] Production.INFO: count ==81 [2025-04-11 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-11 04:41:04 - End Time 2025-04-11 07:41:04 [2025-04-11 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882759', 'tblTempUsageDetail_20' ) start [2025-04-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882759', 'tblTempUsageDetail_20' ) end [2025-04-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882759', 'tblTempVendorCDR_20' ) start [2025-04-11 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882759', 'tblTempVendorCDR_20' ) end [2025-04-11 07:41:17] Production.INFO: ProcessCDR(1,14882759,1,1,2) [2025-04-11 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882759', 'tblTempUsageDetail_20' ) start [2025-04-11 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882759', 'tblTempUsageDetail_20' ) end [2025-04-11 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:41:20] Production.INFO: ==18521== Releasing lock... [2025-04-11 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:42:05 [end_date_ymd] => 2025-04-11 07:42:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:42:05' and `end` < '2025-04-11 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-04-11 07:42:18] Production.INFO: count ==81 [2025-04-11 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:42:05 - End Time 2025-04-11 07:42:05 [2025-04-11 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882764', 'tblTempUsageDetail_20' ) start [2025-04-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882764', 'tblTempUsageDetail_20' ) end [2025-04-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882764', 'tblTempVendorCDR_20' ) start [2025-04-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882764', 'tblTempVendorCDR_20' ) end [2025-04-11 07:42:18] Production.INFO: ProcessCDR(1,14882764,1,1,2) [2025-04-11 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882764', 'tblTempUsageDetail_20' ) start [2025-04-11 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882764', 'tblTempUsageDetail_20' ) end [2025-04-11 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:42:21] Production.INFO: ==18597== Releasing lock... [2025-04-11 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:43:05 [end_date_ymd] => 2025-04-11 07:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:43:05' and `end` < '2025-04-11 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-04-11 07:43:18] Production.INFO: count ==86 [2025-04-11 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:43:05 - End Time 2025-04-11 07:43:05 [2025-04-11 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882769', 'tblTempUsageDetail_20' ) start [2025-04-11 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882769', 'tblTempUsageDetail_20' ) end [2025-04-11 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882769', 'tblTempVendorCDR_20' ) start [2025-04-11 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882769', 'tblTempVendorCDR_20' ) end [2025-04-11 07:43:18] Production.INFO: ProcessCDR(1,14882769,1,1,2) [2025-04-11 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882769', 'tblTempUsageDetail_20' ) start [2025-04-11 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882769', 'tblTempUsageDetail_20' ) end [2025-04-11 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:43:22] Production.INFO: ==18671== Releasing lock... [2025-04-11 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:44:05 [end_date_ymd] => 2025-04-11 07:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:44:05' and `end` < '2025-04-11 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-04-11 07:44:18] Production.INFO: count ==86 [2025-04-11 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:44:05 - End Time 2025-04-11 07:44:05 [2025-04-11 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882774', 'tblTempUsageDetail_20' ) start [2025-04-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882774', 'tblTempUsageDetail_20' ) end [2025-04-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882774', 'tblTempVendorCDR_20' ) start [2025-04-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882774', 'tblTempVendorCDR_20' ) end [2025-04-11 07:44:18] Production.INFO: ProcessCDR(1,14882774,1,1,2) [2025-04-11 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882774', 'tblTempUsageDetail_20' ) start [2025-04-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882774', 'tblTempUsageDetail_20' ) end [2025-04-11 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:44:21] Production.INFO: ==18742== Releasing lock... [2025-04-11 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:45:05 [end_date_ymd] => 2025-04-11 07:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:45:05' and `end` < '2025-04-11 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-04-11 07:45:18] Production.INFO: count ==86 [2025-04-11 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:45:05 - End Time 2025-04-11 07:45:05 [2025-04-11 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882779', 'tblTempUsageDetail_20' ) start [2025-04-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882779', 'tblTempUsageDetail_20' ) end [2025-04-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882779', 'tblTempVendorCDR_20' ) start [2025-04-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882779', 'tblTempVendorCDR_20' ) end [2025-04-11 07:45:18] Production.INFO: ProcessCDR(1,14882779,1,1,2) [2025-04-11 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882779', 'tblTempUsageDetail_20' ) start [2025-04-11 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882779', 'tblTempUsageDetail_20' ) end [2025-04-11 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:45:22] Production.INFO: ==18823== Releasing lock... [2025-04-11 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:46:05 [end_date_ymd] => 2025-04-11 07:46:05 [RateCDR] => 1 ) [2025-04-11 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:46:05' and `end` < '2025-04-11 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:46:18] Production.INFO: count ==86 [2025-04-11 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:46:05 - End Time 2025-04-11 07:46:05 [2025-04-11 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882784', 'tblTempUsageDetail_20' ) start [2025-04-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882784', 'tblTempUsageDetail_20' ) end [2025-04-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882784', 'tblTempVendorCDR_20' ) start [2025-04-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882784', 'tblTempVendorCDR_20' ) end [2025-04-11 07:46:18] Production.INFO: ProcessCDR(1,14882784,1,1,2) [2025-04-11 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882784', 'tblTempUsageDetail_20' ) start [2025-04-11 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882784', 'tblTempUsageDetail_20' ) end [2025-04-11 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:46:21] Production.INFO: ==18900== Releasing lock... [2025-04-11 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-11 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:47:05 [end_date_ymd] => 2025-04-11 07:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:47:05' and `end` < '2025-04-11 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-04-11 07:47:18] Production.INFO: count ==97 [2025-04-11 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:47:05 - End Time 2025-04-11 07:47:05 [2025-04-11 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882789', 'tblTempUsageDetail_20' ) start [2025-04-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882789', 'tblTempUsageDetail_20' ) end [2025-04-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882789', 'tblTempVendorCDR_20' ) start [2025-04-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882789', 'tblTempVendorCDR_20' ) end [2025-04-11 07:47:18] Production.INFO: ProcessCDR(1,14882789,1,1,2) [2025-04-11 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882789', 'tblTempUsageDetail_20' ) start [2025-04-11 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882789', 'tblTempUsageDetail_20' ) end [2025-04-11 07:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:47:23] Production.INFO: ==18998== Releasing lock... [2025-04-11 07:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:47:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:48:05 [end_date_ymd] => 2025-04-11 07:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:48:05' and `end` < '2025-04-11 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-04-11 07:48:17] Production.INFO: count ==97 [2025-04-11 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-11 04:48:05 - End Time 2025-04-11 07:48:05 [2025-04-11 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882794', 'tblTempUsageDetail_20' ) start [2025-04-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882794', 'tblTempUsageDetail_20' ) end [2025-04-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882794', 'tblTempVendorCDR_20' ) start [2025-04-11 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882794', 'tblTempVendorCDR_20' ) end [2025-04-11 07:48:17] Production.INFO: ProcessCDR(1,14882794,1,1,2) [2025-04-11 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882794', 'tblTempUsageDetail_20' ) start [2025-04-11 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882794', 'tblTempUsageDetail_20' ) end [2025-04-11 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:48:21] Production.INFO: ==19070== Releasing lock... [2025-04-11 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:49:06 [end_date_ymd] => 2025-04-11 07:49:06 [RateCDR] => 1 ) [2025-04-11 07: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-04-11 04:49:06' and `end` < '2025-04-11 07: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-04-11 07:49:18] Production.INFO: count ==97 [2025-04-11 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:49:06 - End Time 2025-04-11 07:49:06 [2025-04-11 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882799', 'tblTempUsageDetail_20' ) start [2025-04-11 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882799', 'tblTempUsageDetail_20' ) end [2025-04-11 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882799', 'tblTempVendorCDR_20' ) start [2025-04-11 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882799', 'tblTempVendorCDR_20' ) end [2025-04-11 07:49:18] Production.INFO: ProcessCDR(1,14882799,1,1,2) [2025-04-11 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882799', 'tblTempUsageDetail_20' ) start [2025-04-11 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882799', 'tblTempUsageDetail_20' ) end [2025-04-11 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:49:22] Production.INFO: ==19140== Releasing lock... [2025-04-11 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:50:05 [end_date_ymd] => 2025-04-11 07:50:05 [RateCDR] => 1 ) [2025-04-11 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:50:05' and `end` < '2025-04-11 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:50:18] Production.INFO: count ==105 [2025-04-11 07:50:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:50:05 - End Time 2025-04-11 07:50:05 [2025-04-11 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882805', 'tblTempUsageDetail_20' ) start [2025-04-11 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882805', 'tblTempUsageDetail_20' ) end [2025-04-11 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882805', 'tblTempVendorCDR_20' ) start [2025-04-11 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882805', 'tblTempVendorCDR_20' ) end [2025-04-11 07:50:18] Production.INFO: ProcessCDR(1,14882805,1,1,2) [2025-04-11 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882805', 'tblTempUsageDetail_20' ) start [2025-04-11 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882805', 'tblTempUsageDetail_20' ) end [2025-04-11 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:50:21] Production.INFO: ==19212== Releasing lock... [2025-04-11 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:51:05 [end_date_ymd] => 2025-04-11 07:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:51:05' and `end` < '2025-04-11 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-04-11 07:51:18] Production.INFO: count ==117 [2025-04-11 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:51:05 - End Time 2025-04-11 07:51:05 [2025-04-11 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882810', 'tblTempUsageDetail_20' ) start [2025-04-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882810', 'tblTempUsageDetail_20' ) end [2025-04-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882810', 'tblTempVendorCDR_20' ) start [2025-04-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882810', 'tblTempVendorCDR_20' ) end [2025-04-11 07:51:18] Production.INFO: ProcessCDR(1,14882810,1,1,2) [2025-04-11 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882810', 'tblTempUsageDetail_20' ) start [2025-04-11 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882810', 'tblTempUsageDetail_20' ) end [2025-04-11 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:51:21] Production.INFO: ==19287== Releasing lock... [2025-04-11 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:52:05 [end_date_ymd] => 2025-04-11 07:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:52:05' and `end` < '2025-04-11 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-04-11 07:52:18] Production.INFO: count ==118 [2025-04-11 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:52:05 - End Time 2025-04-11 07:52:05 [2025-04-11 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882815', 'tblTempUsageDetail_20' ) start [2025-04-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882815', 'tblTempUsageDetail_20' ) end [2025-04-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882815', 'tblTempVendorCDR_20' ) start [2025-04-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882815', 'tblTempVendorCDR_20' ) end [2025-04-11 07:52:18] Production.INFO: ProcessCDR(1,14882815,1,1,2) [2025-04-11 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882815', 'tblTempUsageDetail_20' ) start [2025-04-11 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882815', 'tblTempUsageDetail_20' ) end [2025-04-11 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:52:23] Production.INFO: ==19361== Releasing lock... [2025-04-11 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:52:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:53:05 [end_date_ymd] => 2025-04-11 07:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:53:05' and `end` < '2025-04-11 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-04-11 07:53:18] Production.INFO: count ==121 [2025-04-11 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:53:05 - End Time 2025-04-11 07:53:05 [2025-04-11 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882820', 'tblTempUsageDetail_20' ) start [2025-04-11 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882820', 'tblTempUsageDetail_20' ) end [2025-04-11 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882820', 'tblTempVendorCDR_20' ) start [2025-04-11 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882820', 'tblTempVendorCDR_20' ) end [2025-04-11 07:53:18] Production.INFO: ProcessCDR(1,14882820,1,1,2) [2025-04-11 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882820', 'tblTempUsageDetail_20' ) start [2025-04-11 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882820', 'tblTempUsageDetail_20' ) end [2025-04-11 07:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:53:23] Production.INFO: ==19437== Releasing lock... [2025-04-11 07:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:54:05 [end_date_ymd] => 2025-04-11 07:54:05 [RateCDR] => 1 ) [2025-04-11 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:54:05' and `end` < '2025-04-11 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:54:18] Production.INFO: count ==121 [2025-04-11 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:54:05 - End Time 2025-04-11 07:54:05 [2025-04-11 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882821', 'tblTempUsageDetail_20' ) start [2025-04-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882821', 'tblTempUsageDetail_20' ) end [2025-04-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882821', 'tblTempVendorCDR_20' ) start [2025-04-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882821', 'tblTempVendorCDR_20' ) end [2025-04-11 07:54:18] Production.INFO: ProcessCDR(1,14882821,1,1,2) [2025-04-11 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882821', 'tblTempUsageDetail_20' ) start [2025-04-11 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882821', 'tblTempUsageDetail_20' ) end [2025-04-11 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:54:22] Production.INFO: ==19546== Releasing lock... [2025-04-11 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-11 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:55:05 [end_date_ymd] => 2025-04-11 07:55:05 [RateCDR] => 1 ) [2025-04-11 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:55:05' and `end` < '2025-04-11 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:55:18] Production.INFO: count ==127 [2025-04-11 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:55:05 - End Time 2025-04-11 07:55:05 [2025-04-11 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882830', 'tblTempUsageDetail_20' ) start [2025-04-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882830', 'tblTempUsageDetail_20' ) end [2025-04-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882830', 'tblTempVendorCDR_20' ) start [2025-04-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882830', 'tblTempVendorCDR_20' ) end [2025-04-11 07:55:18] Production.INFO: ProcessCDR(1,14882830,1,1,2) [2025-04-11 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882830', 'tblTempUsageDetail_20' ) start [2025-04-11 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882830', 'tblTempUsageDetail_20' ) end [2025-04-11 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:55:23] Production.INFO: ==19617== Releasing lock... [2025-04-11 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:55:23] Production.INFO: 29 MB #Memory Used# [2025-04-11 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:56:05 [end_date_ymd] => 2025-04-11 07:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:56:05' and `end` < '2025-04-11 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-04-11 07:56:18] Production.INFO: count ==138 [2025-04-11 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:56:05 - End Time 2025-04-11 07:56:05 [2025-04-11 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882835', 'tblTempUsageDetail_20' ) start [2025-04-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882835', 'tblTempUsageDetail_20' ) end [2025-04-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882835', 'tblTempVendorCDR_20' ) start [2025-04-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882835', 'tblTempVendorCDR_20' ) end [2025-04-11 07:56:18] Production.INFO: ProcessCDR(1,14882835,1,1,2) [2025-04-11 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882835', 'tblTempUsageDetail_20' ) start [2025-04-11 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882835', 'tblTempUsageDetail_20' ) end [2025-04-11 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:56:22] Production.INFO: ==19688== Releasing lock... [2025-04-11 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:57:05 [end_date_ymd] => 2025-04-11 07:57:05 [RateCDR] => 1 ) [2025-04-11 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 04:57:05' and `end` < '2025-04-11 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 07:57:17] Production.INFO: count ==143 [2025-04-11 07:57:17] Production.ERROR: pbx CDR StartTime 2025-04-11 04:57:05 - End Time 2025-04-11 07:57:05 [2025-04-11 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882840', 'tblTempUsageDetail_20' ) start [2025-04-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882840', 'tblTempUsageDetail_20' ) end [2025-04-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882840', 'tblTempVendorCDR_20' ) start [2025-04-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882840', 'tblTempVendorCDR_20' ) end [2025-04-11 07:57:18] Production.INFO: ProcessCDR(1,14882840,1,1,2) [2025-04-11 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882840', 'tblTempUsageDetail_20' ) start [2025-04-11 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882840', 'tblTempUsageDetail_20' ) end [2025-04-11 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:57:21] Production.INFO: ==19757== Releasing lock... [2025-04-11 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-11 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:58:05 [end_date_ymd] => 2025-04-11 07:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:58:05' and `end` < '2025-04-11 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-04-11 07:58:18] Production.INFO: count ==147 [2025-04-11 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:58:05 - End Time 2025-04-11 07:58:05 [2025-04-11 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882845', 'tblTempUsageDetail_20' ) start [2025-04-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882845', 'tblTempUsageDetail_20' ) end [2025-04-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882845', 'tblTempVendorCDR_20' ) start [2025-04-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882845', 'tblTempVendorCDR_20' ) end [2025-04-11 07:58:18] Production.INFO: ProcessCDR(1,14882845,1,1,2) [2025-04-11 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882845', 'tblTempUsageDetail_20' ) start [2025-04-11 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882845', 'tblTempUsageDetail_20' ) end [2025-04-11 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:58:23] Production.INFO: ==19831== Releasing lock... [2025-04-11 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 04:59:05 [end_date_ymd] => 2025-04-11 07:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 04:59:05' and `end` < '2025-04-11 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-04-11 07:59:18] Production.INFO: count ==147 [2025-04-11 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 04:59:05 - End Time 2025-04-11 07:59:05 [2025-04-11 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882850', 'tblTempUsageDetail_20' ) start [2025-04-11 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882850', 'tblTempUsageDetail_20' ) end [2025-04-11 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882850', 'tblTempVendorCDR_20' ) start [2025-04-11 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882850', 'tblTempVendorCDR_20' ) end [2025-04-11 07:59:18] Production.INFO: ProcessCDR(1,14882850,1,1,2) [2025-04-11 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882850', 'tblTempUsageDetail_20' ) start [2025-04-11 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882850', 'tblTempUsageDetail_20' ) end [2025-04-11 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 07:59:22] Production.INFO: ==19909== Releasing lock... [2025-04-11 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 07:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:00:06 [end_date_ymd] => 2025-04-11 08:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:00:06' and `end` < '2025-04-11 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-04-11 08:00:19] Production.INFO: count ==155 [2025-04-11 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:00:06 - End Time 2025-04-11 08:00:06 [2025-04-11 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882856', 'tblTempUsageDetail_20' ) start [2025-04-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882856', 'tblTempUsageDetail_20' ) end [2025-04-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882856', 'tblTempVendorCDR_20' ) start [2025-04-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882856', 'tblTempVendorCDR_20' ) end [2025-04-11 08:00:19] Production.INFO: ProcessCDR(1,14882856,1,1,2) [2025-04-11 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882856', 'tblTempUsageDetail_20' ) start [2025-04-11 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882856', 'tblTempUsageDetail_20' ) end [2025-04-11 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:00:23] Production.INFO: ==19990== Releasing lock... [2025-04-11 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:01:04 [end_date_ymd] => 2025-04-11 08:01:04 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:01:04' and `end` < '2025-04-11 08: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-04-11 08:01:17] Production.INFO: count ==157 [2025-04-11 08:01:17] Production.ERROR: pbx CDR StartTime 2025-04-11 05:01:04 - End Time 2025-04-11 08:01:04 [2025-04-11 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882861', 'tblTempUsageDetail_20' ) start [2025-04-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882861', 'tblTempUsageDetail_20' ) end [2025-04-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882861', 'tblTempVendorCDR_20' ) start [2025-04-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882861', 'tblTempVendorCDR_20' ) end [2025-04-11 08:01:17] Production.INFO: ProcessCDR(1,14882861,1,1,2) [2025-04-11 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882861', 'tblTempUsageDetail_20' ) start [2025-04-11 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882861', 'tblTempUsageDetail_20' ) end [2025-04-11 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:01:21] Production.INFO: ==20074== Releasing lock... [2025-04-11 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:02:05 [end_date_ymd] => 2025-04-11 08:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:02:05' and `end` < '2025-04-11 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-04-11 08:02:18] Production.INFO: count ==164 [2025-04-11 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:02:05 - End Time 2025-04-11 08:02:05 [2025-04-11 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882866', 'tblTempUsageDetail_20' ) start [2025-04-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882866', 'tblTempUsageDetail_20' ) end [2025-04-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882866', 'tblTempVendorCDR_20' ) start [2025-04-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882866', 'tblTempVendorCDR_20' ) end [2025-04-11 08:02:18] Production.INFO: ProcessCDR(1,14882866,1,1,2) [2025-04-11 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882866', 'tblTempUsageDetail_20' ) start [2025-04-11 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882866', 'tblTempUsageDetail_20' ) end [2025-04-11 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:02:22] Production.INFO: ==20144== Releasing lock... [2025-04-11 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:03:05 [end_date_ymd] => 2025-04-11 08:03:05 [RateCDR] => 1 ) [2025-04-11 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:03:05' and `end` < '2025-04-11 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:03:18] Production.INFO: count ==166 [2025-04-11 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:03:05 - End Time 2025-04-11 08:03:05 [2025-04-11 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882871', 'tblTempUsageDetail_20' ) start [2025-04-11 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882871', 'tblTempUsageDetail_20' ) end [2025-04-11 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882871', 'tblTempVendorCDR_20' ) start [2025-04-11 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882871', 'tblTempVendorCDR_20' ) end [2025-04-11 08:03:18] Production.INFO: ProcessCDR(1,14882871,1,1,2) [2025-04-11 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882871', 'tblTempUsageDetail_20' ) start [2025-04-11 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882871', 'tblTempUsageDetail_20' ) end [2025-04-11 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:03:21] Production.INFO: ==20215== Releasing lock... [2025-04-11 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:04:05 [end_date_ymd] => 2025-04-11 08:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:04:05' and `end` < '2025-04-11 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-04-11 08:04:18] Production.INFO: count ==166 [2025-04-11 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:04:05 - End Time 2025-04-11 08:04:05 [2025-04-11 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882876', 'tblTempUsageDetail_20' ) start [2025-04-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882876', 'tblTempUsageDetail_20' ) end [2025-04-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882876', 'tblTempVendorCDR_20' ) start [2025-04-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882876', 'tblTempVendorCDR_20' ) end [2025-04-11 08:04:18] Production.INFO: ProcessCDR(1,14882876,1,1,2) [2025-04-11 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882876', 'tblTempUsageDetail_20' ) start [2025-04-11 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882876', 'tblTempUsageDetail_20' ) end [2025-04-11 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:04:22] Production.INFO: ==20286== Releasing lock... [2025-04-11 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:05:05 [end_date_ymd] => 2025-04-11 08:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:05:05' and `end` < '2025-04-11 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-04-11 08:05:18] Production.INFO: count ==171 [2025-04-11 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:05:05 - End Time 2025-04-11 08:05:05 [2025-04-11 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882881', 'tblTempUsageDetail_20' ) start [2025-04-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882881', 'tblTempUsageDetail_20' ) end [2025-04-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882881', 'tblTempVendorCDR_20' ) start [2025-04-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882881', 'tblTempVendorCDR_20' ) end [2025-04-11 08:05:18] Production.INFO: ProcessCDR(1,14882881,1,1,2) [2025-04-11 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882881', 'tblTempUsageDetail_20' ) start [2025-04-11 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882881', 'tblTempUsageDetail_20' ) end [2025-04-11 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:05:21] Production.INFO: ==20360== Releasing lock... [2025-04-11 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:06:05 [end_date_ymd] => 2025-04-11 08:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:06:05' and `end` < '2025-04-11 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-04-11 08:06:18] Production.INFO: count ==173 [2025-04-11 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:06:05 - End Time 2025-04-11 08:06:05 [2025-04-11 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882886', 'tblTempUsageDetail_20' ) start [2025-04-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882886', 'tblTempUsageDetail_20' ) end [2025-04-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882886', 'tblTempVendorCDR_20' ) start [2025-04-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882886', 'tblTempVendorCDR_20' ) end [2025-04-11 08:06:18] Production.INFO: ProcessCDR(1,14882886,1,1,2) [2025-04-11 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882886', 'tblTempUsageDetail_20' ) start [2025-04-11 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882886', 'tblTempUsageDetail_20' ) end [2025-04-11 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:06:23] Production.INFO: ==20438== Releasing lock... [2025-04-11 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:06:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:07:04 [end_date_ymd] => 2025-04-11 08:07:04 [RateCDR] => 1 ) [2025-04-11 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:07:04' and `end` < '2025-04-11 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:07:17] Production.INFO: count ==173 [2025-04-11 08:07:17] Production.ERROR: pbx CDR StartTime 2025-04-11 05:07:04 - End Time 2025-04-11 08:07:04 [2025-04-11 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882891', 'tblTempUsageDetail_20' ) start [2025-04-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882891', 'tblTempUsageDetail_20' ) end [2025-04-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882891', 'tblTempVendorCDR_20' ) start [2025-04-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882891', 'tblTempVendorCDR_20' ) end [2025-04-11 08:07:17] Production.INFO: ProcessCDR(1,14882891,1,1,2) [2025-04-11 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882891', 'tblTempUsageDetail_20' ) start [2025-04-11 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882891', 'tblTempUsageDetail_20' ) end [2025-04-11 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:07:21] Production.INFO: ==20507== Releasing lock... [2025-04-11 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:08:06 [end_date_ymd] => 2025-04-11 08:08:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:08:06' and `end` < '2025-04-11 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-04-11 08:08:19] Production.INFO: count ==177 [2025-04-11 08:08:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:08:06 - End Time 2025-04-11 08:08:06 [2025-04-11 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882896', 'tblTempUsageDetail_20' ) start [2025-04-11 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882896', 'tblTempUsageDetail_20' ) end [2025-04-11 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882896', 'tblTempVendorCDR_20' ) start [2025-04-11 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882896', 'tblTempVendorCDR_20' ) end [2025-04-11 08:08:19] Production.INFO: ProcessCDR(1,14882896,1,1,2) [2025-04-11 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882896', 'tblTempUsageDetail_20' ) start [2025-04-11 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882896', 'tblTempUsageDetail_20' ) end [2025-04-11 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:08:22] Production.INFO: ==20579== Releasing lock... [2025-04-11 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:09:05 [end_date_ymd] => 2025-04-11 08:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:09:05' and `end` < '2025-04-11 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-04-11 08:09:17] Production.INFO: count ==182 [2025-04-11 08:09:17] Production.ERROR: pbx CDR StartTime 2025-04-11 05:09:05 - End Time 2025-04-11 08:09:05 [2025-04-11 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882901', 'tblTempUsageDetail_20' ) start [2025-04-11 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882901', 'tblTempUsageDetail_20' ) end [2025-04-11 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882901', 'tblTempVendorCDR_20' ) start [2025-04-11 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882901', 'tblTempVendorCDR_20' ) end [2025-04-11 08:09:17] Production.INFO: ProcessCDR(1,14882901,1,1,2) [2025-04-11 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882901', 'tblTempUsageDetail_20' ) start [2025-04-11 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882901', 'tblTempUsageDetail_20' ) end [2025-04-11 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:09:21] Production.INFO: ==20686== Releasing lock... [2025-04-11 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-11 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:10:06 [end_date_ymd] => 2025-04-11 08:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:10:06' and `end` < '2025-04-11 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-04-11 08:10:19] Production.INFO: count ==198 [2025-04-11 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:10:06 - End Time 2025-04-11 08:10:06 [2025-04-11 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882907', 'tblTempUsageDetail_20' ) start [2025-04-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882907', 'tblTempUsageDetail_20' ) end [2025-04-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882907', 'tblTempVendorCDR_20' ) start [2025-04-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882907', 'tblTempVendorCDR_20' ) end [2025-04-11 08:10:19] Production.INFO: ProcessCDR(1,14882907,1,1,2) [2025-04-11 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882907', 'tblTempUsageDetail_20' ) start [2025-04-11 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882907', 'tblTempUsageDetail_20' ) end [2025-04-11 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:10:24] Production.INFO: ==20759== Releasing lock... [2025-04-11 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:10:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:11:05 [end_date_ymd] => 2025-04-11 08:11:05 [RateCDR] => 1 ) [2025-04-11 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:11:05' and `end` < '2025-04-11 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:11:17] Production.INFO: count ==212 [2025-04-11 08:11:17] Production.ERROR: pbx CDR StartTime 2025-04-11 05:11:05 - End Time 2025-04-11 08:11:05 [2025-04-11 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882912', 'tblTempUsageDetail_20' ) start [2025-04-11 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882912', 'tblTempUsageDetail_20' ) end [2025-04-11 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882912', 'tblTempVendorCDR_20' ) start [2025-04-11 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882912', 'tblTempVendorCDR_20' ) end [2025-04-11 08:11:17] Production.INFO: ProcessCDR(1,14882912,1,1,2) [2025-04-11 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882912', 'tblTempUsageDetail_20' ) start [2025-04-11 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882912', 'tblTempUsageDetail_20' ) end [2025-04-11 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:11:21] Production.INFO: ==20835== Releasing lock... [2025-04-11 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:11:21] Production.INFO: 30 MB #Memory Used# [2025-04-11 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:12:05 [end_date_ymd] => 2025-04-11 08:12:05 [RateCDR] => 1 ) [2025-04-11 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:12:05' and `end` < '2025-04-11 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:12:18] Production.INFO: count ==217 [2025-04-11 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:12:05 - End Time 2025-04-11 08:12:05 [2025-04-11 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882917', 'tblTempUsageDetail_20' ) start [2025-04-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882917', 'tblTempUsageDetail_20' ) end [2025-04-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882917', 'tblTempVendorCDR_20' ) start [2025-04-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882917', 'tblTempVendorCDR_20' ) end [2025-04-11 08:12:18] Production.INFO: ProcessCDR(1,14882917,1,1,2) [2025-04-11 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882917', 'tblTempUsageDetail_20' ) start [2025-04-11 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882917', 'tblTempUsageDetail_20' ) end [2025-04-11 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:12:22] Production.INFO: ==20909== Releasing lock... [2025-04-11 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:13:04 [end_date_ymd] => 2025-04-11 08:13:04 [RateCDR] => 1 ) [2025-04-11 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:13:04' and `end` < '2025-04-11 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:13:17] Production.INFO: count ==219 [2025-04-11 08:13:17] Production.ERROR: pbx CDR StartTime 2025-04-11 05:13:04 - End Time 2025-04-11 08:13:04 [2025-04-11 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882922', 'tblTempUsageDetail_20' ) start [2025-04-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882922', 'tblTempUsageDetail_20' ) end [2025-04-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882922', 'tblTempVendorCDR_20' ) start [2025-04-11 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882922', 'tblTempVendorCDR_20' ) end [2025-04-11 08:13:17] Production.INFO: ProcessCDR(1,14882922,1,1,2) [2025-04-11 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882922', 'tblTempUsageDetail_20' ) start [2025-04-11 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882922', 'tblTempUsageDetail_20' ) end [2025-04-11 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:13:23] Production.INFO: ==20985== Releasing lock... [2025-04-11 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:13:23] Production.INFO: 30 MB #Memory Used# [2025-04-11 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:14:05 [end_date_ymd] => 2025-04-11 08:14:05 [RateCDR] => 1 ) [2025-04-11 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:14:05' and `end` < '2025-04-11 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:14:18] Production.INFO: count ==219 [2025-04-11 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:14:05 - End Time 2025-04-11 08:14:05 [2025-04-11 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882927', 'tblTempUsageDetail_20' ) start [2025-04-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882927', 'tblTempUsageDetail_20' ) end [2025-04-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882927', 'tblTempVendorCDR_20' ) start [2025-04-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882927', 'tblTempVendorCDR_20' ) end [2025-04-11 08:14:18] Production.INFO: ProcessCDR(1,14882927,1,1,2) [2025-04-11 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882927', 'tblTempUsageDetail_20' ) start [2025-04-11 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882927', 'tblTempUsageDetail_20' ) end [2025-04-11 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:14:22] Production.INFO: ==21061== Releasing lock... [2025-04-11 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:14:22] Production.INFO: 30 MB #Memory Used# [2025-04-11 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:15:05 [end_date_ymd] => 2025-04-11 08:15:05 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:15:05' and `end` < '2025-04-11 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-04-11 08:15:18] Production.INFO: count ==226 [2025-04-11 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:15:05 - End Time 2025-04-11 08:15:05 [2025-04-11 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882932', 'tblTempUsageDetail_20' ) start [2025-04-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882932', 'tblTempUsageDetail_20' ) end [2025-04-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882932', 'tblTempVendorCDR_20' ) start [2025-04-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882932', 'tblTempVendorCDR_20' ) end [2025-04-11 08:15:18] Production.INFO: ProcessCDR(1,14882932,1,1,2) [2025-04-11 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882932', 'tblTempUsageDetail_20' ) start [2025-04-11 08:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882932', 'tblTempUsageDetail_20' ) end [2025-04-11 08:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:15:24] Production.INFO: ==21133== Releasing lock... [2025-04-11 08:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:15:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-11 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:16:05 [end_date_ymd] => 2025-04-11 08:16:05 [RateCDR] => 1 ) [2025-04-11 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:16:05' and `end` < '2025-04-11 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:16:18] Production.INFO: count ==227 [2025-04-11 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:16:05 - End Time 2025-04-11 08:16:05 [2025-04-11 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882937', 'tblTempUsageDetail_20' ) start [2025-04-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882937', 'tblTempUsageDetail_20' ) end [2025-04-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882937', 'tblTempVendorCDR_20' ) start [2025-04-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882937', 'tblTempVendorCDR_20' ) end [2025-04-11 08:16:18] Production.INFO: ProcessCDR(1,14882937,1,1,2) [2025-04-11 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882937', 'tblTempUsageDetail_20' ) start [2025-04-11 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882937', 'tblTempUsageDetail_20' ) end [2025-04-11 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:16:23] Production.INFO: ==21204== Releasing lock... [2025-04-11 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:16:23] Production.INFO: 30 MB #Memory Used# [2025-04-11 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:17:05 [end_date_ymd] => 2025-04-11 08:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:17:05' and `end` < '2025-04-11 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-04-11 08:17:18] Production.INFO: count ==227 [2025-04-11 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:17:05 - End Time 2025-04-11 08:17:05 [2025-04-11 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882942', 'tblTempUsageDetail_20' ) start [2025-04-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882942', 'tblTempUsageDetail_20' ) end [2025-04-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882942', 'tblTempVendorCDR_20' ) start [2025-04-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882942', 'tblTempVendorCDR_20' ) end [2025-04-11 08:17:18] Production.INFO: ProcessCDR(1,14882942,1,1,2) [2025-04-11 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882942', 'tblTempUsageDetail_20' ) start [2025-04-11 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882942', 'tblTempUsageDetail_20' ) end [2025-04-11 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:17:21] Production.INFO: ==21276== Releasing lock... [2025-04-11 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:17:21] Production.INFO: 30 MB #Memory Used# [2025-04-11 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:18:06 [end_date_ymd] => 2025-04-11 08:18:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:18:06' and `end` < '2025-04-11 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-04-11 08:18:18] Production.INFO: count ==232 [2025-04-11 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:18:06 - End Time 2025-04-11 08:18:06 [2025-04-11 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882947', 'tblTempUsageDetail_20' ) start [2025-04-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882947', 'tblTempUsageDetail_20' ) end [2025-04-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882947', 'tblTempVendorCDR_20' ) start [2025-04-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882947', 'tblTempVendorCDR_20' ) end [2025-04-11 08:18:18] Production.INFO: ProcessCDR(1,14882947,1,1,2) [2025-04-11 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882947', 'tblTempUsageDetail_20' ) start [2025-04-11 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882947', 'tblTempUsageDetail_20' ) end [2025-04-11 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:18:22] Production.INFO: ==21351== Releasing lock... [2025-04-11 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-11 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:19:05 [end_date_ymd] => 2025-04-11 08:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:19:05' and `end` < '2025-04-11 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-04-11 08:19:18] Production.INFO: count ==251 [2025-04-11 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:19:05 - End Time 2025-04-11 08:19:05 [2025-04-11 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882952', 'tblTempUsageDetail_20' ) start [2025-04-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882952', 'tblTempUsageDetail_20' ) end [2025-04-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882952', 'tblTempVendorCDR_20' ) start [2025-04-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882952', 'tblTempVendorCDR_20' ) end [2025-04-11 08:19:18] Production.INFO: ProcessCDR(1,14882952,1,1,2) [2025-04-11 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882952', 'tblTempUsageDetail_20' ) start [2025-04-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882952', 'tblTempUsageDetail_20' ) end [2025-04-11 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:19:22] Production.INFO: ==21422== Releasing lock... [2025-04-11 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-11 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:20:06 [end_date_ymd] => 2025-04-11 08:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:20:06' and `end` < '2025-04-11 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-04-11 08:20:18] Production.INFO: count ==267 [2025-04-11 08:20:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:20:06 - End Time 2025-04-11 08:20:06 [2025-04-11 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882958', 'tblTempUsageDetail_20' ) start [2025-04-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882958', 'tblTempUsageDetail_20' ) end [2025-04-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882958', 'tblTempVendorCDR_20' ) start [2025-04-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882958', 'tblTempVendorCDR_20' ) end [2025-04-11 08:20:18] Production.INFO: ProcessCDR(1,14882958,1,1,2) [2025-04-11 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882958', 'tblTempUsageDetail_20' ) start [2025-04-11 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882958', 'tblTempUsageDetail_20' ) end [2025-04-11 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:20:24] Production.INFO: ==21506== Releasing lock... [2025-04-11 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:20:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-11 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:21:06 [end_date_ymd] => 2025-04-11 08:21:06 [RateCDR] => 1 ) [2025-04-11 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:21:06' and `end` < '2025-04-11 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:21:19] Production.INFO: count ==296 [2025-04-11 08:21:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:21:06 - End Time 2025-04-11 08:21:06 [2025-04-11 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882963', 'tblTempUsageDetail_20' ) start [2025-04-11 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882963', 'tblTempUsageDetail_20' ) end [2025-04-11 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882963', 'tblTempVendorCDR_20' ) start [2025-04-11 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882963', 'tblTempVendorCDR_20' ) end [2025-04-11 08:21:19] Production.INFO: ProcessCDR(1,14882963,1,1,2) [2025-04-11 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882963', 'tblTempUsageDetail_20' ) start [2025-04-11 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882963', 'tblTempUsageDetail_20' ) end [2025-04-11 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:21:24] Production.INFO: ==21580== Releasing lock... [2025-04-11 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:21:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-11 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:22:06 [end_date_ymd] => 2025-04-11 08:22:06 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:22:06' and `end` < '2025-04-11 08: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-04-11 08:22:18] Production.INFO: count ==303 [2025-04-11 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:22:06 - End Time 2025-04-11 08:22:06 [2025-04-11 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882968', 'tblTempUsageDetail_20' ) start [2025-04-11 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882968', 'tblTempUsageDetail_20' ) end [2025-04-11 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882968', 'tblTempVendorCDR_20' ) start [2025-04-11 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882968', 'tblTempVendorCDR_20' ) end [2025-04-11 08:22:18] Production.INFO: ProcessCDR(1,14882968,1,1,2) [2025-04-11 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882968', 'tblTempUsageDetail_20' ) start [2025-04-11 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882968', 'tblTempUsageDetail_20' ) end [2025-04-11 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:22:23] Production.INFO: ==21651== Releasing lock... [2025-04-11 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:22:23] Production.INFO: 31 MB #Memory Used# [2025-04-11 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:23:06 [end_date_ymd] => 2025-04-11 08:23:06 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:23:06' and `end` < '2025-04-11 08: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-04-11 08:23:19] Production.INFO: count ==303 [2025-04-11 08:23:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:23:06 - End Time 2025-04-11 08:23:06 [2025-04-11 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882973', 'tblTempUsageDetail_20' ) start [2025-04-11 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882973', 'tblTempUsageDetail_20' ) end [2025-04-11 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882973', 'tblTempVendorCDR_20' ) start [2025-04-11 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882973', 'tblTempVendorCDR_20' ) end [2025-04-11 08:23:19] Production.INFO: ProcessCDR(1,14882973,1,1,2) [2025-04-11 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882973', 'tblTempUsageDetail_20' ) start [2025-04-11 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882973', 'tblTempUsageDetail_20' ) end [2025-04-11 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:23:23] Production.INFO: ==21726== Releasing lock... [2025-04-11 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:23:23] Production.INFO: 31 MB #Memory Used# [2025-04-11 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:24:06 [end_date_ymd] => 2025-04-11 08:24:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:24:06' and `end` < '2025-04-11 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-04-11 08:24:18] Production.INFO: count ==309 [2025-04-11 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:24:06 - End Time 2025-04-11 08:24:06 [2025-04-11 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882978', 'tblTempUsageDetail_20' ) start [2025-04-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882978', 'tblTempUsageDetail_20' ) end [2025-04-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882978', 'tblTempVendorCDR_20' ) start [2025-04-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882978', 'tblTempVendorCDR_20' ) end [2025-04-11 08:24:18] Production.INFO: ProcessCDR(1,14882978,1,1,2) [2025-04-11 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882978', 'tblTempUsageDetail_20' ) start [2025-04-11 08:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882978', 'tblTempUsageDetail_20' ) end [2025-04-11 08:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:24:24] Production.INFO: ==21798== Releasing lock... [2025-04-11 08:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:24:24] Production.INFO: 31 MB #Memory Used# [2025-04-11 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:25:05 [end_date_ymd] => 2025-04-11 08:25:05 [RateCDR] => 1 ) [2025-04-11 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:25:05' and `end` < '2025-04-11 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:25:18] Production.INFO: count ==315 [2025-04-11 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:25:05 - End Time 2025-04-11 08:25:05 [2025-04-11 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882983', 'tblTempUsageDetail_20' ) start [2025-04-11 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882983', 'tblTempUsageDetail_20' ) end [2025-04-11 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882983', 'tblTempVendorCDR_20' ) start [2025-04-11 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882983', 'tblTempVendorCDR_20' ) end [2025-04-11 08:25:18] Production.INFO: ProcessCDR(1,14882983,1,1,2) [2025-04-11 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882983', 'tblTempUsageDetail_20' ) start [2025-04-11 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882983', 'tblTempUsageDetail_20' ) end [2025-04-11 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:25:23] Production.INFO: ==21909== Releasing lock... [2025-04-11 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:25:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-11 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:26:05 [end_date_ymd] => 2025-04-11 08:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:26:05' and `end` < '2025-04-11 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-04-11 08:26:18] Production.INFO: count ==320 [2025-04-11 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:26:05 - End Time 2025-04-11 08:26:05 [2025-04-11 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882988', 'tblTempUsageDetail_20' ) start [2025-04-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882988', 'tblTempUsageDetail_20' ) end [2025-04-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882988', 'tblTempVendorCDR_20' ) start [2025-04-11 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882988', 'tblTempVendorCDR_20' ) end [2025-04-11 08:26:18] Production.INFO: ProcessCDR(1,14882988,1,1,2) [2025-04-11 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882988', 'tblTempUsageDetail_20' ) start [2025-04-11 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882988', 'tblTempUsageDetail_20' ) end [2025-04-11 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:26:21] Production.INFO: ==21980== Releasing lock... [2025-04-11 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:26:21] Production.INFO: 31 MB #Memory Used# [2025-04-11 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:27:05 [end_date_ymd] => 2025-04-11 08:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:27:05' and `end` < '2025-04-11 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-04-11 08:27:18] Production.INFO: count ==321 [2025-04-11 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:27:05 - End Time 2025-04-11 08:27:05 [2025-04-11 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882993', 'tblTempUsageDetail_20' ) start [2025-04-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882993', 'tblTempUsageDetail_20' ) end [2025-04-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882993', 'tblTempVendorCDR_20' ) start [2025-04-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882993', 'tblTempVendorCDR_20' ) end [2025-04-11 08:27:18] Production.INFO: ProcessCDR(1,14882993,1,1,2) [2025-04-11 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882993', 'tblTempUsageDetail_20' ) start [2025-04-11 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882993', 'tblTempUsageDetail_20' ) end [2025-04-11 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:27:23] Production.INFO: ==22054== Releasing lock... [2025-04-11 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:27:23] Production.INFO: 31 MB #Memory Used# [2025-04-11 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:28:05 [end_date_ymd] => 2025-04-11 08:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:28:05' and `end` < '2025-04-11 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-04-11 08:28:18] Production.INFO: count ==327 [2025-04-11 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:28:05 - End Time 2025-04-11 08:28:05 [2025-04-11 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882998', 'tblTempUsageDetail_20' ) start [2025-04-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14882998', 'tblTempUsageDetail_20' ) end [2025-04-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882998', 'tblTempVendorCDR_20' ) start [2025-04-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14882998', 'tblTempVendorCDR_20' ) end [2025-04-11 08:28:18] Production.INFO: ProcessCDR(1,14882998,1,1,2) [2025-04-11 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14882998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14882998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14882998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14882998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882998', 'tblTempUsageDetail_20' ) start [2025-04-11 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14882998', 'tblTempUsageDetail_20' ) end [2025-04-11 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:28:23] Production.INFO: ==22130== Releasing lock... [2025-04-11 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:28:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-11 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:29:05 [end_date_ymd] => 2025-04-11 08:29:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:29:05' and `end` < '2025-04-11 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-04-11 08:29:18] Production.INFO: count ==328 [2025-04-11 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:29:05 - End Time 2025-04-11 08:29:05 [2025-04-11 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883003', 'tblTempUsageDetail_20' ) start [2025-04-11 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883003', 'tblTempUsageDetail_20' ) end [2025-04-11 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883003', 'tblTempVendorCDR_20' ) start [2025-04-11 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883003', 'tblTempVendorCDR_20' ) end [2025-04-11 08:29:18] Production.INFO: ProcessCDR(1,14883003,1,1,2) [2025-04-11 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883003', 'tblTempUsageDetail_20' ) start [2025-04-11 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883003', 'tblTempUsageDetail_20' ) end [2025-04-11 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:29:23] Production.INFO: ==22201== Releasing lock... [2025-04-11 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:29:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-11 08:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:30:07 [end_date_ymd] => 2025-04-11 08:30:07 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:30:07' and `end` < '2025-04-11 08: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-04-11 08:30:20] Production.INFO: count ==346 [2025-04-11 08:30:20] Production.ERROR: pbx CDR StartTime 2025-04-11 05:30:07 - End Time 2025-04-11 08:30:07 [2025-04-11 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883009', 'tblTempUsageDetail_20' ) start [2025-04-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883009', 'tblTempUsageDetail_20' ) end [2025-04-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883009', 'tblTempVendorCDR_20' ) start [2025-04-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883009', 'tblTempVendorCDR_20' ) end [2025-04-11 08:30:20] Production.INFO: ProcessCDR(1,14883009,1,1,2) [2025-04-11 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883009', 'tblTempUsageDetail_20' ) start [2025-04-11 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883009', 'tblTempUsageDetail_20' ) end [2025-04-11 08:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:30:25] Production.INFO: ==22277== Releasing lock... [2025-04-11 08:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:30:25] Production.INFO: 31 MB #Memory Used# [2025-04-11 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:31:05 [end_date_ymd] => 2025-04-11 08:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:31:05' and `end` < '2025-04-11 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-04-11 08:31:18] Production.INFO: count ==372 [2025-04-11 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:31:05 - End Time 2025-04-11 08:31:05 [2025-04-11 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883014', 'tblTempUsageDetail_20' ) start [2025-04-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883014', 'tblTempUsageDetail_20' ) end [2025-04-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883014', 'tblTempVendorCDR_20' ) start [2025-04-11 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883014', 'tblTempVendorCDR_20' ) end [2025-04-11 08:31:18] Production.INFO: ProcessCDR(1,14883014,1,1,2) [2025-04-11 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883014', 'tblTempUsageDetail_20' ) start [2025-04-11 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883014', 'tblTempUsageDetail_20' ) end [2025-04-11 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:31:21] Production.INFO: ==22349== Releasing lock... [2025-04-11 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-11 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:32:06 [end_date_ymd] => 2025-04-11 08:32:06 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:32:06' and `end` < '2025-04-11 08: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-04-11 08:32:19] Production.INFO: count ==385 [2025-04-11 08:32:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:32:06 - End Time 2025-04-11 08:32:06 [2025-04-11 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883019', 'tblTempUsageDetail_20' ) start [2025-04-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883019', 'tblTempUsageDetail_20' ) end [2025-04-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883019', 'tblTempVendorCDR_20' ) start [2025-04-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883019', 'tblTempVendorCDR_20' ) end [2025-04-11 08:32:19] Production.INFO: ProcessCDR(1,14883019,1,1,2) [2025-04-11 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883019', 'tblTempUsageDetail_20' ) start [2025-04-11 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883019', 'tblTempUsageDetail_20' ) end [2025-04-11 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:32:24] Production.INFO: ==22422== Releasing lock... [2025-04-11 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:32:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-11 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:33:05 [end_date_ymd] => 2025-04-11 08:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:33:05' and `end` < '2025-04-11 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-04-11 08:33:18] Production.INFO: count ==385 [2025-04-11 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:33:05 - End Time 2025-04-11 08:33:05 [2025-04-11 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883024', 'tblTempUsageDetail_20' ) start [2025-04-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883024', 'tblTempUsageDetail_20' ) end [2025-04-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883024', 'tblTempVendorCDR_20' ) start [2025-04-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883024', 'tblTempVendorCDR_20' ) end [2025-04-11 08:33:18] Production.INFO: ProcessCDR(1,14883024,1,1,2) [2025-04-11 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883024', 'tblTempUsageDetail_20' ) start [2025-04-11 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883024', 'tblTempUsageDetail_20' ) end [2025-04-11 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:33:21] Production.INFO: ==22492== Releasing lock... [2025-04-11 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-11 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:34:06 [end_date_ymd] => 2025-04-11 08:34:06 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:34:06' and `end` < '2025-04-11 08: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-04-11 08:34:19] Production.INFO: count ==385 [2025-04-11 08:34:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:34:06 - End Time 2025-04-11 08:34:06 [2025-04-11 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883029', 'tblTempUsageDetail_20' ) start [2025-04-11 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883029', 'tblTempUsageDetail_20' ) end [2025-04-11 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883029', 'tblTempVendorCDR_20' ) start [2025-04-11 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883029', 'tblTempVendorCDR_20' ) end [2025-04-11 08:34:19] Production.INFO: ProcessCDR(1,14883029,1,1,2) [2025-04-11 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883029', 'tblTempUsageDetail_20' ) start [2025-04-11 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883029', 'tblTempUsageDetail_20' ) end [2025-04-11 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:34:22] Production.INFO: ==22562== Releasing lock... [2025-04-11 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-11 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:35:05 [end_date_ymd] => 2025-04-11 08:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:35:05' and `end` < '2025-04-11 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-04-11 08:35:18] Production.INFO: count ==397 [2025-04-11 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:35:05 - End Time 2025-04-11 08:35:05 [2025-04-11 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883034', 'tblTempUsageDetail_20' ) start [2025-04-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883034', 'tblTempUsageDetail_20' ) end [2025-04-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883034', 'tblTempVendorCDR_20' ) start [2025-04-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883034', 'tblTempVendorCDR_20' ) end [2025-04-11 08:35:18] Production.INFO: ProcessCDR(1,14883034,1,1,2) [2025-04-11 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883034', 'tblTempUsageDetail_20' ) start [2025-04-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883034', 'tblTempUsageDetail_20' ) end [2025-04-11 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:35:21] Production.INFO: ==22637== Releasing lock... [2025-04-11 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-11 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:36:06 [end_date_ymd] => 2025-04-11 08:36:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:36:06' and `end` < '2025-04-11 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-04-11 08:36:19] Production.INFO: count ==403 [2025-04-11 08:36:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:36:06 - End Time 2025-04-11 08:36:06 [2025-04-11 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883039', 'tblTempUsageDetail_20' ) start [2025-04-11 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883039', 'tblTempUsageDetail_20' ) end [2025-04-11 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883039', 'tblTempVendorCDR_20' ) start [2025-04-11 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883039', 'tblTempVendorCDR_20' ) end [2025-04-11 08:36:19] Production.INFO: ProcessCDR(1,14883039,1,1,2) [2025-04-11 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883039', 'tblTempUsageDetail_20' ) start [2025-04-11 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883039', 'tblTempUsageDetail_20' ) end [2025-04-11 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:36:22] Production.INFO: ==22710== Releasing lock... [2025-04-11 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:36:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-11 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:37:05 [end_date_ymd] => 2025-04-11 08:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:37:05' and `end` < '2025-04-11 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-04-11 08:37:18] Production.INFO: count ==413 [2025-04-11 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:37:05 - End Time 2025-04-11 08:37:05 [2025-04-11 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883044', 'tblTempUsageDetail_20' ) start [2025-04-11 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883044', 'tblTempUsageDetail_20' ) end [2025-04-11 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883044', 'tblTempVendorCDR_20' ) start [2025-04-11 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883044', 'tblTempVendorCDR_20' ) end [2025-04-11 08:37:18] Production.INFO: ProcessCDR(1,14883044,1,1,2) [2025-04-11 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883044', 'tblTempUsageDetail_20' ) start [2025-04-11 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883044', 'tblTempUsageDetail_20' ) end [2025-04-11 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:37:23] Production.INFO: ==22783== Releasing lock... [2025-04-11 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:37:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-11 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:38:06 [end_date_ymd] => 2025-04-11 08:38:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:38:06' and `end` < '2025-04-11 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-04-11 08:38:18] Production.INFO: count ==418 [2025-04-11 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:38:06 - End Time 2025-04-11 08:38:06 [2025-04-11 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883049', 'tblTempUsageDetail_20' ) start [2025-04-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883049', 'tblTempUsageDetail_20' ) end [2025-04-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883049', 'tblTempVendorCDR_20' ) start [2025-04-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883049', 'tblTempVendorCDR_20' ) end [2025-04-11 08:38:18] Production.INFO: ProcessCDR(1,14883049,1,1,2) [2025-04-11 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883049', 'tblTempUsageDetail_20' ) start [2025-04-11 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883049', 'tblTempUsageDetail_20' ) end [2025-04-11 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:38:24] Production.INFO: ==22855== Releasing lock... [2025-04-11 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:38:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-11 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:39:05 [end_date_ymd] => 2025-04-11 08:39:05 [RateCDR] => 1 ) [2025-04-11 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:39:05' and `end` < '2025-04-11 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:39:18] Production.INFO: count ==418 [2025-04-11 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:39:05 - End Time 2025-04-11 08:39:05 [2025-04-11 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883054', 'tblTempUsageDetail_20' ) start [2025-04-11 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883054', 'tblTempUsageDetail_20' ) end [2025-04-11 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883054', 'tblTempVendorCDR_20' ) start [2025-04-11 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883054', 'tblTempVendorCDR_20' ) end [2025-04-11 08:39:18] Production.INFO: ProcessCDR(1,14883054,1,1,2) [2025-04-11 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883054', 'tblTempUsageDetail_20' ) start [2025-04-11 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883054', 'tblTempUsageDetail_20' ) end [2025-04-11 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:39:22] Production.INFO: ==22924== Releasing lock... [2025-04-11 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:39:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-11 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:40:06 [end_date_ymd] => 2025-04-11 08:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:40:06' and `end` < '2025-04-11 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-04-11 08:40:19] Production.INFO: count ==429 [2025-04-11 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:40:06 - End Time 2025-04-11 08:40:06 [2025-04-11 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883060', 'tblTempUsageDetail_20' ) start [2025-04-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883060', 'tblTempUsageDetail_20' ) end [2025-04-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883060', 'tblTempVendorCDR_20' ) start [2025-04-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883060', 'tblTempVendorCDR_20' ) end [2025-04-11 08:40:19] Production.INFO: ProcessCDR(1,14883060,1,1,2) [2025-04-11 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883060', 'tblTempUsageDetail_20' ) start [2025-04-11 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883060', 'tblTempUsageDetail_20' ) end [2025-04-11 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:40:24] Production.INFO: ==23036== Releasing lock... [2025-04-11 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:40:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-11 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:41:05 [end_date_ymd] => 2025-04-11 08:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:41:05' and `end` < '2025-04-11 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-04-11 08:41:18] Production.INFO: count ==459 [2025-04-11 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:41:05 - End Time 2025-04-11 08:41:05 [2025-04-11 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883065', 'tblTempUsageDetail_20' ) start [2025-04-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883065', 'tblTempUsageDetail_20' ) end [2025-04-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883065', 'tblTempVendorCDR_20' ) start [2025-04-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883065', 'tblTempVendorCDR_20' ) end [2025-04-11 08:41:18] Production.INFO: ProcessCDR(1,14883065,1,1,2) [2025-04-11 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883065', 'tblTempUsageDetail_20' ) start [2025-04-11 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883065', 'tblTempUsageDetail_20' ) end [2025-04-11 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:41:22] Production.INFO: ==23114== Releasing lock... [2025-04-11 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:42:06 [end_date_ymd] => 2025-04-11 08:42:06 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:42:06' and `end` < '2025-04-11 08: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-04-11 08:42:19] Production.INFO: count ==465 [2025-04-11 08:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:42:06 - End Time 2025-04-11 08:42:06 [2025-04-11 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883070', 'tblTempUsageDetail_20' ) start [2025-04-11 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883070', 'tblTempUsageDetail_20' ) end [2025-04-11 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883070', 'tblTempVendorCDR_20' ) start [2025-04-11 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883070', 'tblTempVendorCDR_20' ) end [2025-04-11 08:42:19] Production.INFO: ProcessCDR(1,14883070,1,1,2) [2025-04-11 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883070', 'tblTempUsageDetail_20' ) start [2025-04-11 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883070', 'tblTempUsageDetail_20' ) end [2025-04-11 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:42:24] Production.INFO: ==23184== Releasing lock... [2025-04-11 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:42:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:43:05 [end_date_ymd] => 2025-04-11 08:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:43:05' and `end` < '2025-04-11 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-04-11 08:43:18] Production.INFO: count ==467 [2025-04-11 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:43:05 - End Time 2025-04-11 08:43:05 [2025-04-11 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883075', 'tblTempUsageDetail_20' ) start [2025-04-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883075', 'tblTempUsageDetail_20' ) end [2025-04-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883075', 'tblTempVendorCDR_20' ) start [2025-04-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883075', 'tblTempVendorCDR_20' ) end [2025-04-11 08:43:18] Production.INFO: ProcessCDR(1,14883075,1,1,2) [2025-04-11 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883075', 'tblTempUsageDetail_20' ) start [2025-04-11 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883075', 'tblTempUsageDetail_20' ) end [2025-04-11 08:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:43:24] Production.INFO: ==23258== Releasing lock... [2025-04-11 08:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:43:24] Production.INFO: 32 MB #Memory Used# [2025-04-11 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:44:05 [end_date_ymd] => 2025-04-11 08:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:44:05' and `end` < '2025-04-11 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-04-11 08:44:18] Production.INFO: count ==467 [2025-04-11 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:44:05 - End Time 2025-04-11 08:44:05 [2025-04-11 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883080', 'tblTempUsageDetail_20' ) start [2025-04-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883080', 'tblTempUsageDetail_20' ) end [2025-04-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883080', 'tblTempVendorCDR_20' ) start [2025-04-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883080', 'tblTempVendorCDR_20' ) end [2025-04-11 08:44:18] Production.INFO: ProcessCDR(1,14883080,1,1,2) [2025-04-11 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883080', 'tblTempUsageDetail_20' ) start [2025-04-11 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883080', 'tblTempUsageDetail_20' ) end [2025-04-11 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:44:22] Production.INFO: ==23329== Releasing lock... [2025-04-11 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:44:22] Production.INFO: 32 MB #Memory Used# [2025-04-11 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:45:05 [end_date_ymd] => 2025-04-11 08:45:05 [RateCDR] => 1 ) [2025-04-11 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:45:05' and `end` < '2025-04-11 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:45:18] Production.INFO: count ==468 [2025-04-11 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:45:05 - End Time 2025-04-11 08:45:05 [2025-04-11 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883085', 'tblTempUsageDetail_20' ) start [2025-04-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883085', 'tblTempUsageDetail_20' ) end [2025-04-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883085', 'tblTempVendorCDR_20' ) start [2025-04-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883085', 'tblTempVendorCDR_20' ) end [2025-04-11 08:45:18] Production.INFO: ProcessCDR(1,14883085,1,1,2) [2025-04-11 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883085', 'tblTempUsageDetail_20' ) start [2025-04-11 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883085', 'tblTempUsageDetail_20' ) end [2025-04-11 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:45:23] Production.INFO: ==23399== Releasing lock... [2025-04-11 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:45:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-11 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:46:05 [end_date_ymd] => 2025-04-11 08:46:05 [RateCDR] => 1 ) [2025-04-11 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:46:05' and `end` < '2025-04-11 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:46:18] Production.INFO: count ==473 [2025-04-11 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:46:05 - End Time 2025-04-11 08:46:05 [2025-04-11 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883090', 'tblTempUsageDetail_20' ) start [2025-04-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883090', 'tblTempUsageDetail_20' ) end [2025-04-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883090', 'tblTempVendorCDR_20' ) start [2025-04-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883090', 'tblTempVendorCDR_20' ) end [2025-04-11 08:46:18] Production.INFO: ProcessCDR(1,14883090,1,1,2) [2025-04-11 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883090', 'tblTempUsageDetail_20' ) start [2025-04-11 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883090', 'tblTempUsageDetail_20' ) end [2025-04-11 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:46:21] Production.INFO: ==23471== Releasing lock... [2025-04-11 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:46:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:47:05 [end_date_ymd] => 2025-04-11 08:47:05 [RateCDR] => 1 ) [2025-04-11 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:47:05' and `end` < '2025-04-11 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:47:18] Production.INFO: count ==474 [2025-04-11 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:47:05 - End Time 2025-04-11 08:47:05 [2025-04-11 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883095', 'tblTempUsageDetail_20' ) start [2025-04-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883095', 'tblTempUsageDetail_20' ) end [2025-04-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883095', 'tblTempVendorCDR_20' ) start [2025-04-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883095', 'tblTempVendorCDR_20' ) end [2025-04-11 08:47:18] Production.INFO: ProcessCDR(1,14883095,1,1,2) [2025-04-11 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883095', 'tblTempUsageDetail_20' ) start [2025-04-11 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883095', 'tblTempUsageDetail_20' ) end [2025-04-11 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:47:23] Production.INFO: ==23540== Releasing lock... [2025-04-11 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:47:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:48:05 [end_date_ymd] => 2025-04-11 08:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:48:05' and `end` < '2025-04-11 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-04-11 08:48:18] Production.INFO: count ==477 [2025-04-11 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:48:05 - End Time 2025-04-11 08:48:05 [2025-04-11 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883100', 'tblTempUsageDetail_20' ) start [2025-04-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883100', 'tblTempUsageDetail_20' ) end [2025-04-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883100', 'tblTempVendorCDR_20' ) start [2025-04-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883100', 'tblTempVendorCDR_20' ) end [2025-04-11 08:48:18] Production.INFO: ProcessCDR(1,14883100,1,1,2) [2025-04-11 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883100', 'tblTempUsageDetail_20' ) start [2025-04-11 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883100', 'tblTempUsageDetail_20' ) end [2025-04-11 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:48:23] Production.INFO: ==23614== Releasing lock... [2025-04-11 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:48:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:49:05 [end_date_ymd] => 2025-04-11 08:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:49:05' and `end` < '2025-04-11 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-04-11 08:49:18] Production.INFO: count ==479 [2025-04-11 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:49:05 - End Time 2025-04-11 08:49:05 [2025-04-11 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883105', 'tblTempUsageDetail_20' ) start [2025-04-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883105', 'tblTempUsageDetail_20' ) end [2025-04-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883105', 'tblTempVendorCDR_20' ) start [2025-04-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883105', 'tblTempVendorCDR_20' ) end [2025-04-11 08:49:18] Production.INFO: ProcessCDR(1,14883105,1,1,2) [2025-04-11 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883105', 'tblTempUsageDetail_20' ) start [2025-04-11 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883105', 'tblTempUsageDetail_20' ) end [2025-04-11 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:49:23] Production.INFO: ==23683== Releasing lock... [2025-04-11 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:49:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:50:06 [end_date_ymd] => 2025-04-11 08:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:50:06' and `end` < '2025-04-11 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-04-11 08:50:18] Production.INFO: count ==482 [2025-04-11 08:50:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:50:06 - End Time 2025-04-11 08:50:06 [2025-04-11 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883110', 'tblTempUsageDetail_20' ) start [2025-04-11 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883110', 'tblTempUsageDetail_20' ) end [2025-04-11 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883110', 'tblTempVendorCDR_20' ) start [2025-04-11 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883110', 'tblTempVendorCDR_20' ) end [2025-04-11 08:50:19] Production.INFO: ProcessCDR(1,14883110,1,1,2) [2025-04-11 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883110', 'tblTempUsageDetail_20' ) start [2025-04-11 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883110', 'tblTempUsageDetail_20' ) end [2025-04-11 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:50:22] Production.INFO: ==23759== Releasing lock... [2025-04-11 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:51:05 [end_date_ymd] => 2025-04-11 08:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:51:05' and `end` < '2025-04-11 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-04-11 08:51:18] Production.INFO: count ==510 [2025-04-11 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:51:05 - End Time 2025-04-11 08:51:05 [2025-04-11 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883116', 'tblTempUsageDetail_20' ) start [2025-04-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883116', 'tblTempUsageDetail_20' ) end [2025-04-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883116', 'tblTempVendorCDR_20' ) start [2025-04-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883116', 'tblTempVendorCDR_20' ) end [2025-04-11 08:51:18] Production.INFO: ProcessCDR(1,14883116,1,1,2) [2025-04-11 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883116', 'tblTempUsageDetail_20' ) start [2025-04-11 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883116', 'tblTempUsageDetail_20' ) end [2025-04-11 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:51:22] Production.INFO: ==23833== Releasing lock... [2025-04-11 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-11 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:52:05 [end_date_ymd] => 2025-04-11 08:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:52:05' and `end` < '2025-04-11 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-04-11 08:52:18] Production.INFO: count ==512 [2025-04-11 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:52:05 - End Time 2025-04-11 08:52:05 [2025-04-11 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883121', 'tblTempUsageDetail_20' ) start [2025-04-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883121', 'tblTempUsageDetail_20' ) end [2025-04-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883121', 'tblTempVendorCDR_20' ) start [2025-04-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883121', 'tblTempVendorCDR_20' ) end [2025-04-11 08:52:18] Production.INFO: ProcessCDR(1,14883121,1,1,2) [2025-04-11 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883121', 'tblTempUsageDetail_20' ) start [2025-04-11 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883121', 'tblTempUsageDetail_20' ) end [2025-04-11 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:52:23] Production.INFO: ==23904== Releasing lock... [2025-04-11 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:52:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-11 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:53:06 [end_date_ymd] => 2025-04-11 08:53:06 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:53:06' and `end` < '2025-04-11 08: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-04-11 08:53:19] Production.INFO: count ==515 [2025-04-11 08:53:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:53:06 - End Time 2025-04-11 08:53:06 [2025-04-11 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883126', 'tblTempUsageDetail_20' ) start [2025-04-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883126', 'tblTempUsageDetail_20' ) end [2025-04-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883126', 'tblTempVendorCDR_20' ) start [2025-04-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883126', 'tblTempVendorCDR_20' ) end [2025-04-11 08:53:19] Production.INFO: ProcessCDR(1,14883126,1,1,2) [2025-04-11 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883126', 'tblTempUsageDetail_20' ) start [2025-04-11 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883126', 'tblTempUsageDetail_20' ) end [2025-04-11 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:53:24] Production.INFO: ==23976== Releasing lock... [2025-04-11 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:53:24] Production.INFO: 33 MB #Memory Used# [2025-04-11 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:54:05 [end_date_ymd] => 2025-04-11 08:54:05 [RateCDR] => 1 ) [2025-04-11 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:54:05' and `end` < '2025-04-11 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:54:18] Production.INFO: count ==519 [2025-04-11 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:54:05 - End Time 2025-04-11 08:54:05 [2025-04-11 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883131', 'tblTempUsageDetail_20' ) start [2025-04-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883131', 'tblTempUsageDetail_20' ) end [2025-04-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883131', 'tblTempVendorCDR_20' ) start [2025-04-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883131', 'tblTempVendorCDR_20' ) end [2025-04-11 08:54:18] Production.INFO: ProcessCDR(1,14883131,1,1,2) [2025-04-11 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883131', 'tblTempUsageDetail_20' ) start [2025-04-11 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883131', 'tblTempUsageDetail_20' ) end [2025-04-11 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:54:21] Production.INFO: ==24046== Releasing lock... [2025-04-11 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:55:05 [end_date_ymd] => 2025-04-11 08:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:55:05' and `end` < '2025-04-11 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-04-11 08:55:18] Production.INFO: count ==531 [2025-04-11 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:55:05 - End Time 2025-04-11 08:55:05 [2025-04-11 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883136', 'tblTempUsageDetail_20' ) start [2025-04-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883136', 'tblTempUsageDetail_20' ) end [2025-04-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883136', 'tblTempVendorCDR_20' ) start [2025-04-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883136', 'tblTempVendorCDR_20' ) end [2025-04-11 08:55:19] Production.INFO: ProcessCDR(1,14883136,1,1,2) [2025-04-11 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883136', 'tblTempUsageDetail_20' ) start [2025-04-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883136', 'tblTempUsageDetail_20' ) end [2025-04-11 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:55:22] Production.INFO: ==24161== Releasing lock... [2025-04-11 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-11 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:56:05 [end_date_ymd] => 2025-04-11 08:56:05 [RateCDR] => 1 ) [2025-04-11 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 05:56:05' and `end` < '2025-04-11 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 08:56:18] Production.INFO: count ==541 [2025-04-11 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:56:05 - End Time 2025-04-11 08:56:05 [2025-04-11 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883138', 'tblTempUsageDetail_20' ) start [2025-04-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883138', 'tblTempUsageDetail_20' ) end [2025-04-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883138', 'tblTempVendorCDR_20' ) start [2025-04-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883138', 'tblTempVendorCDR_20' ) end [2025-04-11 08:56:18] Production.INFO: ProcessCDR(1,14883138,1,1,2) [2025-04-11 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883138', 'tblTempUsageDetail_20' ) start [2025-04-11 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883138', 'tblTempUsageDetail_20' ) end [2025-04-11 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:56:23] Production.INFO: ==24233== Releasing lock... [2025-04-11 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:56:23] Production.INFO: 33 MB #Memory Used# [2025-04-11 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:57:06 [end_date_ymd] => 2025-04-11 08:57:06 [RateCDR] => 1 ) [2025-04-11 08: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-04-11 05:57:06' and `end` < '2025-04-11 08: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-04-11 08:57:19] Production.INFO: count ==548 [2025-04-11 08:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 05:57:06 - End Time 2025-04-11 08:57:06 [2025-04-11 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883146', 'tblTempUsageDetail_20' ) start [2025-04-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883146', 'tblTempUsageDetail_20' ) end [2025-04-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883146', 'tblTempVendorCDR_20' ) start [2025-04-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883146', 'tblTempVendorCDR_20' ) end [2025-04-11 08:57:19] Production.INFO: ProcessCDR(1,14883146,1,1,2) [2025-04-11 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883146', 'tblTempUsageDetail_20' ) start [2025-04-11 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883146', 'tblTempUsageDetail_20' ) end [2025-04-11 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:57:24] Production.INFO: ==24308== Releasing lock... [2025-04-11 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:57:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-11 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:58:05 [end_date_ymd] => 2025-04-11 08:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:58:05' and `end` < '2025-04-11 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-04-11 08:58:18] Production.INFO: count ==554 [2025-04-11 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:58:05 - End Time 2025-04-11 08:58:05 [2025-04-11 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883151', 'tblTempUsageDetail_20' ) start [2025-04-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883151', 'tblTempUsageDetail_20' ) end [2025-04-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883151', 'tblTempVendorCDR_20' ) start [2025-04-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883151', 'tblTempVendorCDR_20' ) end [2025-04-11 08:58:18] Production.INFO: ProcessCDR(1,14883151,1,1,2) [2025-04-11 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883151', 'tblTempUsageDetail_20' ) start [2025-04-11 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883151', 'tblTempUsageDetail_20' ) end [2025-04-11 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:58:21] Production.INFO: ==24393== Releasing lock... [2025-04-11 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:58:21] Production.INFO: 33 MB #Memory Used# [2025-04-11 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 05:59:05 [end_date_ymd] => 2025-04-11 08:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 05:59:05' and `end` < '2025-04-11 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-04-11 08:59:18] Production.INFO: count ==567 [2025-04-11 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 05:59:05 - End Time 2025-04-11 08:59:05 [2025-04-11 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883156', 'tblTempUsageDetail_20' ) start [2025-04-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883156', 'tblTempUsageDetail_20' ) end [2025-04-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883156', 'tblTempVendorCDR_20' ) start [2025-04-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883156', 'tblTempVendorCDR_20' ) end [2025-04-11 08:59:18] Production.INFO: ProcessCDR(1,14883156,1,1,2) [2025-04-11 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883156', 'tblTempUsageDetail_20' ) start [2025-04-11 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883156', 'tblTempUsageDetail_20' ) end [2025-04-11 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 08:59:24] Production.INFO: ==24467== Releasing lock... [2025-04-11 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 08:59:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-11 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:00:05 [end_date_ymd] => 2025-04-11 09:00:05 [RateCDR] => 1 ) [2025-04-11 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:00:05' and `end` < '2025-04-11 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:00:18] Production.INFO: count ==577 [2025-04-11 09:00:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:00:05 - End Time 2025-04-11 09:00:05 [2025-04-11 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883161', 'tblTempUsageDetail_20' ) start [2025-04-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883161', 'tblTempUsageDetail_20' ) end [2025-04-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883161', 'tblTempVendorCDR_20' ) start [2025-04-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883161', 'tblTempVendorCDR_20' ) end [2025-04-11 09:00:18] Production.INFO: ProcessCDR(1,14883161,1,1,2) [2025-04-11 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883161', 'tblTempUsageDetail_20' ) start [2025-04-11 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883161', 'tblTempUsageDetail_20' ) end [2025-04-11 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:00:24] Production.INFO: ==24543== Releasing lock... [2025-04-11 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:00:24] Production.INFO: 33 MB #Memory Used# [2025-04-11 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:01:05 [end_date_ymd] => 2025-04-11 09:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:01:05' and `end` < '2025-04-11 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-04-11 09:01:18] Production.INFO: count ==587 [2025-04-11 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:01:05 - End Time 2025-04-11 09:01:05 [2025-04-11 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883167', 'tblTempUsageDetail_20' ) start [2025-04-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883167', 'tblTempUsageDetail_20' ) end [2025-04-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883167', 'tblTempVendorCDR_20' ) start [2025-04-11 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883167', 'tblTempVendorCDR_20' ) end [2025-04-11 09:01:18] Production.INFO: ProcessCDR(1,14883167,1,1,2) [2025-04-11 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883167', 'tblTempUsageDetail_20' ) start [2025-04-11 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883167', 'tblTempUsageDetail_20' ) end [2025-04-11 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:01:21] Production.INFO: ==24639== Releasing lock... [2025-04-11 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-11 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:02:05 [end_date_ymd] => 2025-04-11 09:02:05 [RateCDR] => 1 ) [2025-04-11 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:02:05' and `end` < '2025-04-11 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:02:17] Production.INFO: count ==594 [2025-04-11 09:02:17] Production.ERROR: pbx CDR StartTime 2025-04-11 06:02:05 - End Time 2025-04-11 09:02:05 [2025-04-11 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883172', 'tblTempUsageDetail_20' ) start [2025-04-11 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883172', 'tblTempUsageDetail_20' ) end [2025-04-11 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883172', 'tblTempVendorCDR_20' ) start [2025-04-11 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883172', 'tblTempVendorCDR_20' ) end [2025-04-11 09:02:17] Production.INFO: ProcessCDR(1,14883172,1,1,2) [2025-04-11 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883172', 'tblTempUsageDetail_20' ) start [2025-04-11 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883172', 'tblTempUsageDetail_20' ) end [2025-04-11 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:02:22] Production.INFO: ==24717== Releasing lock... [2025-04-11 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:02:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-11 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:03:06 [end_date_ymd] => 2025-04-11 09:03:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:03:06' and `end` < '2025-04-11 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-04-11 09:03:19] Production.INFO: count ==597 [2025-04-11 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:03:06 - End Time 2025-04-11 09:03:06 [2025-04-11 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883177', 'tblTempUsageDetail_20' ) start [2025-04-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883177', 'tblTempUsageDetail_20' ) end [2025-04-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883177', 'tblTempVendorCDR_20' ) start [2025-04-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883177', 'tblTempVendorCDR_20' ) end [2025-04-11 09:03:19] Production.INFO: ProcessCDR(1,14883177,1,1,2) [2025-04-11 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883177', 'tblTempUsageDetail_20' ) start [2025-04-11 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883177', 'tblTempUsageDetail_20' ) end [2025-04-11 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:03:24] Production.INFO: ==24797== Releasing lock... [2025-04-11 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:03:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-11 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:04:05 [end_date_ymd] => 2025-04-11 09:04:05 [RateCDR] => 1 ) [2025-04-11 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:04:05' and `end` < '2025-04-11 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:04:18] Production.INFO: count ==606 [2025-04-11 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:04:05 - End Time 2025-04-11 09:04:05 [2025-04-11 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883182', 'tblTempUsageDetail_20' ) start [2025-04-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883182', 'tblTempUsageDetail_20' ) end [2025-04-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883182', 'tblTempVendorCDR_20' ) start [2025-04-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883182', 'tblTempVendorCDR_20' ) end [2025-04-11 09:04:19] Production.INFO: ProcessCDR(1,14883182,1,1,2) [2025-04-11 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883182', 'tblTempUsageDetail_20' ) start [2025-04-11 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883182', 'tblTempUsageDetail_20' ) end [2025-04-11 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:04:23] Production.INFO: ==24878== Releasing lock... [2025-04-11 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:04:23] Production.INFO: 33 MB #Memory Used# [2025-04-11 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:05:05 [end_date_ymd] => 2025-04-11 09:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:05:05' and `end` < '2025-04-11 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-04-11 09:05:18] Production.INFO: count ==617 [2025-04-11 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:05:05 - End Time 2025-04-11 09:05:05 [2025-04-11 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883187', 'tblTempUsageDetail_20' ) start [2025-04-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883187', 'tblTempUsageDetail_20' ) end [2025-04-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883187', 'tblTempVendorCDR_20' ) start [2025-04-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883187', 'tblTempVendorCDR_20' ) end [2025-04-11 09:05:18] Production.INFO: ProcessCDR(1,14883187,1,1,2) [2025-04-11 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883187', 'tblTempUsageDetail_20' ) start [2025-04-11 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883187', 'tblTempUsageDetail_20' ) end [2025-04-11 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:05:23] Production.INFO: ==24958== Releasing lock... [2025-04-11 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:05:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-11 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:06:05 [end_date_ymd] => 2025-04-11 09:06:05 [RateCDR] => 1 ) [2025-04-11 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:06:05' and `end` < '2025-04-11 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:06:18] Production.INFO: count ==628 [2025-04-11 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:06:05 - End Time 2025-04-11 09:06:05 [2025-04-11 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883192', 'tblTempUsageDetail_20' ) start [2025-04-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883192', 'tblTempUsageDetail_20' ) end [2025-04-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883192', 'tblTempVendorCDR_20' ) start [2025-04-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883192', 'tblTempVendorCDR_20' ) end [2025-04-11 09:06:18] Production.INFO: ProcessCDR(1,14883192,1,1,2) [2025-04-11 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883192', 'tblTempUsageDetail_20' ) start [2025-04-11 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883192', 'tblTempUsageDetail_20' ) end [2025-04-11 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:06:22] Production.INFO: ==25037== Releasing lock... [2025-04-11 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-11 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:07:05 [end_date_ymd] => 2025-04-11 09:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:07:05' and `end` < '2025-04-11 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-04-11 09:07:18] Production.INFO: count ==629 [2025-04-11 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:07:05 - End Time 2025-04-11 09:07:05 [2025-04-11 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883197', 'tblTempUsageDetail_20' ) start [2025-04-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883197', 'tblTempUsageDetail_20' ) end [2025-04-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883197', 'tblTempVendorCDR_20' ) start [2025-04-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883197', 'tblTempVendorCDR_20' ) end [2025-04-11 09:07:18] Production.INFO: ProcessCDR(1,14883197,1,1,2) [2025-04-11 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883197', 'tblTempUsageDetail_20' ) start [2025-04-11 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883197', 'tblTempUsageDetail_20' ) end [2025-04-11 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:07:23] Production.INFO: ==25110== Releasing lock... [2025-04-11 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:07:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-11 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:08:05 [end_date_ymd] => 2025-04-11 09:08:05 [RateCDR] => 1 ) [2025-04-11 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:08:05' and `end` < '2025-04-11 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:08:18] Production.INFO: count ==647 [2025-04-11 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:08:05 - End Time 2025-04-11 09:08:05 [2025-04-11 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883202', 'tblTempUsageDetail_20' ) start [2025-04-11 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883202', 'tblTempUsageDetail_20' ) end [2025-04-11 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883202', 'tblTempVendorCDR_20' ) start [2025-04-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883202', 'tblTempVendorCDR_20' ) end [2025-04-11 09:08:19] Production.INFO: ProcessCDR(1,14883202,1,1,2) [2025-04-11 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883202', 'tblTempUsageDetail_20' ) start [2025-04-11 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883202', 'tblTempUsageDetail_20' ) end [2025-04-11 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:08:22] Production.INFO: ==25198== Releasing lock... [2025-04-11 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-11 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:09:05 [end_date_ymd] => 2025-04-11 09:09:05 [RateCDR] => 1 ) [2025-04-11 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:09:05' and `end` < '2025-04-11 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:09:18] Production.INFO: count ==664 [2025-04-11 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:09:05 - End Time 2025-04-11 09:09:05 [2025-04-11 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883207', 'tblTempUsageDetail_20' ) start [2025-04-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883207', 'tblTempUsageDetail_20' ) end [2025-04-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883207', 'tblTempVendorCDR_20' ) start [2025-04-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883207', 'tblTempVendorCDR_20' ) end [2025-04-11 09:09:18] Production.INFO: ProcessCDR(1,14883207,1,1,2) [2025-04-11 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883207', 'tblTempUsageDetail_20' ) start [2025-04-11 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883207', 'tblTempUsageDetail_20' ) end [2025-04-11 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:09:23] Production.INFO: ==25270== Releasing lock... [2025-04-11 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:09:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-11 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:10:06 [end_date_ymd] => 2025-04-11 09:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:10:06' and `end` < '2025-04-11 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-04-11 09:10:19] Production.INFO: count ==677 [2025-04-11 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:10:06 - End Time 2025-04-11 09:10:06 [2025-04-11 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883213', 'tblTempUsageDetail_20' ) start [2025-04-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883213', 'tblTempUsageDetail_20' ) end [2025-04-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883213', 'tblTempVendorCDR_20' ) start [2025-04-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883213', 'tblTempVendorCDR_20' ) end [2025-04-11 09:10:19] Production.INFO: ProcessCDR(1,14883213,1,1,2) [2025-04-11 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883213', 'tblTempUsageDetail_20' ) start [2025-04-11 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883213', 'tblTempUsageDetail_20' ) end [2025-04-11 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:10:25] Production.INFO: ==25343== Releasing lock... [2025-04-11 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:10:25] Production.INFO: 33.75 MB #Memory Used# [2025-04-11 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:11:05 [end_date_ymd] => 2025-04-11 09:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:11:05' and `end` < '2025-04-11 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-04-11 09:11:18] Production.INFO: count ==722 [2025-04-11 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:11:05 - End Time 2025-04-11 09:11:05 [2025-04-11 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883218', 'tblTempUsageDetail_20' ) start [2025-04-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883218', 'tblTempUsageDetail_20' ) end [2025-04-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883218', 'tblTempVendorCDR_20' ) start [2025-04-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883218', 'tblTempVendorCDR_20' ) end [2025-04-11 09:11:18] Production.INFO: ProcessCDR(1,14883218,1,1,2) [2025-04-11 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883218', 'tblTempUsageDetail_20' ) start [2025-04-11 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883218', 'tblTempUsageDetail_20' ) end [2025-04-11 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:11:23] Production.INFO: ==25454== Releasing lock... [2025-04-11 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:11:23] Production.INFO: 34 MB #Memory Used# [2025-04-11 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:12:05 [end_date_ymd] => 2025-04-11 09:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:12:05' and `end` < '2025-04-11 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-04-11 09:12:18] Production.INFO: count ==736 [2025-04-11 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:12:05 - End Time 2025-04-11 09:12:05 [2025-04-11 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883223', 'tblTempUsageDetail_20' ) start [2025-04-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883223', 'tblTempUsageDetail_20' ) end [2025-04-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883223', 'tblTempVendorCDR_20' ) start [2025-04-11 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883223', 'tblTempVendorCDR_20' ) end [2025-04-11 09:12:19] Production.INFO: ProcessCDR(1,14883223,1,1,2) [2025-04-11 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883223', 'tblTempUsageDetail_20' ) start [2025-04-11 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883223', 'tblTempUsageDetail_20' ) end [2025-04-11 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:12:24] Production.INFO: ==25524== Releasing lock... [2025-04-11 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:12:24] Production.INFO: 34 MB #Memory Used# [2025-04-11 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:13:05 [end_date_ymd] => 2025-04-11 09:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:13:05' and `end` < '2025-04-11 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-04-11 09:13:18] Production.INFO: count ==750 [2025-04-11 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:13:05 - End Time 2025-04-11 09:13:05 [2025-04-11 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883228', 'tblTempUsageDetail_20' ) start [2025-04-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883228', 'tblTempUsageDetail_20' ) end [2025-04-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883228', 'tblTempVendorCDR_20' ) start [2025-04-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883228', 'tblTempVendorCDR_20' ) end [2025-04-11 09:13:18] Production.INFO: ProcessCDR(1,14883228,1,1,2) [2025-04-11 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883228', 'tblTempUsageDetail_20' ) start [2025-04-11 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883228', 'tblTempUsageDetail_20' ) end [2025-04-11 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:13:24] Production.INFO: ==25600== Releasing lock... [2025-04-11 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:13:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-11 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:14:05 [end_date_ymd] => 2025-04-11 09:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:14:05' and `end` < '2025-04-11 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-04-11 09:14:18] Production.INFO: count ==754 [2025-04-11 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:14:05 - End Time 2025-04-11 09:14:05 [2025-04-11 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883233', 'tblTempUsageDetail_20' ) start [2025-04-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883233', 'tblTempUsageDetail_20' ) end [2025-04-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883233', 'tblTempVendorCDR_20' ) start [2025-04-11 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883233', 'tblTempVendorCDR_20' ) end [2025-04-11 09:14:18] Production.INFO: ProcessCDR(1,14883233,1,1,2) [2025-04-11 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883233', 'tblTempUsageDetail_20' ) start [2025-04-11 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883233', 'tblTempUsageDetail_20' ) end [2025-04-11 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:14:24] Production.INFO: ==25670== Releasing lock... [2025-04-11 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:14:24] Production.INFO: 34 MB #Memory Used# [2025-04-11 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:15:04 [end_date_ymd] => 2025-04-11 09:15:04 [RateCDR] => 1 ) [2025-04-11 09:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:15:04' and `end` < '2025-04-11 09:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:15:18] Production.INFO: count ==760 [2025-04-11 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:15:04 - End Time 2025-04-11 09:15:04 [2025-04-11 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883238', 'tblTempUsageDetail_20' ) start [2025-04-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883238', 'tblTempUsageDetail_20' ) end [2025-04-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883238', 'tblTempVendorCDR_20' ) start [2025-04-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883238', 'tblTempVendorCDR_20' ) end [2025-04-11 09:15:18] Production.INFO: ProcessCDR(1,14883238,1,1,2) [2025-04-11 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883238', 'tblTempUsageDetail_20' ) start [2025-04-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883238', 'tblTempUsageDetail_20' ) end [2025-04-11 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:15:23] Production.INFO: ==25742== Releasing lock... [2025-04-11 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:15:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-11 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:16:05 [end_date_ymd] => 2025-04-11 09:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:16:05' and `end` < '2025-04-11 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-04-11 09:16:18] Production.INFO: count ==767 [2025-04-11 09:16:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:16:05 - End Time 2025-04-11 09:16:05 [2025-04-11 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883243', 'tblTempUsageDetail_20' ) start [2025-04-11 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883243', 'tblTempUsageDetail_20' ) end [2025-04-11 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883243', 'tblTempVendorCDR_20' ) start [2025-04-11 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883243', 'tblTempVendorCDR_20' ) end [2025-04-11 09:16:19] Production.INFO: ProcessCDR(1,14883243,1,1,2) [2025-04-11 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883243', 'tblTempUsageDetail_20' ) start [2025-04-11 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883243', 'tblTempUsageDetail_20' ) end [2025-04-11 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:16:24] Production.INFO: ==25813== Releasing lock... [2025-04-11 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:16:24] Production.INFO: 34 MB #Memory Used# [2025-04-11 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:17:05 [end_date_ymd] => 2025-04-11 09:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:17:05' and `end` < '2025-04-11 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-04-11 09:17:18] Production.INFO: count ==770 [2025-04-11 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:17:05 - End Time 2025-04-11 09:17:05 [2025-04-11 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883248', 'tblTempUsageDetail_20' ) start [2025-04-11 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883248', 'tblTempUsageDetail_20' ) end [2025-04-11 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883248', 'tblTempVendorCDR_20' ) start [2025-04-11 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883248', 'tblTempVendorCDR_20' ) end [2025-04-11 09:17:19] Production.INFO: ProcessCDR(1,14883248,1,1,2) [2025-04-11 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883248', 'tblTempUsageDetail_20' ) start [2025-04-11 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883248', 'tblTempUsageDetail_20' ) end [2025-04-11 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:17:24] Production.INFO: ==25884== Releasing lock... [2025-04-11 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:17:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-11 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:18:05 [end_date_ymd] => 2025-04-11 09:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:18:05' and `end` < '2025-04-11 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-04-11 09:18:18] Production.INFO: count ==794 [2025-04-11 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:18:05 - End Time 2025-04-11 09:18:05 [2025-04-11 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883253', 'tblTempUsageDetail_20' ) start [2025-04-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883253', 'tblTempUsageDetail_20' ) end [2025-04-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883253', 'tblTempVendorCDR_20' ) start [2025-04-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883253', 'tblTempVendorCDR_20' ) end [2025-04-11 09:18:19] Production.INFO: ProcessCDR(1,14883253,1,1,2) [2025-04-11 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883253', 'tblTempUsageDetail_20' ) start [2025-04-11 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883253', 'tblTempUsageDetail_20' ) end [2025-04-11 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:18:24] Production.INFO: ==25965== Releasing lock... [2025-04-11 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:18:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-11 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:19:05 [end_date_ymd] => 2025-04-11 09:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:19:05' and `end` < '2025-04-11 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-04-11 09:19:18] Production.INFO: count ==799 [2025-04-11 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:19:05 - End Time 2025-04-11 09:19:05 [2025-04-11 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883258', 'tblTempUsageDetail_20' ) start [2025-04-11 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883258', 'tblTempUsageDetail_20' ) end [2025-04-11 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883258', 'tblTempVendorCDR_20' ) start [2025-04-11 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883258', 'tblTempVendorCDR_20' ) end [2025-04-11 09:19:19] Production.INFO: ProcessCDR(1,14883258,1,1,2) [2025-04-11 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883258', 'tblTempUsageDetail_20' ) start [2025-04-11 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883258', 'tblTempUsageDetail_20' ) end [2025-04-11 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:19:24] Production.INFO: ==26038== Releasing lock... [2025-04-11 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:19:24] Production.INFO: 34 MB #Memory Used# [2025-04-11 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:20:06 [end_date_ymd] => 2025-04-11 09:20:06 [RateCDR] => 1 ) [2025-04-11 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:20:06' and `end` < '2025-04-11 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:20:19] Production.INFO: count ==813 [2025-04-11 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:20:06 - End Time 2025-04-11 09:20:06 [2025-04-11 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883264', 'tblTempUsageDetail_20' ) start [2025-04-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883264', 'tblTempUsageDetail_20' ) end [2025-04-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883264', 'tblTempVendorCDR_20' ) start [2025-04-11 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883264', 'tblTempVendorCDR_20' ) end [2025-04-11 09:20:19] Production.INFO: ProcessCDR(1,14883264,1,1,2) [2025-04-11 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883264', 'tblTempUsageDetail_20' ) start [2025-04-11 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883264', 'tblTempUsageDetail_20' ) end [2025-04-11 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:20:22] Production.INFO: ==26118== Releasing lock... [2025-04-11 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-11 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:21:05 [end_date_ymd] => 2025-04-11 09:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:21:05' and `end` < '2025-04-11 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-04-11 09:21:18] Production.INFO: count ==872 [2025-04-11 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:21:05 - End Time 2025-04-11 09:21:05 [2025-04-11 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883269', 'tblTempUsageDetail_20' ) start [2025-04-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883269', 'tblTempUsageDetail_20' ) end [2025-04-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883269', 'tblTempVendorCDR_20' ) start [2025-04-11 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883269', 'tblTempVendorCDR_20' ) end [2025-04-11 09:21:18] Production.INFO: ProcessCDR(1,14883269,1,1,2) [2025-04-11 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883269', 'tblTempUsageDetail_20' ) start [2025-04-11 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883269', 'tblTempUsageDetail_20' ) end [2025-04-11 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:21:24] Production.INFO: ==26192== Releasing lock... [2025-04-11 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:21:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:22:05 [end_date_ymd] => 2025-04-11 09:22:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:22:05' and `end` < '2025-04-11 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-04-11 09:22:18] Production.INFO: count ==877 [2025-04-11 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:22:05 - End Time 2025-04-11 09:22:05 [2025-04-11 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883274', 'tblTempUsageDetail_20' ) start [2025-04-11 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883274', 'tblTempUsageDetail_20' ) end [2025-04-11 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883274', 'tblTempVendorCDR_20' ) start [2025-04-11 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883274', 'tblTempVendorCDR_20' ) end [2025-04-11 09:22:18] Production.INFO: ProcessCDR(1,14883274,1,1,2) [2025-04-11 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883274', 'tblTempUsageDetail_20' ) start [2025-04-11 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883274', 'tblTempUsageDetail_20' ) end [2025-04-11 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:22:23] Production.INFO: ==26267== Releasing lock... [2025-04-11 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:22:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-11 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:23:05 [end_date_ymd] => 2025-04-11 09:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:23:05' and `end` < '2025-04-11 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-04-11 09:23:18] Production.INFO: count ==889 [2025-04-11 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:23:05 - End Time 2025-04-11 09:23:05 [2025-04-11 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883279', 'tblTempUsageDetail_20' ) start [2025-04-11 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883279', 'tblTempUsageDetail_20' ) end [2025-04-11 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883279', 'tblTempVendorCDR_20' ) start [2025-04-11 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883279', 'tblTempVendorCDR_20' ) end [2025-04-11 09:23:18] Production.INFO: ProcessCDR(1,14883279,1,1,2) [2025-04-11 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883279', 'tblTempUsageDetail_20' ) start [2025-04-11 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883279', 'tblTempUsageDetail_20' ) end [2025-04-11 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:23:23] Production.INFO: ==26340== Releasing lock... [2025-04-11 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:23:23] Production.INFO: 35 MB #Memory Used# [2025-04-11 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:24:05 [end_date_ymd] => 2025-04-11 09:24:05 [RateCDR] => 1 ) [2025-04-11 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:24:05' and `end` < '2025-04-11 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:24:18] Production.INFO: count ==904 [2025-04-11 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:24:05 - End Time 2025-04-11 09:24:05 [2025-04-11 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883284', 'tblTempUsageDetail_20' ) start [2025-04-11 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883284', 'tblTempUsageDetail_20' ) end [2025-04-11 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883284', 'tblTempVendorCDR_20' ) start [2025-04-11 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883284', 'tblTempVendorCDR_20' ) end [2025-04-11 09:24:19] Production.INFO: ProcessCDR(1,14883284,1,1,2) [2025-04-11 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883284', 'tblTempUsageDetail_20' ) start [2025-04-11 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883284', 'tblTempUsageDetail_20' ) end [2025-04-11 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:24:24] Production.INFO: ==26411== Releasing lock... [2025-04-11 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:24:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-11 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:25:05 [end_date_ymd] => 2025-04-11 09:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:25:05' and `end` < '2025-04-11 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-04-11 09:25:18] Production.INFO: count ==915 [2025-04-11 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:25:05 - End Time 2025-04-11 09:25:05 [2025-04-11 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883289', 'tblTempUsageDetail_20' ) start [2025-04-11 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883289', 'tblTempUsageDetail_20' ) end [2025-04-11 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883289', 'tblTempVendorCDR_20' ) start [2025-04-11 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883289', 'tblTempVendorCDR_20' ) end [2025-04-11 09:25:19] Production.INFO: ProcessCDR(1,14883289,1,1,2) [2025-04-11 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883289', 'tblTempUsageDetail_20' ) start [2025-04-11 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883289', 'tblTempUsageDetail_20' ) end [2025-04-11 09:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:25:22] Production.INFO: ==26483== Releasing lock... [2025-04-11 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:25:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-11 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:26:05 [end_date_ymd] => 2025-04-11 09:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:26:05' and `end` < '2025-04-11 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-04-11 09:26:18] Production.INFO: count ==920 [2025-04-11 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:26:05 - End Time 2025-04-11 09:26:05 [2025-04-11 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883294', 'tblTempUsageDetail_20' ) start [2025-04-11 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883294', 'tblTempUsageDetail_20' ) end [2025-04-11 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883294', 'tblTempVendorCDR_20' ) start [2025-04-11 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883294', 'tblTempVendorCDR_20' ) end [2025-04-11 09:26:18] Production.INFO: ProcessCDR(1,14883294,1,1,2) [2025-04-11 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883294', 'tblTempUsageDetail_20' ) start [2025-04-11 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883294', 'tblTempUsageDetail_20' ) end [2025-04-11 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:26:22] Production.INFO: ==26591== Releasing lock... [2025-04-11 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:27:05 [end_date_ymd] => 2025-04-11 09:27:05 [RateCDR] => 1 ) [2025-04-11 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:27:05' and `end` < '2025-04-11 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:27:18] Production.INFO: count ==930 [2025-04-11 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:27:05 - End Time 2025-04-11 09:27:05 [2025-04-11 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883299', 'tblTempUsageDetail_20' ) start [2025-04-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883299', 'tblTempUsageDetail_20' ) end [2025-04-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883299', 'tblTempVendorCDR_20' ) start [2025-04-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883299', 'tblTempVendorCDR_20' ) end [2025-04-11 09:27:18] Production.INFO: ProcessCDR(1,14883299,1,1,2) [2025-04-11 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883299', 'tblTempUsageDetail_20' ) start [2025-04-11 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883299', 'tblTempUsageDetail_20' ) end [2025-04-11 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:27:24] Production.INFO: ==26664== Releasing lock... [2025-04-11 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:27:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-11 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:28:05 [end_date_ymd] => 2025-04-11 09:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:28:05' and `end` < '2025-04-11 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-04-11 09:28:18] Production.INFO: count ==938 [2025-04-11 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:28:05 - End Time 2025-04-11 09:28:05 [2025-04-11 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883304', 'tblTempUsageDetail_20' ) start [2025-04-11 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883304', 'tblTempUsageDetail_20' ) end [2025-04-11 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883304', 'tblTempVendorCDR_20' ) start [2025-04-11 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883304', 'tblTempVendorCDR_20' ) end [2025-04-11 09:28:19] Production.INFO: ProcessCDR(1,14883304,1,1,2) [2025-04-11 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883304', 'tblTempUsageDetail_20' ) start [2025-04-11 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883304', 'tblTempUsageDetail_20' ) end [2025-04-11 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:28:24] Production.INFO: ==26739== Releasing lock... [2025-04-11 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:28:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:29:05 [end_date_ymd] => 2025-04-11 09:29:05 [RateCDR] => 1 ) [2025-04-11 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:29:05' and `end` < '2025-04-11 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:29:18] Production.INFO: count ==940 [2025-04-11 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:29:05 - End Time 2025-04-11 09:29:05 [2025-04-11 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883309', 'tblTempUsageDetail_20' ) start [2025-04-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883309', 'tblTempUsageDetail_20' ) end [2025-04-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883309', 'tblTempVendorCDR_20' ) start [2025-04-11 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883309', 'tblTempVendorCDR_20' ) end [2025-04-11 09:29:18] Production.INFO: ProcessCDR(1,14883309,1,1,2) [2025-04-11 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883309', 'tblTempUsageDetail_20' ) start [2025-04-11 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883309', 'tblTempUsageDetail_20' ) end [2025-04-11 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:29:24] Production.INFO: ==26809== Releasing lock... [2025-04-11 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:29:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-11 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:30:06 [end_date_ymd] => 2025-04-11 09:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:30:06' and `end` < '2025-04-11 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-04-11 09:30:19] Production.INFO: count ==951 [2025-04-11 09:30:20] Production.ERROR: pbx CDR StartTime 2025-04-11 06:30:06 - End Time 2025-04-11 09:30:06 [2025-04-11 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883315', 'tblTempUsageDetail_20' ) start [2025-04-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883315', 'tblTempUsageDetail_20' ) end [2025-04-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883315', 'tblTempVendorCDR_20' ) start [2025-04-11 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883315', 'tblTempVendorCDR_20' ) end [2025-04-11 09:30:20] Production.INFO: ProcessCDR(1,14883315,1,1,2) [2025-04-11 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883315', 'tblTempUsageDetail_20' ) start [2025-04-11 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883315', 'tblTempUsageDetail_20' ) end [2025-04-11 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:30:23] Production.INFO: ==26881== Releasing lock... [2025-04-11 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-11 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:31:05 [end_date_ymd] => 2025-04-11 09:31:05 [RateCDR] => 1 ) [2025-04-11 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:31:05' and `end` < '2025-04-11 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:31:18] Production.INFO: count ==1021 [2025-04-11 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:31:05 - End Time 2025-04-11 09:31:05 [2025-04-11 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883320', 'tblTempUsageDetail_20' ) start [2025-04-11 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883320', 'tblTempUsageDetail_20' ) end [2025-04-11 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883320', 'tblTempVendorCDR_20' ) start [2025-04-11 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883320', 'tblTempVendorCDR_20' ) end [2025-04-11 09:31:18] Production.INFO: ProcessCDR(1,14883320,1,1,2) [2025-04-11 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883320', 'tblTempUsageDetail_20' ) start [2025-04-11 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883320', 'tblTempUsageDetail_20' ) end [2025-04-11 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:31:24] Production.INFO: ==26955== Releasing lock... [2025-04-11 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:31:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:32:05 [end_date_ymd] => 2025-04-11 09:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:32:05' and `end` < '2025-04-11 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-04-11 09:32:18] Production.INFO: count ==1034 [2025-04-11 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:32:05 - End Time 2025-04-11 09:32:05 [2025-04-11 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883325', 'tblTempUsageDetail_20' ) start [2025-04-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883325', 'tblTempUsageDetail_20' ) end [2025-04-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883325', 'tblTempVendorCDR_20' ) start [2025-04-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883325', 'tblTempVendorCDR_20' ) end [2025-04-11 09:32:19] Production.INFO: ProcessCDR(1,14883325,1,1,2) [2025-04-11 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883325', 'tblTempUsageDetail_20' ) start [2025-04-11 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883325', 'tblTempUsageDetail_20' ) end [2025-04-11 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:32:24] Production.INFO: ==27026== Releasing lock... [2025-04-11 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:32:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-11 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:33:05 [end_date_ymd] => 2025-04-11 09:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:33:05' and `end` < '2025-04-11 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-04-11 09:33:18] Production.INFO: count ==1055 [2025-04-11 09:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:33:05 - End Time 2025-04-11 09:33:05 [2025-04-11 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883330', 'tblTempUsageDetail_20' ) start [2025-04-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883330', 'tblTempUsageDetail_20' ) end [2025-04-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883330', 'tblTempVendorCDR_20' ) start [2025-04-11 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883330', 'tblTempVendorCDR_20' ) end [2025-04-11 09:33:18] Production.INFO: ProcessCDR(1,14883330,1,1,2) [2025-04-11 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883330', 'tblTempUsageDetail_20' ) start [2025-04-11 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883330', 'tblTempUsageDetail_20' ) end [2025-04-11 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:33:23] Production.INFO: ==27099== Releasing lock... [2025-04-11 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:33:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:34:06 [end_date_ymd] => 2025-04-11 09:34:06 [RateCDR] => 1 ) [2025-04-11 09: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-04-11 06:34:06' and `end` < '2025-04-11 09: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-04-11 09:34:19] Production.INFO: count ==1057 [2025-04-11 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:34:06 - End Time 2025-04-11 09:34:06 [2025-04-11 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883331', 'tblTempUsageDetail_20' ) start [2025-04-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883331', 'tblTempUsageDetail_20' ) end [2025-04-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883331', 'tblTempVendorCDR_20' ) start [2025-04-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883331', 'tblTempVendorCDR_20' ) end [2025-04-11 09:34:19] Production.INFO: ProcessCDR(1,14883331,1,1,2) [2025-04-11 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883331', 'tblTempUsageDetail_20' ) start [2025-04-11 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883331', 'tblTempUsageDetail_20' ) end [2025-04-11 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:34:24] Production.INFO: ==27170== Releasing lock... [2025-04-11 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:34:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:35:05 [end_date_ymd] => 2025-04-11 09:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:35:05' and `end` < '2025-04-11 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-04-11 09:35:18] Production.INFO: count ==1065 [2025-04-11 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:35:05 - End Time 2025-04-11 09:35:05 [2025-04-11 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883340', 'tblTempUsageDetail_20' ) start [2025-04-11 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883340', 'tblTempUsageDetail_20' ) end [2025-04-11 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883340', 'tblTempVendorCDR_20' ) start [2025-04-11 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883340', 'tblTempVendorCDR_20' ) end [2025-04-11 09:35:19] Production.INFO: ProcessCDR(1,14883340,1,1,2) [2025-04-11 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883340', 'tblTempUsageDetail_20' ) start [2025-04-11 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883340', 'tblTempUsageDetail_20' ) end [2025-04-11 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:35:24] Production.INFO: ==27245== Releasing lock... [2025-04-11 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:35:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:36:05 [end_date_ymd] => 2025-04-11 09:36:05 [RateCDR] => 1 ) [2025-04-11 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:36:05' and `end` < '2025-04-11 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:36:18] Production.INFO: count ==1069 [2025-04-11 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:36:05 - End Time 2025-04-11 09:36:05 [2025-04-11 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883345', 'tblTempUsageDetail_20' ) start [2025-04-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883345', 'tblTempUsageDetail_20' ) end [2025-04-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883345', 'tblTempVendorCDR_20' ) start [2025-04-11 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883345', 'tblTempVendorCDR_20' ) end [2025-04-11 09:36:19] Production.INFO: ProcessCDR(1,14883345,1,1,2) [2025-04-11 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883345', 'tblTempUsageDetail_20' ) start [2025-04-11 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883345', 'tblTempUsageDetail_20' ) end [2025-04-11 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:36:24] Production.INFO: ==27321== Releasing lock... [2025-04-11 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:36:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-11 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:37:05 [end_date_ymd] => 2025-04-11 09:37:05 [RateCDR] => 1 ) [2025-04-11 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:37:05' and `end` < '2025-04-11 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:37:18] Production.INFO: count ==1082 [2025-04-11 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:37:05 - End Time 2025-04-11 09:37:05 [2025-04-11 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883350', 'tblTempUsageDetail_20' ) start [2025-04-11 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883350', 'tblTempUsageDetail_20' ) end [2025-04-11 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883350', 'tblTempVendorCDR_20' ) start [2025-04-11 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883350', 'tblTempVendorCDR_20' ) end [2025-04-11 09:37:19] Production.INFO: ProcessCDR(1,14883350,1,1,2) [2025-04-11 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883350', 'tblTempUsageDetail_20' ) start [2025-04-11 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883350', 'tblTempUsageDetail_20' ) end [2025-04-11 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:37:24] Production.INFO: ==27395== Releasing lock... [2025-04-11 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:37:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:38:05 [end_date_ymd] => 2025-04-11 09:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:38:05' and `end` < '2025-04-11 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-04-11 09:38:18] Production.INFO: count ==1091 [2025-04-11 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:38:05 - End Time 2025-04-11 09:38:05 [2025-04-11 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883355', 'tblTempUsageDetail_20' ) start [2025-04-11 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883355', 'tblTempUsageDetail_20' ) end [2025-04-11 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883355', 'tblTempVendorCDR_20' ) start [2025-04-11 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883355', 'tblTempVendorCDR_20' ) end [2025-04-11 09:38:19] Production.INFO: ProcessCDR(1,14883355,1,1,2) [2025-04-11 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883355', 'tblTempUsageDetail_20' ) start [2025-04-11 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883355', 'tblTempUsageDetail_20' ) end [2025-04-11 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:38:24] Production.INFO: ==27466== Releasing lock... [2025-04-11 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:38:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:39:05 [end_date_ymd] => 2025-04-11 09:39:05 [RateCDR] => 1 ) [2025-04-11 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:39:05' and `end` < '2025-04-11 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:39:18] Production.INFO: count ==1100 [2025-04-11 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:39:05 - End Time 2025-04-11 09:39:05 [2025-04-11 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883360', 'tblTempUsageDetail_20' ) start [2025-04-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883360', 'tblTempUsageDetail_20' ) end [2025-04-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883360', 'tblTempVendorCDR_20' ) start [2025-04-11 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883360', 'tblTempVendorCDR_20' ) end [2025-04-11 09:39:18] Production.INFO: ProcessCDR(1,14883360,1,1,2) [2025-04-11 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883360', 'tblTempUsageDetail_20' ) start [2025-04-11 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883360', 'tblTempUsageDetail_20' ) end [2025-04-11 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:39:24] Production.INFO: ==27538== Releasing lock... [2025-04-11 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:39:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-11 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:40:07 [end_date_ymd] => 2025-04-11 09:40:07 [RateCDR] => 1 ) [2025-04-11 09: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-04-11 06:40:07' and `end` < '2025-04-11 09: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-04-11 09:40:20] Production.INFO: count ==1132 [2025-04-11 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-11 06:40:07 - End Time 2025-04-11 09:40:07 [2025-04-11 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883366', 'tblTempUsageDetail_20' ) start [2025-04-11 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883366', 'tblTempUsageDetail_20' ) end [2025-04-11 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883366', 'tblTempVendorCDR_20' ) start [2025-04-11 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883366', 'tblTempVendorCDR_20' ) end [2025-04-11 09:40:20] Production.INFO: ProcessCDR(1,14883366,1,1,2) [2025-04-11 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883366', 'tblTempUsageDetail_20' ) start [2025-04-11 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883366', 'tblTempUsageDetail_20' ) end [2025-04-11 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:40:26] Production.INFO: ==27612== Releasing lock... [2025-04-11 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:40:26] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:41:04 [end_date_ymd] => 2025-04-11 09:41:04 [RateCDR] => 1 ) [2025-04-11 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:41:04' and `end` < '2025-04-11 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:41:18] Production.INFO: count ==1230 [2025-04-11 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:41:04 - End Time 2025-04-11 09:41:04 [2025-04-11 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883371', 'tblTempUsageDetail_20' ) start [2025-04-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883371', 'tblTempUsageDetail_20' ) end [2025-04-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883371', 'tblTempVendorCDR_20' ) start [2025-04-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883371', 'tblTempVendorCDR_20' ) end [2025-04-11 09:41:18] Production.INFO: ProcessCDR(1,14883371,1,1,2) [2025-04-11 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883371', 'tblTempUsageDetail_20' ) start [2025-04-11 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883371', 'tblTempUsageDetail_20' ) end [2025-04-11 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:41:23] Production.INFO: ==27684== Releasing lock... [2025-04-11 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:41:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:42:05 [end_date_ymd] => 2025-04-11 09:42:05 [RateCDR] => 1 ) [2025-04-11 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:42:05' and `end` < '2025-04-11 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:42:19] Production.INFO: count ==1237 [2025-04-11 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:42:05 - End Time 2025-04-11 09:42:05 [2025-04-11 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883376', 'tblTempUsageDetail_20' ) start [2025-04-11 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883376', 'tblTempUsageDetail_20' ) end [2025-04-11 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883376', 'tblTempVendorCDR_20' ) start [2025-04-11 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883376', 'tblTempVendorCDR_20' ) end [2025-04-11 09:42:19] Production.INFO: ProcessCDR(1,14883376,1,1,2) [2025-04-11 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883376', 'tblTempUsageDetail_20' ) start [2025-04-11 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883376', 'tblTempUsageDetail_20' ) end [2025-04-11 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:42:24] Production.INFO: ==27793== Releasing lock... [2025-04-11 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:42:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-11 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:43:05 [end_date_ymd] => 2025-04-11 09:43:05 [RateCDR] => 1 ) [2025-04-11 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:43:05' and `end` < '2025-04-11 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-04-11 09:43:18] Production.INFO: count ==1249 [2025-04-11 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:43:05 - End Time 2025-04-11 09:43:05 [2025-04-11 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883381', 'tblTempUsageDetail_20' ) start [2025-04-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883381', 'tblTempUsageDetail_20' ) end [2025-04-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883381', 'tblTempVendorCDR_20' ) start [2025-04-11 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883381', 'tblTempVendorCDR_20' ) end [2025-04-11 09:43:19] Production.INFO: ProcessCDR(1,14883381,1,1,2) [2025-04-11 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883381', 'tblTempUsageDetail_20' ) start [2025-04-11 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883381', 'tblTempUsageDetail_20' ) end [2025-04-11 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:43:24] Production.INFO: ==27869== Releasing lock... [2025-04-11 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:43:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-11 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:44:05 [end_date_ymd] => 2025-04-11 09:44:05 [RateCDR] => 1 ) [2025-04-11 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:44:05' and `end` < '2025-04-11 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:44:18] Production.INFO: count ==1257 [2025-04-11 09:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:44:05 - End Time 2025-04-11 09:44:05 [2025-04-11 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883386', 'tblTempUsageDetail_20' ) start [2025-04-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883386', 'tblTempUsageDetail_20' ) end [2025-04-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883386', 'tblTempVendorCDR_20' ) start [2025-04-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883386', 'tblTempVendorCDR_20' ) end [2025-04-11 09:44:18] Production.INFO: ProcessCDR(1,14883386,1,1,2) [2025-04-11 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883386', 'tblTempUsageDetail_20' ) start [2025-04-11 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883386', 'tblTempUsageDetail_20' ) end [2025-04-11 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:44:23] Production.INFO: ==27944== Releasing lock... [2025-04-11 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:44:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-11 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:45:05 [end_date_ymd] => 2025-04-11 09:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:45:05' and `end` < '2025-04-11 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-04-11 09:45:18] Production.INFO: count ==1261 [2025-04-11 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:45:05 - End Time 2025-04-11 09:45:05 [2025-04-11 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883391', 'tblTempUsageDetail_20' ) start [2025-04-11 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883391', 'tblTempUsageDetail_20' ) end [2025-04-11 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883391', 'tblTempVendorCDR_20' ) start [2025-04-11 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883391', 'tblTempVendorCDR_20' ) end [2025-04-11 09:45:19] Production.INFO: ProcessCDR(1,14883391,1,1,2) [2025-04-11 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883391', 'tblTempUsageDetail_20' ) start [2025-04-11 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883391', 'tblTempUsageDetail_20' ) end [2025-04-11 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:45:24] Production.INFO: ==28015== Releasing lock... [2025-04-11 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:45:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-11 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:46:05 [end_date_ymd] => 2025-04-11 09:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:46:05' and `end` < '2025-04-11 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-04-11 09:46:18] Production.INFO: count ==1269 [2025-04-11 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:46:05 - End Time 2025-04-11 09:46:05 [2025-04-11 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883396', 'tblTempUsageDetail_20' ) start [2025-04-11 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883396', 'tblTempUsageDetail_20' ) end [2025-04-11 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883396', 'tblTempVendorCDR_20' ) start [2025-04-11 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883396', 'tblTempVendorCDR_20' ) end [2025-04-11 09:46:19] Production.INFO: ProcessCDR(1,14883396,1,1,2) [2025-04-11 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883396', 'tblTempUsageDetail_20' ) start [2025-04-11 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883396', 'tblTempUsageDetail_20' ) end [2025-04-11 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:46:23] Production.INFO: ==28085== Releasing lock... [2025-04-11 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:46:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:47:06 [end_date_ymd] => 2025-04-11 09:47:06 [RateCDR] => 1 ) [2025-04-11 09: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-04-11 06:47:06' and `end` < '2025-04-11 09: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-04-11 09:47:19] Production.INFO: count ==1285 [2025-04-11 09:47:20] Production.ERROR: pbx CDR StartTime 2025-04-11 06:47:06 - End Time 2025-04-11 09:47:06 [2025-04-11 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883401', 'tblTempUsageDetail_20' ) start [2025-04-11 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883401', 'tblTempUsageDetail_20' ) end [2025-04-11 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883401', 'tblTempVendorCDR_20' ) start [2025-04-11 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883401', 'tblTempVendorCDR_20' ) end [2025-04-11 09:47:20] Production.INFO: ProcessCDR(1,14883401,1,1,2) [2025-04-11 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883401', 'tblTempUsageDetail_20' ) start [2025-04-11 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883401', 'tblTempUsageDetail_20' ) end [2025-04-11 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:47:25] Production.INFO: ==28157== Releasing lock... [2025-04-11 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:47:25] Production.INFO: 38 MB #Memory Used# [2025-04-11 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:48:05 [end_date_ymd] => 2025-04-11 09:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:48:05' and `end` < '2025-04-11 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-04-11 09:48:18] Production.INFO: count ==1295 [2025-04-11 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:48:05 - End Time 2025-04-11 09:48:05 [2025-04-11 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883406', 'tblTempUsageDetail_20' ) start [2025-04-11 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883406', 'tblTempUsageDetail_20' ) end [2025-04-11 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883406', 'tblTempVendorCDR_20' ) start [2025-04-11 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883406', 'tblTempVendorCDR_20' ) end [2025-04-11 09:48:19] Production.INFO: ProcessCDR(1,14883406,1,1,2) [2025-04-11 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883406', 'tblTempUsageDetail_20' ) start [2025-04-11 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883406', 'tblTempUsageDetail_20' ) end [2025-04-11 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:48:24] Production.INFO: ==28227== Releasing lock... [2025-04-11 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:48:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-11 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:49:06 [end_date_ymd] => 2025-04-11 09:49:06 [RateCDR] => 1 ) [2025-04-11 09: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-04-11 06:49:06' and `end` < '2025-04-11 09: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-04-11 09:49:19] Production.INFO: count ==1315 [2025-04-11 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:49:06 - End Time 2025-04-11 09:49:06 [2025-04-11 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883411', 'tblTempUsageDetail_20' ) start [2025-04-11 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883411', 'tblTempUsageDetail_20' ) end [2025-04-11 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883411', 'tblTempVendorCDR_20' ) start [2025-04-11 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883411', 'tblTempVendorCDR_20' ) end [2025-04-11 09:49:19] Production.INFO: ProcessCDR(1,14883411,1,1,2) [2025-04-11 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883411', 'tblTempUsageDetail_20' ) start [2025-04-11 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883411', 'tblTempUsageDetail_20' ) end [2025-04-11 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:49:25] Production.INFO: ==28304== Releasing lock... [2025-04-11 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:49:25] Production.INFO: 38 MB #Memory Used# [2025-04-11 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:50:06 [end_date_ymd] => 2025-04-11 09:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:50:06' and `end` < '2025-04-11 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-04-11 09:50:19] Production.INFO: count ==1330 [2025-04-11 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:50:06 - End Time 2025-04-11 09:50:06 [2025-04-11 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883417', 'tblTempUsageDetail_20' ) start [2025-04-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883417', 'tblTempUsageDetail_20' ) end [2025-04-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883417', 'tblTempVendorCDR_20' ) start [2025-04-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883417', 'tblTempVendorCDR_20' ) end [2025-04-11 09:50:19] Production.INFO: ProcessCDR(1,14883417,1,1,2) [2025-04-11 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883417', 'tblTempUsageDetail_20' ) start [2025-04-11 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883417', 'tblTempUsageDetail_20' ) end [2025-04-11 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:50:23] Production.INFO: ==28378== Releasing lock... [2025-04-11 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:50:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-11 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:51:05 [end_date_ymd] => 2025-04-11 09:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:51:05' and `end` < '2025-04-11 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-04-11 09:51:18] Production.INFO: count ==1417 [2025-04-11 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:51:05 - End Time 2025-04-11 09:51:05 [2025-04-11 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883422', 'tblTempUsageDetail_20' ) start [2025-04-11 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883422', 'tblTempUsageDetail_20' ) end [2025-04-11 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883422', 'tblTempVendorCDR_20' ) start [2025-04-11 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883422', 'tblTempVendorCDR_20' ) end [2025-04-11 09:51:19] Production.INFO: ProcessCDR(1,14883422,1,1,2) [2025-04-11 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883422', 'tblTempUsageDetail_20' ) start [2025-04-11 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883422', 'tblTempUsageDetail_20' ) end [2025-04-11 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:51:24] Production.INFO: ==28452== Releasing lock... [2025-04-11 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:51:24] Production.INFO: 39 MB #Memory Used# [2025-04-11 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:52:05 [end_date_ymd] => 2025-04-11 09:52:05 [RateCDR] => 1 ) [2025-04-11 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:52:05' and `end` < '2025-04-11 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:52:19] Production.INFO: count ==1420 [2025-04-11 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:52:05 - End Time 2025-04-11 09:52:05 [2025-04-11 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883427', 'tblTempUsageDetail_20' ) start [2025-04-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883427', 'tblTempUsageDetail_20' ) end [2025-04-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883427', 'tblTempVendorCDR_20' ) start [2025-04-11 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883427', 'tblTempVendorCDR_20' ) end [2025-04-11 09:52:19] Production.INFO: ProcessCDR(1,14883427,1,1,2) [2025-04-11 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883427', 'tblTempUsageDetail_20' ) start [2025-04-11 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883427', 'tblTempUsageDetail_20' ) end [2025-04-11 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:52:24] Production.INFO: ==28524== Releasing lock... [2025-04-11 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:52:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:53:05 [end_date_ymd] => 2025-04-11 09:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:53:05' and `end` < '2025-04-11 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-04-11 09:53:18] Production.INFO: count ==1431 [2025-04-11 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:53:05 - End Time 2025-04-11 09:53:05 [2025-04-11 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883432', 'tblTempUsageDetail_20' ) start [2025-04-11 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883432', 'tblTempUsageDetail_20' ) end [2025-04-11 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883432', 'tblTempVendorCDR_20' ) start [2025-04-11 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883432', 'tblTempVendorCDR_20' ) end [2025-04-11 09:53:19] Production.INFO: ProcessCDR(1,14883432,1,1,2) [2025-04-11 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883432', 'tblTempUsageDetail_20' ) start [2025-04-11 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883432', 'tblTempUsageDetail_20' ) end [2025-04-11 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:53:24] Production.INFO: ==28599== Releasing lock... [2025-04-11 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:53:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:54:05 [end_date_ymd] => 2025-04-11 09:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:54:05' and `end` < '2025-04-11 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-04-11 09:54:18] Production.INFO: count ==1438 [2025-04-11 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:54:05 - End Time 2025-04-11 09:54:05 [2025-04-11 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883437', 'tblTempUsageDetail_20' ) start [2025-04-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883437', 'tblTempUsageDetail_20' ) end [2025-04-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883437', 'tblTempVendorCDR_20' ) start [2025-04-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883437', 'tblTempVendorCDR_20' ) end [2025-04-11 09:54:19] Production.INFO: ProcessCDR(1,14883437,1,1,2) [2025-04-11 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883437', 'tblTempUsageDetail_20' ) start [2025-04-11 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883437', 'tblTempUsageDetail_20' ) end [2025-04-11 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:54:24] Production.INFO: ==28669== Releasing lock... [2025-04-11 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:54:24] Production.INFO: 39 MB #Memory Used# [2025-04-11 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:55:05 [end_date_ymd] => 2025-04-11 09:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:55:05' and `end` < '2025-04-11 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-04-11 09:55:18] Production.INFO: count ==1462 [2025-04-11 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:55:05 - End Time 2025-04-11 09:55:05 [2025-04-11 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883442', 'tblTempUsageDetail_20' ) start [2025-04-11 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883442', 'tblTempUsageDetail_20' ) end [2025-04-11 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883442', 'tblTempVendorCDR_20' ) start [2025-04-11 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883442', 'tblTempVendorCDR_20' ) end [2025-04-11 09:55:19] Production.INFO: ProcessCDR(1,14883442,1,1,2) [2025-04-11 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883442', 'tblTempUsageDetail_20' ) start [2025-04-11 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883442', 'tblTempUsageDetail_20' ) end [2025-04-11 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:55:24] Production.INFO: ==28740== Releasing lock... [2025-04-11 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:55:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:56:05 [end_date_ymd] => 2025-04-11 09:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:56:05' and `end` < '2025-04-11 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-04-11 09:56:18] Production.INFO: count ==1471 [2025-04-11 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:56:05 - End Time 2025-04-11 09:56:05 [2025-04-11 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883447', 'tblTempUsageDetail_20' ) start [2025-04-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883447', 'tblTempUsageDetail_20' ) end [2025-04-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883447', 'tblTempVendorCDR_20' ) start [2025-04-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883447', 'tblTempVendorCDR_20' ) end [2025-04-11 09:56:19] Production.INFO: ProcessCDR(1,14883447,1,1,2) [2025-04-11 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883447', 'tblTempUsageDetail_20' ) start [2025-04-11 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883447', 'tblTempUsageDetail_20' ) end [2025-04-11 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:56:24] Production.INFO: ==28812== Releasing lock... [2025-04-11 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:56:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:57:05 [end_date_ymd] => 2025-04-11 09:57:05 [RateCDR] => 1 ) [2025-04-11 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 06:57:05' and `end` < '2025-04-11 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 09:57:18] Production.INFO: count ==1479 [2025-04-11 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:57:05 - End Time 2025-04-11 09:57:05 [2025-04-11 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883452', 'tblTempUsageDetail_20' ) start [2025-04-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883452', 'tblTempUsageDetail_20' ) end [2025-04-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883452', 'tblTempVendorCDR_20' ) start [2025-04-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883452', 'tblTempVendorCDR_20' ) end [2025-04-11 09:57:19] Production.INFO: ProcessCDR(1,14883452,1,1,2) [2025-04-11 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883452', 'tblTempUsageDetail_20' ) start [2025-04-11 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883452', 'tblTempUsageDetail_20' ) end [2025-04-11 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:57:24] Production.INFO: ==28921== Releasing lock... [2025-04-11 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:57:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:58:06 [end_date_ymd] => 2025-04-11 09:58:06 [RateCDR] => 1 ) [2025-04-11 09: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-04-11 06:58:06' and `end` < '2025-04-11 09: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-04-11 09:58:19] Production.INFO: count ==1482 [2025-04-11 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-11 06:58:06 - End Time 2025-04-11 09:58:06 [2025-04-11 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883457', 'tblTempUsageDetail_20' ) start [2025-04-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883457', 'tblTempUsageDetail_20' ) end [2025-04-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883457', 'tblTempVendorCDR_20' ) start [2025-04-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883457', 'tblTempVendorCDR_20' ) end [2025-04-11 09:58:19] Production.INFO: ProcessCDR(1,14883457,1,1,2) [2025-04-11 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883457', 'tblTempUsageDetail_20' ) start [2025-04-11 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883457', 'tblTempUsageDetail_20' ) end [2025-04-11 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:58:24] Production.INFO: ==28993== Releasing lock... [2025-04-11 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:58:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 06:59:05 [end_date_ymd] => 2025-04-11 09:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 06:59:05' and `end` < '2025-04-11 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-04-11 09:59:18] Production.INFO: count ==1492 [2025-04-11 09:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 06:59:05 - End Time 2025-04-11 09:59:05 [2025-04-11 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883462', 'tblTempUsageDetail_20' ) start [2025-04-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883462', 'tblTempUsageDetail_20' ) end [2025-04-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883462', 'tblTempVendorCDR_20' ) start [2025-04-11 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883462', 'tblTempVendorCDR_20' ) end [2025-04-11 09:59:18] Production.INFO: ProcessCDR(1,14883462,1,1,2) [2025-04-11 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883462', 'tblTempUsageDetail_20' ) start [2025-04-11 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883462', 'tblTempUsageDetail_20' ) end [2025-04-11 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 09:59:23] Production.INFO: ==29069== Releasing lock... [2025-04-11 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 09:59:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:00:06 [end_date_ymd] => 2025-04-11 10:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:00:06' and `end` < '2025-04-11 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-04-11 10:00:19] Production.INFO: count ==1507 [2025-04-11 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:00:06 - End Time 2025-04-11 10:00:06 [2025-04-11 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883468', 'tblTempUsageDetail_20' ) start [2025-04-11 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883468', 'tblTempUsageDetail_20' ) end [2025-04-11 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883468', 'tblTempVendorCDR_20' ) start [2025-04-11 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883468', 'tblTempVendorCDR_20' ) end [2025-04-11 10:00:20] Production.INFO: ProcessCDR(1,14883468,1,1,2) [2025-04-11 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883468', 'tblTempUsageDetail_20' ) start [2025-04-11 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883468', 'tblTempUsageDetail_20' ) end [2025-04-11 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:00:26] Production.INFO: ==29141== Releasing lock... [2025-04-11 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:00:26] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:01:05 [end_date_ymd] => 2025-04-11 10:01:05 [RateCDR] => 1 ) [2025-04-11 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:01:05' and `end` < '2025-04-11 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:01:18] Production.INFO: count ==1596 [2025-04-11 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:01:05 - End Time 2025-04-11 10:01:05 [2025-04-11 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883473', 'tblTempUsageDetail_20' ) start [2025-04-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883473', 'tblTempUsageDetail_20' ) end [2025-04-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883473', 'tblTempVendorCDR_20' ) start [2025-04-11 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883473', 'tblTempVendorCDR_20' ) end [2025-04-11 10:01:19] Production.INFO: ProcessCDR(1,14883473,1,1,2) [2025-04-11 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883473', 'tblTempUsageDetail_20' ) start [2025-04-11 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883473', 'tblTempUsageDetail_20' ) end [2025-04-11 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:01:24] Production.INFO: ==29225== Releasing lock... [2025-04-11 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:01:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:02:05 [end_date_ymd] => 2025-04-11 10:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:02:05' and `end` < '2025-04-11 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-04-11 10:02:18] Production.INFO: count ==1605 [2025-04-11 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:02:05 - End Time 2025-04-11 10:02:05 [2025-04-11 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883478', 'tblTempUsageDetail_20' ) start [2025-04-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883478', 'tblTempUsageDetail_20' ) end [2025-04-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883478', 'tblTempVendorCDR_20' ) start [2025-04-11 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883478', 'tblTempVendorCDR_20' ) end [2025-04-11 10:02:19] Production.INFO: ProcessCDR(1,14883478,1,1,2) [2025-04-11 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883478', 'tblTempUsageDetail_20' ) start [2025-04-11 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883478', 'tblTempUsageDetail_20' ) end [2025-04-11 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:02:24] Production.INFO: ==29298== Releasing lock... [2025-04-11 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:02:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:03:05 [end_date_ymd] => 2025-04-11 10:03:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:03:05' and `end` < '2025-04-11 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-04-11 10:03:18] Production.INFO: count ==1640 [2025-04-11 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:03:05 - End Time 2025-04-11 10:03:05 [2025-04-11 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883483', 'tblTempUsageDetail_20' ) start [2025-04-11 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883483', 'tblTempUsageDetail_20' ) end [2025-04-11 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883483', 'tblTempVendorCDR_20' ) start [2025-04-11 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883483', 'tblTempVendorCDR_20' ) end [2025-04-11 10:03:19] Production.INFO: ProcessCDR(1,14883483,1,1,2) [2025-04-11 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883483', 'tblTempUsageDetail_20' ) start [2025-04-11 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883483', 'tblTempUsageDetail_20' ) end [2025-04-11 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:03:24] Production.INFO: ==29372== Releasing lock... [2025-04-11 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:03:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:04:05 [end_date_ymd] => 2025-04-11 10:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:04:05' and `end` < '2025-04-11 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-04-11 10:04:18] Production.INFO: count ==1649 [2025-04-11 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:04:05 - End Time 2025-04-11 10:04:05 [2025-04-11 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883488', 'tblTempUsageDetail_20' ) start [2025-04-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883488', 'tblTempUsageDetail_20' ) end [2025-04-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883488', 'tblTempVendorCDR_20' ) start [2025-04-11 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883488', 'tblTempVendorCDR_20' ) end [2025-04-11 10:04:19] Production.INFO: ProcessCDR(1,14883488,1,1,2) [2025-04-11 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883488', 'tblTempUsageDetail_20' ) start [2025-04-11 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883488', 'tblTempUsageDetail_20' ) end [2025-04-11 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:04:25] Production.INFO: ==29443== Releasing lock... [2025-04-11 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:04:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 10:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:05:04 [end_date_ymd] => 2025-04-11 10:05:04 [RateCDR] => 1 ) [2025-04-11 10:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:05:04' and `end` < '2025-04-11 10:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:05:17] Production.INFO: count ==1657 [2025-04-11 10:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 07:05:04 - End Time 2025-04-11 10:05:04 [2025-04-11 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883493', 'tblTempUsageDetail_20' ) start [2025-04-11 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883493', 'tblTempUsageDetail_20' ) end [2025-04-11 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883493', 'tblTempVendorCDR_20' ) start [2025-04-11 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883493', 'tblTempVendorCDR_20' ) end [2025-04-11 10:05:18] Production.INFO: ProcessCDR(1,14883493,1,1,2) [2025-04-11 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883493', 'tblTempUsageDetail_20' ) start [2025-04-11 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883493', 'tblTempUsageDetail_20' ) end [2025-04-11 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:05:23] Production.INFO: ==29515== Releasing lock... [2025-04-11 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:05:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-11 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:06:06 [end_date_ymd] => 2025-04-11 10:06:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:06:06' and `end` < '2025-04-11 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-04-11 10:06:19] Production.INFO: count ==1674 [2025-04-11 10:06:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:06:06 - End Time 2025-04-11 10:06:06 [2025-04-11 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883498', 'tblTempUsageDetail_20' ) start [2025-04-11 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883498', 'tblTempUsageDetail_20' ) end [2025-04-11 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883498', 'tblTempVendorCDR_20' ) start [2025-04-11 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883498', 'tblTempVendorCDR_20' ) end [2025-04-11 10:06:20] Production.INFO: ProcessCDR(1,14883498,1,1,2) [2025-04-11 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883498', 'tblTempUsageDetail_20' ) start [2025-04-11 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883498', 'tblTempUsageDetail_20' ) end [2025-04-11 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:06:25] Production.INFO: ==29588== Releasing lock... [2025-04-11 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:06:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-11 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:07:04 [end_date_ymd] => 2025-04-11 10:07:04 [RateCDR] => 1 ) [2025-04-11 10:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:07:04' and `end` < '2025-04-11 10:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:07:18] Production.INFO: count ==1680 [2025-04-11 10:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 07:07:04 - End Time 2025-04-11 10:07:04 [2025-04-11 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883503', 'tblTempUsageDetail_20' ) start [2025-04-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883503', 'tblTempUsageDetail_20' ) end [2025-04-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883503', 'tblTempVendorCDR_20' ) start [2025-04-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883503', 'tblTempVendorCDR_20' ) end [2025-04-11 10:07:18] Production.INFO: ProcessCDR(1,14883503,1,1,2) [2025-04-11 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883503', 'tblTempUsageDetail_20' ) start [2025-04-11 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883503', 'tblTempUsageDetail_20' ) end [2025-04-11 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:07:24] Production.INFO: ==29664== Releasing lock... [2025-04-11 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:07:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-11 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:08:05 [end_date_ymd] => 2025-04-11 10:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:08:05' and `end` < '2025-04-11 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-04-11 10:08:19] Production.INFO: count ==1685 [2025-04-11 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:08:05 - End Time 2025-04-11 10:08:05 [2025-04-11 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883508', 'tblTempUsageDetail_20' ) start [2025-04-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883508', 'tblTempUsageDetail_20' ) end [2025-04-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883508', 'tblTempVendorCDR_20' ) start [2025-04-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883508', 'tblTempVendorCDR_20' ) end [2025-04-11 10:08:19] Production.INFO: ProcessCDR(1,14883508,1,1,2) [2025-04-11 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883508', 'tblTempUsageDetail_20' ) start [2025-04-11 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883508', 'tblTempUsageDetail_20' ) end [2025-04-11 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:08:25] Production.INFO: ==29738== Releasing lock... [2025-04-11 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:08:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:09:05 [end_date_ymd] => 2025-04-11 10:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:09:05' and `end` < '2025-04-11 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-04-11 10:09:19] Production.INFO: count ==1723 [2025-04-11 10:09:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:09:05 - End Time 2025-04-11 10:09:05 [2025-04-11 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883513', 'tblTempUsageDetail_20' ) start [2025-04-11 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883513', 'tblTempUsageDetail_20' ) end [2025-04-11 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883513', 'tblTempVendorCDR_20' ) start [2025-04-11 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883513', 'tblTempVendorCDR_20' ) end [2025-04-11 10:09:19] Production.INFO: ProcessCDR(1,14883513,1,1,2) [2025-04-11 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883513', 'tblTempUsageDetail_20' ) start [2025-04-11 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883513', 'tblTempUsageDetail_20' ) end [2025-04-11 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:09:25] Production.INFO: ==29817== Releasing lock... [2025-04-11 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:09:25] Production.INFO: 41 MB #Memory Used# [2025-04-11 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:10:05 [end_date_ymd] => 2025-04-11 10:10:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:10:05' and `end` < '2025-04-11 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:10:19] Production.INFO: count ==1731 [2025-04-11 10:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:10:05 - End Time 2025-04-11 10:10:05 [2025-04-11 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883518', 'tblTempUsageDetail_20' ) start [2025-04-11 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883518', 'tblTempUsageDetail_20' ) end [2025-04-11 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883518', 'tblTempVendorCDR_20' ) start [2025-04-11 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883518', 'tblTempVendorCDR_20' ) end [2025-04-11 10:10:20] Production.INFO: ProcessCDR(1,14883518,1,1,2) [2025-04-11 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883518', 'tblTempUsageDetail_20' ) start [2025-04-11 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883518', 'tblTempUsageDetail_20' ) end [2025-04-11 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:10:25] Production.INFO: ==29888== Releasing lock... [2025-04-11 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:10:25] Production.INFO: 41 MB #Memory Used# [2025-04-11 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:11:06 [end_date_ymd] => 2025-04-11 10:11:06 [RateCDR] => 1 ) [2025-04-11 10: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-04-11 07:11:06' and `end` < '2025-04-11 10: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-04-11 10:11:19] Production.INFO: count ==1882 [2025-04-11 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:11:06 - End Time 2025-04-11 10:11:06 [2025-04-11 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883524', 'tblTempUsageDetail_20' ) start [2025-04-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883524', 'tblTempUsageDetail_20' ) end [2025-04-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883524', 'tblTempVendorCDR_20' ) start [2025-04-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883524', 'tblTempVendorCDR_20' ) end [2025-04-11 10:11:20] Production.INFO: ProcessCDR(1,14883524,1,1,2) [2025-04-11 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883524', 'tblTempUsageDetail_20' ) start [2025-04-11 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883524', 'tblTempUsageDetail_20' ) end [2025-04-11 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:11:26] Production.INFO: ==29961== Releasing lock... [2025-04-11 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:11:26] Production.INFO: 42.25 MB #Memory Used# [2025-04-11 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:12:05 [end_date_ymd] => 2025-04-11 10:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:12:05' and `end` < '2025-04-11 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-04-11 10:12:18] Production.INFO: count ==1891 [2025-04-11 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:12:05 - End Time 2025-04-11 10:12:05 [2025-04-11 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883529', 'tblTempUsageDetail_20' ) start [2025-04-11 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883529', 'tblTempUsageDetail_20' ) end [2025-04-11 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883529', 'tblTempVendorCDR_20' ) start [2025-04-11 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883529', 'tblTempVendorCDR_20' ) end [2025-04-11 10:12:19] Production.INFO: ProcessCDR(1,14883529,1,1,2) [2025-04-11 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883529', 'tblTempUsageDetail_20' ) start [2025-04-11 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883529', 'tblTempUsageDetail_20' ) end [2025-04-11 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:12:24] Production.INFO: ==30036== Releasing lock... [2025-04-11 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:12:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:13:05 [end_date_ymd] => 2025-04-11 10:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:13:05' and `end` < '2025-04-11 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-04-11 10:13:19] Production.INFO: count ==1894 [2025-04-11 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:13:05 - End Time 2025-04-11 10:13:05 [2025-04-11 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883534', 'tblTempUsageDetail_20' ) start [2025-04-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883534', 'tblTempUsageDetail_20' ) end [2025-04-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883534', 'tblTempVendorCDR_20' ) start [2025-04-11 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883534', 'tblTempVendorCDR_20' ) end [2025-04-11 10:13:19] Production.INFO: ProcessCDR(1,14883534,1,1,2) [2025-04-11 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883534', 'tblTempUsageDetail_20' ) start [2025-04-11 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883534', 'tblTempUsageDetail_20' ) end [2025-04-11 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:13:25] Production.INFO: ==30149== Releasing lock... [2025-04-11 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:13:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:14:05 [end_date_ymd] => 2025-04-11 10:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:14:05' and `end` < '2025-04-11 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-04-11 10:14:18] Production.INFO: count ==1901 [2025-04-11 10:14:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:14:05 - End Time 2025-04-11 10:14:05 [2025-04-11 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883539', 'tblTempUsageDetail_20' ) start [2025-04-11 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883539', 'tblTempUsageDetail_20' ) end [2025-04-11 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883539', 'tblTempVendorCDR_20' ) start [2025-04-11 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883539', 'tblTempVendorCDR_20' ) end [2025-04-11 10:14:19] Production.INFO: ProcessCDR(1,14883539,1,1,2) [2025-04-11 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883539', 'tblTempUsageDetail_20' ) start [2025-04-11 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883539', 'tblTempUsageDetail_20' ) end [2025-04-11 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:14:22] Production.INFO: ==30220== Releasing lock... [2025-04-11 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:14:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-11 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:15:05 [end_date_ymd] => 2025-04-11 10:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:15:05' and `end` < '2025-04-11 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-04-11 10:15:19] Production.INFO: count ==1937 [2025-04-11 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:15:05 - End Time 2025-04-11 10:15:05 [2025-04-11 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883544', 'tblTempUsageDetail_20' ) start [2025-04-11 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883544', 'tblTempUsageDetail_20' ) end [2025-04-11 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883544', 'tblTempVendorCDR_20' ) start [2025-04-11 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883544', 'tblTempVendorCDR_20' ) end [2025-04-11 10:15:20] Production.INFO: ProcessCDR(1,14883544,1,1,2) [2025-04-11 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883544', 'tblTempUsageDetail_20' ) start [2025-04-11 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883544', 'tblTempUsageDetail_20' ) end [2025-04-11 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:15:25] Production.INFO: ==30294== Releasing lock... [2025-04-11 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:15:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:16:05 [end_date_ymd] => 2025-04-11 10:16:05 [RateCDR] => 1 ) [2025-04-11 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:16:05' and `end` < '2025-04-11 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:16:19] Production.INFO: count ==1945 [2025-04-11 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:16:05 - End Time 2025-04-11 10:16:05 [2025-04-11 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883549', 'tblTempUsageDetail_20' ) start [2025-04-11 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883549', 'tblTempUsageDetail_20' ) end [2025-04-11 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883549', 'tblTempVendorCDR_20' ) start [2025-04-11 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883549', 'tblTempVendorCDR_20' ) end [2025-04-11 10:16:19] Production.INFO: ProcessCDR(1,14883549,1,1,2) [2025-04-11 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883549', 'tblTempUsageDetail_20' ) start [2025-04-11 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883549', 'tblTempUsageDetail_20' ) end [2025-04-11 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:16:25] Production.INFO: ==30371== Releasing lock... [2025-04-11 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:16:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-11 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:17:06 [end_date_ymd] => 2025-04-11 10:17:06 [RateCDR] => 1 ) [2025-04-11 10: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-04-11 07:17:06' and `end` < '2025-04-11 10: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-04-11 10:17:19] Production.INFO: count ==1957 [2025-04-11 10:17:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:17:06 - End Time 2025-04-11 10:17:06 [2025-04-11 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883554', 'tblTempUsageDetail_20' ) start [2025-04-11 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883554', 'tblTempUsageDetail_20' ) end [2025-04-11 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883554', 'tblTempVendorCDR_20' ) start [2025-04-11 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883554', 'tblTempVendorCDR_20' ) end [2025-04-11 10:17:20] Production.INFO: ProcessCDR(1,14883554,1,1,2) [2025-04-11 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883554', 'tblTempUsageDetail_20' ) start [2025-04-11 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883554', 'tblTempUsageDetail_20' ) end [2025-04-11 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:17:25] Production.INFO: ==30443== Releasing lock... [2025-04-11 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:17:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-11 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:18:05 [end_date_ymd] => 2025-04-11 10:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:18:05' and `end` < '2025-04-11 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-04-11 10:18:18] Production.INFO: count ==1979 [2025-04-11 10:18:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:18:05 - End Time 2025-04-11 10:18:05 [2025-04-11 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883559', 'tblTempUsageDetail_20' ) start [2025-04-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883559', 'tblTempUsageDetail_20' ) end [2025-04-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883559', 'tblTempVendorCDR_20' ) start [2025-04-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883559', 'tblTempVendorCDR_20' ) end [2025-04-11 10:18:19] Production.INFO: ProcessCDR(1,14883559,1,1,2) [2025-04-11 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883559', 'tblTempUsageDetail_20' ) start [2025-04-11 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883559', 'tblTempUsageDetail_20' ) end [2025-04-11 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:18:23] Production.INFO: ==30517== Releasing lock... [2025-04-11 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:18:23] Production.INFO: 43 MB #Memory Used# [2025-04-11 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:19:05 [end_date_ymd] => 2025-04-11 10:19:05 [RateCDR] => 1 ) [2025-04-11 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:19:05' and `end` < '2025-04-11 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:19:19] Production.INFO: count ==1984 [2025-04-11 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:19:05 - End Time 2025-04-11 10:19:05 [2025-04-11 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883564', 'tblTempUsageDetail_20' ) start [2025-04-11 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883564', 'tblTempUsageDetail_20' ) end [2025-04-11 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883564', 'tblTempVendorCDR_20' ) start [2025-04-11 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883564', 'tblTempVendorCDR_20' ) end [2025-04-11 10:19:20] Production.INFO: ProcessCDR(1,14883564,1,1,2) [2025-04-11 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883564', 'tblTempUsageDetail_20' ) start [2025-04-11 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883564', 'tblTempUsageDetail_20' ) end [2025-04-11 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:19:25] Production.INFO: ==30592== Releasing lock... [2025-04-11 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:19:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-11 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:20:06 [end_date_ymd] => 2025-04-11 10:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:20:06' and `end` < '2025-04-11 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-04-11 10:20:19] Production.INFO: count ==2012 [2025-04-11 10:20:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:20:06 - End Time 2025-04-11 10:20:06 [2025-04-11 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883570', 'tblTempUsageDetail_20' ) start [2025-04-11 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883570', 'tblTempUsageDetail_20' ) end [2025-04-11 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883570', 'tblTempVendorCDR_20' ) start [2025-04-11 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883570', 'tblTempVendorCDR_20' ) end [2025-04-11 10:20:20] Production.INFO: ProcessCDR(1,14883570,1,1,2) [2025-04-11 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883570', 'tblTempUsageDetail_20' ) start [2025-04-11 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883570', 'tblTempUsageDetail_20' ) end [2025-04-11 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:20:25] Production.INFO: ==30664== Releasing lock... [2025-04-11 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:20:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:21:05 [end_date_ymd] => 2025-04-11 10:21:05 [RateCDR] => 1 ) [2025-04-11 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:21:05' and `end` < '2025-04-11 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:21:19] Production.INFO: count ==2097 [2025-04-11 10:21:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:21:05 - End Time 2025-04-11 10:21:05 [2025-04-11 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883575', 'tblTempUsageDetail_20' ) start [2025-04-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883575', 'tblTempUsageDetail_20' ) end [2025-04-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883575', 'tblTempVendorCDR_20' ) start [2025-04-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883575', 'tblTempVendorCDR_20' ) end [2025-04-11 10:21:19] Production.INFO: ProcessCDR(1,14883575,1,1,2) [2025-04-11 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883575', 'tblTempUsageDetail_20' ) start [2025-04-11 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883575', 'tblTempUsageDetail_20' ) end [2025-04-11 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:21:25] Production.INFO: ==30737== Releasing lock... [2025-04-11 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:21:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-11 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:22:05 [end_date_ymd] => 2025-04-11 10:22:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:22:05' and `end` < '2025-04-11 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-04-11 10:22:19] Production.INFO: count ==2107 [2025-04-11 10:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:22:05 - End Time 2025-04-11 10:22:05 [2025-04-11 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883580', 'tblTempUsageDetail_20' ) start [2025-04-11 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883580', 'tblTempUsageDetail_20' ) end [2025-04-11 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883580', 'tblTempVendorCDR_20' ) start [2025-04-11 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883580', 'tblTempVendorCDR_20' ) end [2025-04-11 10:22:19] Production.INFO: ProcessCDR(1,14883580,1,1,2) [2025-04-11 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883580', 'tblTempUsageDetail_20' ) start [2025-04-11 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883580', 'tblTempUsageDetail_20' ) end [2025-04-11 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:22:24] Production.INFO: ==30812== Releasing lock... [2025-04-11 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:22:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-11 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:23:05 [end_date_ymd] => 2025-04-11 10:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:23:05' and `end` < '2025-04-11 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-04-11 10:23:18] Production.INFO: count ==2125 [2025-04-11 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:23:05 - End Time 2025-04-11 10:23:05 [2025-04-11 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883585', 'tblTempUsageDetail_20' ) start [2025-04-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883585', 'tblTempUsageDetail_20' ) end [2025-04-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883585', 'tblTempVendorCDR_20' ) start [2025-04-11 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883585', 'tblTempVendorCDR_20' ) end [2025-04-11 10:23:19] Production.INFO: ProcessCDR(1,14883585,1,1,2) [2025-04-11 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883585', 'tblTempUsageDetail_20' ) start [2025-04-11 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883585', 'tblTempUsageDetail_20' ) end [2025-04-11 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:23:24] Production.INFO: ==30888== Releasing lock... [2025-04-11 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:23:24] Production.INFO: 44 MB #Memory Used# [2025-04-11 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:24:05 [end_date_ymd] => 2025-04-11 10:24:05 [RateCDR] => 1 ) [2025-04-11 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:24:05' and `end` < '2025-04-11 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:24:18] Production.INFO: count ==2134 [2025-04-11 10:24:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:24:05 - End Time 2025-04-11 10:24:05 [2025-04-11 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883590', 'tblTempUsageDetail_20' ) start [2025-04-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883590', 'tblTempUsageDetail_20' ) end [2025-04-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883590', 'tblTempVendorCDR_20' ) start [2025-04-11 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883590', 'tblTempVendorCDR_20' ) end [2025-04-11 10:24:19] Production.INFO: ProcessCDR(1,14883590,1,1,2) [2025-04-11 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883590', 'tblTempUsageDetail_20' ) start [2025-04-11 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883590', 'tblTempUsageDetail_20' ) end [2025-04-11 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:24:25] Production.INFO: ==30961== Releasing lock... [2025-04-11 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:24:25] Production.INFO: 44 MB #Memory Used# [2025-04-11 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:25:05 [end_date_ymd] => 2025-04-11 10:25:05 [RateCDR] => 1 ) [2025-04-11 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:25:05' and `end` < '2025-04-11 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:25:18] Production.INFO: count ==2139 [2025-04-11 10:25:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:25:05 - End Time 2025-04-11 10:25:05 [2025-04-11 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883595', 'tblTempUsageDetail_20' ) start [2025-04-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883595', 'tblTempUsageDetail_20' ) end [2025-04-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883595', 'tblTempVendorCDR_20' ) start [2025-04-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883595', 'tblTempVendorCDR_20' ) end [2025-04-11 10:25:19] Production.INFO: ProcessCDR(1,14883595,1,1,2) [2025-04-11 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883595', 'tblTempUsageDetail_20' ) start [2025-04-11 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883595', 'tblTempUsageDetail_20' ) end [2025-04-11 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:25:25] Production.INFO: ==31037== Releasing lock... [2025-04-11 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:25:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-11 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:26:05 [end_date_ymd] => 2025-04-11 10:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:26:05' and `end` < '2025-04-11 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-04-11 10:26:18] Production.INFO: count ==2147 [2025-04-11 10:26:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:26:05 - End Time 2025-04-11 10:26:05 [2025-04-11 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883600', 'tblTempUsageDetail_20' ) start [2025-04-11 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883600', 'tblTempUsageDetail_20' ) end [2025-04-11 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883600', 'tblTempVendorCDR_20' ) start [2025-04-11 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883600', 'tblTempVendorCDR_20' ) end [2025-04-11 10:26:19] Production.INFO: ProcessCDR(1,14883600,1,1,2) [2025-04-11 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883600', 'tblTempUsageDetail_20' ) start [2025-04-11 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883600', 'tblTempUsageDetail_20' ) end [2025-04-11 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:26:25] Production.INFO: ==31111== Releasing lock... [2025-04-11 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:26:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-11 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:27:06 [end_date_ymd] => 2025-04-11 10:27:06 [RateCDR] => 1 ) [2025-04-11 10: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-04-11 07:27:06' and `end` < '2025-04-11 10: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-04-11 10:27:19] Production.INFO: count ==2162 [2025-04-11 10:27:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:27:06 - End Time 2025-04-11 10:27:06 [2025-04-11 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883605', 'tblTempUsageDetail_20' ) start [2025-04-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883605', 'tblTempUsageDetail_20' ) end [2025-04-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883605', 'tblTempVendorCDR_20' ) start [2025-04-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883605', 'tblTempVendorCDR_20' ) end [2025-04-11 10:27:20] Production.INFO: ProcessCDR(1,14883605,1,1,2) [2025-04-11 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883605', 'tblTempUsageDetail_20' ) start [2025-04-11 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883605', 'tblTempUsageDetail_20' ) end [2025-04-11 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:27:26] Production.INFO: ==31182== Releasing lock... [2025-04-11 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:27:26] Production.INFO: 44.25 MB #Memory Used# [2025-04-11 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:28:05 [end_date_ymd] => 2025-04-11 10:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:28:05' and `end` < '2025-04-11 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-04-11 10:28:18] Production.INFO: count ==2169 [2025-04-11 10:28:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:28:05 - End Time 2025-04-11 10:28:05 [2025-04-11 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883610', 'tblTempUsageDetail_20' ) start [2025-04-11 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883610', 'tblTempUsageDetail_20' ) end [2025-04-11 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883610', 'tblTempVendorCDR_20' ) start [2025-04-11 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883610', 'tblTempVendorCDR_20' ) end [2025-04-11 10:28:19] Production.INFO: ProcessCDR(1,14883610,1,1,2) [2025-04-11 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883610', 'tblTempUsageDetail_20' ) start [2025-04-11 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883610', 'tblTempUsageDetail_20' ) end [2025-04-11 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:28:24] Production.INFO: ==31294== Releasing lock... [2025-04-11 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:28:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-11 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:29:06 [end_date_ymd] => 2025-04-11 10:29:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:29:06' and `end` < '2025-04-11 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-04-11 10:29:19] Production.INFO: count ==2180 [2025-04-11 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:29:06 - End Time 2025-04-11 10:29:06 [2025-04-11 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883615', 'tblTempUsageDetail_20' ) start [2025-04-11 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883615', 'tblTempUsageDetail_20' ) end [2025-04-11 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883615', 'tblTempVendorCDR_20' ) start [2025-04-11 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883615', 'tblTempVendorCDR_20' ) end [2025-04-11 10:29:20] Production.INFO: ProcessCDR(1,14883615,1,1,2) [2025-04-11 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883615', 'tblTempUsageDetail_20' ) start [2025-04-11 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883615', 'tblTempUsageDetail_20' ) end [2025-04-11 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:29:25] Production.INFO: ==31368== Releasing lock... [2025-04-11 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:29:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-11 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:30:06 [end_date_ymd] => 2025-04-11 10:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:30:06' and `end` < '2025-04-11 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-04-11 10:30:19] Production.INFO: count ==2192 [2025-04-11 10:30:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:30:06 - End Time 2025-04-11 10:30:06 [2025-04-11 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883620', 'tblTempUsageDetail_20' ) start [2025-04-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883620', 'tblTempUsageDetail_20' ) end [2025-04-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883620', 'tblTempVendorCDR_20' ) start [2025-04-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883620', 'tblTempVendorCDR_20' ) end [2025-04-11 10:30:20] Production.INFO: ProcessCDR(1,14883620,1,1,2) [2025-04-11 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883620', 'tblTempUsageDetail_20' ) start [2025-04-11 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883620', 'tblTempUsageDetail_20' ) end [2025-04-11 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:30:25] Production.INFO: ==31450== Releasing lock... [2025-04-11 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:30:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-11 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:31:05 [end_date_ymd] => 2025-04-11 10:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:31:05' and `end` < '2025-04-11 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-04-11 10:31:18] Production.INFO: count ==2320 [2025-04-11 10:31:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:31:05 - End Time 2025-04-11 10:31:05 [2025-04-11 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883626', 'tblTempUsageDetail_20' ) start [2025-04-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883626', 'tblTempUsageDetail_20' ) end [2025-04-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883626', 'tblTempVendorCDR_20' ) start [2025-04-11 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883626', 'tblTempVendorCDR_20' ) end [2025-04-11 10:31:19] Production.INFO: ProcessCDR(1,14883626,1,1,2) [2025-04-11 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883626', 'tblTempUsageDetail_20' ) start [2025-04-11 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883626', 'tblTempUsageDetail_20' ) end [2025-04-11 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:31:25] Production.INFO: ==31526== Releasing lock... [2025-04-11 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:31:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-11 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:32:06 [end_date_ymd] => 2025-04-11 10:32:06 [RateCDR] => 1 ) [2025-04-11 10: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-04-11 07:32:06' and `end` < '2025-04-11 10: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-04-11 10:32:19] Production.INFO: count ==2339 [2025-04-11 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:32:06 - End Time 2025-04-11 10:32:06 [2025-04-11 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883631', 'tblTempUsageDetail_20' ) start [2025-04-11 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883631', 'tblTempUsageDetail_20' ) end [2025-04-11 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883631', 'tblTempVendorCDR_20' ) start [2025-04-11 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883631', 'tblTempVendorCDR_20' ) end [2025-04-11 10:32:20] Production.INFO: ProcessCDR(1,14883631,1,1,2) [2025-04-11 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883631', 'tblTempUsageDetail_20' ) start [2025-04-11 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883631', 'tblTempUsageDetail_20' ) end [2025-04-11 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:32:25] Production.INFO: ==31596== Releasing lock... [2025-04-11 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:32:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-11 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:33:05 [end_date_ymd] => 2025-04-11 10:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:33:05' and `end` < '2025-04-11 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:33:19] Production.INFO: count ==2350 [2025-04-11 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:33:05 - End Time 2025-04-11 10:33:05 [2025-04-11 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883636', 'tblTempUsageDetail_20' ) start [2025-04-11 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883636', 'tblTempUsageDetail_20' ) end [2025-04-11 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883636', 'tblTempVendorCDR_20' ) start [2025-04-11 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883636', 'tblTempVendorCDR_20' ) end [2025-04-11 10:33:20] Production.INFO: ProcessCDR(1,14883636,1,1,2) [2025-04-11 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883636', 'tblTempUsageDetail_20' ) start [2025-04-11 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883636', 'tblTempUsageDetail_20' ) end [2025-04-11 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:33:25] Production.INFO: ==31670== Releasing lock... [2025-04-11 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:33:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-11 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:34:05 [end_date_ymd] => 2025-04-11 10:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:34:05' and `end` < '2025-04-11 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-04-11 10:34:18] Production.INFO: count ==2359 [2025-04-11 10:34:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:34:05 - End Time 2025-04-11 10:34:05 [2025-04-11 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883641', 'tblTempUsageDetail_20' ) start [2025-04-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883641', 'tblTempUsageDetail_20' ) end [2025-04-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883641', 'tblTempVendorCDR_20' ) start [2025-04-11 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883641', 'tblTempVendorCDR_20' ) end [2025-04-11 10:34:19] Production.INFO: ProcessCDR(1,14883641,1,1,2) [2025-04-11 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883641', 'tblTempUsageDetail_20' ) start [2025-04-11 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883641', 'tblTempUsageDetail_20' ) end [2025-04-11 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:34:25] Production.INFO: ==31743== Releasing lock... [2025-04-11 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:34:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-11 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:35:05 [end_date_ymd] => 2025-04-11 10:35:05 [RateCDR] => 1 ) [2025-04-11 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:35:05' and `end` < '2025-04-11 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:35:18] Production.INFO: count ==2365 [2025-04-11 10:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:35:05 - End Time 2025-04-11 10:35:05 [2025-04-11 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883646', 'tblTempUsageDetail_20' ) start [2025-04-11 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883646', 'tblTempUsageDetail_20' ) end [2025-04-11 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883646', 'tblTempVendorCDR_20' ) start [2025-04-11 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883646', 'tblTempVendorCDR_20' ) end [2025-04-11 10:35:19] Production.INFO: ProcessCDR(1,14883646,1,1,2) [2025-04-11 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883646', 'tblTempUsageDetail_20' ) start [2025-04-11 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883646', 'tblTempUsageDetail_20' ) end [2025-04-11 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:35:25] Production.INFO: ==31816== Releasing lock... [2025-04-11 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:35:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-11 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:36:05 [end_date_ymd] => 2025-04-11 10:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:36:05' and `end` < '2025-04-11 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-04-11 10:36:18] Production.INFO: count ==2417 [2025-04-11 10:36:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:36:05 - End Time 2025-04-11 10:36:05 [2025-04-11 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883651', 'tblTempUsageDetail_20' ) start [2025-04-11 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883651', 'tblTempUsageDetail_20' ) end [2025-04-11 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883651', 'tblTempVendorCDR_20' ) start [2025-04-11 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883651', 'tblTempVendorCDR_20' ) end [2025-04-11 10:36:19] Production.INFO: ProcessCDR(1,14883651,1,1,2) [2025-04-11 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883651', 'tblTempUsageDetail_20' ) start [2025-04-11 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883651', 'tblTempUsageDetail_20' ) end [2025-04-11 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:36:24] Production.INFO: ==31886== Releasing lock... [2025-04-11 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:36:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-11 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:37:05 [end_date_ymd] => 2025-04-11 10:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:37:05' and `end` < '2025-04-11 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-04-11 10:37:19] Production.INFO: count ==2443 [2025-04-11 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:37:05 - End Time 2025-04-11 10:37:05 [2025-04-11 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883656', 'tblTempUsageDetail_20' ) start [2025-04-11 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883656', 'tblTempUsageDetail_20' ) end [2025-04-11 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883656', 'tblTempVendorCDR_20' ) start [2025-04-11 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883656', 'tblTempVendorCDR_20' ) end [2025-04-11 10:37:20] Production.INFO: ProcessCDR(1,14883656,1,1,2) [2025-04-11 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883656', 'tblTempUsageDetail_20' ) start [2025-04-11 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883656', 'tblTempUsageDetail_20' ) end [2025-04-11 10:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:37:26] Production.INFO: ==31962== Releasing lock... [2025-04-11 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:37:26] Production.INFO: 46.5 MB #Memory Used# [2025-04-11 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:38:06 [end_date_ymd] => 2025-04-11 10:38:06 [RateCDR] => 1 ) [2025-04-11 10: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-04-11 07:38:06' and `end` < '2025-04-11 10: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-04-11 10:38:19] Production.INFO: count ==2446 [2025-04-11 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:38:06 - End Time 2025-04-11 10:38:06 [2025-04-11 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883661', 'tblTempUsageDetail_20' ) start [2025-04-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883661', 'tblTempUsageDetail_20' ) end [2025-04-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883661', 'tblTempVendorCDR_20' ) start [2025-04-11 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883661', 'tblTempVendorCDR_20' ) end [2025-04-11 10:38:20] Production.INFO: ProcessCDR(1,14883661,1,1,2) [2025-04-11 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883661', 'tblTempUsageDetail_20' ) start [2025-04-11 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883661', 'tblTempUsageDetail_20' ) end [2025-04-11 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:38:25] Production.INFO: ==32035== Releasing lock... [2025-04-11 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:38:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-11 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:39:05 [end_date_ymd] => 2025-04-11 10:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:39:05' and `end` < '2025-04-11 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-04-11 10:39:19] Production.INFO: count ==2457 [2025-04-11 10:39:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:39:05 - End Time 2025-04-11 10:39:05 [2025-04-11 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883666', 'tblTempUsageDetail_20' ) start [2025-04-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883666', 'tblTempUsageDetail_20' ) end [2025-04-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883666', 'tblTempVendorCDR_20' ) start [2025-04-11 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883666', 'tblTempVendorCDR_20' ) end [2025-04-11 10:39:19] Production.INFO: ProcessCDR(1,14883666,1,1,2) [2025-04-11 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883666', 'tblTempUsageDetail_20' ) start [2025-04-11 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883666', 'tblTempUsageDetail_20' ) end [2025-04-11 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:39:23] Production.INFO: ==32107== Releasing lock... [2025-04-11 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:39:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-11 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:40:06 [end_date_ymd] => 2025-04-11 10:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:40:06' and `end` < '2025-04-11 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-04-11 10:40:20] Production.INFO: count ==2488 [2025-04-11 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:40:06 - End Time 2025-04-11 10:40:06 [2025-04-11 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883671', 'tblTempUsageDetail_20' ) start [2025-04-11 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883671', 'tblTempUsageDetail_20' ) end [2025-04-11 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883671', 'tblTempVendorCDR_20' ) start [2025-04-11 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883671', 'tblTempVendorCDR_20' ) end [2025-04-11 10:40:21] Production.INFO: ProcessCDR(1,14883671,1,1,2) [2025-04-11 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883671', 'tblTempUsageDetail_20' ) start [2025-04-11 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883671', 'tblTempUsageDetail_20' ) end [2025-04-11 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:40:26] Production.INFO: ==32187== Releasing lock... [2025-04-11 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:40:26] Production.INFO: 46.75 MB #Memory Used# [2025-04-11 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:41:05 [end_date_ymd] => 2025-04-11 10:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:41:05' and `end` < '2025-04-11 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-04-11 10:41:18] Production.INFO: count ==2615 [2025-04-11 10:41:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:41:05 - End Time 2025-04-11 10:41:05 [2025-04-11 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883677', 'tblTempUsageDetail_20' ) start [2025-04-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883677', 'tblTempUsageDetail_20' ) end [2025-04-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883677', 'tblTempVendorCDR_20' ) start [2025-04-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883677', 'tblTempVendorCDR_20' ) end [2025-04-11 10:41:19] Production.INFO: ProcessCDR(1,14883677,1,1,2) [2025-04-11 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883677', 'tblTempUsageDetail_20' ) start [2025-04-11 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883677', 'tblTempUsageDetail_20' ) end [2025-04-11 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:41:24] Production.INFO: ==32257== Releasing lock... [2025-04-11 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:41:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-11 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:42:06 [end_date_ymd] => 2025-04-11 10:42:06 [RateCDR] => 1 ) [2025-04-11 10: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-04-11 07:42:06' and `end` < '2025-04-11 10: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-04-11 10:42:19] Production.INFO: count ==2628 [2025-04-11 10:42:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:42:06 - End Time 2025-04-11 10:42:06 [2025-04-11 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883682', 'tblTempUsageDetail_20' ) start [2025-04-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883682', 'tblTempUsageDetail_20' ) end [2025-04-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883682', 'tblTempVendorCDR_20' ) start [2025-04-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883682', 'tblTempVendorCDR_20' ) end [2025-04-11 10:42:20] Production.INFO: ProcessCDR(1,14883682,1,1,2) [2025-04-11 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883682', 'tblTempUsageDetail_20' ) start [2025-04-11 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883682', 'tblTempUsageDetail_20' ) end [2025-04-11 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:42:25] Production.INFO: ==32332== Releasing lock... [2025-04-11 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:42:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-11 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:43:05 [end_date_ymd] => 2025-04-11 10:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:43:05' and `end` < '2025-04-11 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-04-11 10:43:19] Production.INFO: count ==2634 [2025-04-11 10:43:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:43:05 - End Time 2025-04-11 10:43:05 [2025-04-11 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883687', 'tblTempUsageDetail_20' ) start [2025-04-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883687', 'tblTempUsageDetail_20' ) end [2025-04-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883687', 'tblTempVendorCDR_20' ) start [2025-04-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883687', 'tblTempVendorCDR_20' ) end [2025-04-11 10:43:20] Production.INFO: ProcessCDR(1,14883687,1,1,2) [2025-04-11 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883687', 'tblTempUsageDetail_20' ) start [2025-04-11 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883687', 'tblTempUsageDetail_20' ) end [2025-04-11 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:43:25] Production.INFO: ==32451== Releasing lock... [2025-04-11 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:43:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-11 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:44:05 [end_date_ymd] => 2025-04-11 10:44:05 [RateCDR] => 1 ) [2025-04-11 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:44:05' and `end` < '2025-04-11 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:44:18] Production.INFO: count ==2660 [2025-04-11 10:44:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:44:05 - End Time 2025-04-11 10:44:05 [2025-04-11 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883692', 'tblTempUsageDetail_20' ) start [2025-04-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883692', 'tblTempUsageDetail_20' ) end [2025-04-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883692', 'tblTempVendorCDR_20' ) start [2025-04-11 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883692', 'tblTempVendorCDR_20' ) end [2025-04-11 10:44:19] Production.INFO: ProcessCDR(1,14883692,1,1,2) [2025-04-11 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883692', 'tblTempUsageDetail_20' ) start [2025-04-11 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883692', 'tblTempUsageDetail_20' ) end [2025-04-11 10:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:44:24] Production.INFO: ==32524== Releasing lock... [2025-04-11 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:44:24] Production.INFO: 48 MB #Memory Used# [2025-04-11 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:45:05 [end_date_ymd] => 2025-04-11 10:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:45:05' and `end` < '2025-04-11 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-04-11 10:45:19] Production.INFO: count ==2681 [2025-04-11 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:45:05 - End Time 2025-04-11 10:45:05 [2025-04-11 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883697', 'tblTempUsageDetail_20' ) start [2025-04-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883697', 'tblTempUsageDetail_20' ) end [2025-04-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883697', 'tblTempVendorCDR_20' ) start [2025-04-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883697', 'tblTempVendorCDR_20' ) end [2025-04-11 10:45:20] Production.INFO: ProcessCDR(1,14883697,1,1,2) [2025-04-11 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883697', 'tblTempUsageDetail_20' ) start [2025-04-11 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883697', 'tblTempUsageDetail_20' ) end [2025-04-11 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:45:25] Production.INFO: ==32599== Releasing lock... [2025-04-11 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:45:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-11 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:46:05 [end_date_ymd] => 2025-04-11 10:46:05 [RateCDR] => 1 ) [2025-04-11 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:46:05' and `end` < '2025-04-11 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:46:19] Production.INFO: count ==2703 [2025-04-11 10:46:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:46:05 - End Time 2025-04-11 10:46:05 [2025-04-11 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883702', 'tblTempUsageDetail_20' ) start [2025-04-11 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883702', 'tblTempUsageDetail_20' ) end [2025-04-11 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883702', 'tblTempVendorCDR_20' ) start [2025-04-11 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883702', 'tblTempVendorCDR_20' ) end [2025-04-11 10:46:20] Production.INFO: ProcessCDR(1,14883702,1,1,2) [2025-04-11 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883702', 'tblTempUsageDetail_20' ) start [2025-04-11 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883702', 'tblTempUsageDetail_20' ) end [2025-04-11 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:46:24] Production.INFO: ==32676== Releasing lock... [2025-04-11 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:46:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-11 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:47:06 [end_date_ymd] => 2025-04-11 10:47:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:47:06' and `end` < '2025-04-11 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-04-11 10:47:19] Production.INFO: count ==2720 [2025-04-11 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:47:06 - End Time 2025-04-11 10:47:06 [2025-04-11 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883707', 'tblTempUsageDetail_20' ) start [2025-04-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883707', 'tblTempUsageDetail_20' ) end [2025-04-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883707', 'tblTempVendorCDR_20' ) start [2025-04-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883707', 'tblTempVendorCDR_20' ) end [2025-04-11 10:47:20] Production.INFO: ProcessCDR(1,14883707,1,1,2) [2025-04-11 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883707', 'tblTempUsageDetail_20' ) start [2025-04-11 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883707', 'tblTempUsageDetail_20' ) end [2025-04-11 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:47:25] Production.INFO: ==32747== Releasing lock... [2025-04-11 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:47:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-11 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:48:06 [end_date_ymd] => 2025-04-11 10:48:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:48:06' and `end` < '2025-04-11 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-04-11 10:48:19] Production.INFO: count ==2743 [2025-04-11 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:48:06 - End Time 2025-04-11 10:48:06 [2025-04-11 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883712', 'tblTempUsageDetail_20' ) start [2025-04-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883712', 'tblTempUsageDetail_20' ) end [2025-04-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883712', 'tblTempVendorCDR_20' ) start [2025-04-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883712', 'tblTempVendorCDR_20' ) end [2025-04-11 10:48:20] Production.INFO: ProcessCDR(1,14883712,1,1,2) [2025-04-11 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883712', 'tblTempUsageDetail_20' ) start [2025-04-11 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883712', 'tblTempUsageDetail_20' ) end [2025-04-11 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:48:25] Production.INFO: ==372== Releasing lock... [2025-04-11 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:48:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-11 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:49:04 [end_date_ymd] => 2025-04-11 10:49:04 [RateCDR] => 1 ) [2025-04-11 10:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:49:04' and `end` < '2025-04-11 10:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:49:18] Production.INFO: count ==2753 [2025-04-11 10:49:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:49:04 - End Time 2025-04-11 10:49:04 [2025-04-11 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883717', 'tblTempUsageDetail_20' ) start [2025-04-11 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883717', 'tblTempUsageDetail_20' ) end [2025-04-11 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883717', 'tblTempVendorCDR_20' ) start [2025-04-11 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883717', 'tblTempVendorCDR_20' ) end [2025-04-11 10:49:19] Production.INFO: ProcessCDR(1,14883717,1,1,2) [2025-04-11 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883717', 'tblTempUsageDetail_20' ) start [2025-04-11 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883717', 'tblTempUsageDetail_20' ) end [2025-04-11 10:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:49:24] Production.INFO: ==448== Releasing lock... [2025-04-11 10:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:49:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-11 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:50:06 [end_date_ymd] => 2025-04-11 10:50:06 [RateCDR] => 1 ) [2025-04-11 10: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-04-11 07:50:06' and `end` < '2025-04-11 10: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-04-11 10:50:20] Production.INFO: count ==2758 [2025-04-11 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-11 07:50:06 - End Time 2025-04-11 10:50:06 [2025-04-11 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883723', 'tblTempUsageDetail_20' ) start [2025-04-11 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883723', 'tblTempUsageDetail_20' ) end [2025-04-11 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883723', 'tblTempVendorCDR_20' ) start [2025-04-11 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883723', 'tblTempVendorCDR_20' ) end [2025-04-11 10:50:21] Production.INFO: ProcessCDR(1,14883723,1,1,2) [2025-04-11 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883723', 'tblTempUsageDetail_20' ) start [2025-04-11 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883723', 'tblTempUsageDetail_20' ) end [2025-04-11 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:50:26] Production.INFO: ==523== Releasing lock... [2025-04-11 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:50:26] Production.INFO: 48.75 MB #Memory Used# [2025-04-11 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:51:05 [end_date_ymd] => 2025-04-11 10:51:05 [RateCDR] => 1 ) [2025-04-11 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:51:05' and `end` < '2025-04-11 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:51:18] Production.INFO: count ==2840 [2025-04-11 10:51:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:51:05 - End Time 2025-04-11 10:51:05 [2025-04-11 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883728', 'tblTempUsageDetail_20' ) start [2025-04-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883728', 'tblTempUsageDetail_20' ) end [2025-04-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883728', 'tblTempVendorCDR_20' ) start [2025-04-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883728', 'tblTempVendorCDR_20' ) end [2025-04-11 10:51:19] Production.INFO: ProcessCDR(1,14883728,1,1,2) [2025-04-11 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883728', 'tblTempUsageDetail_20' ) start [2025-04-11 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883728', 'tblTempUsageDetail_20' ) end [2025-04-11 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:51:25] Production.INFO: ==601== Releasing lock... [2025-04-11 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:51:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-11 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:52:05 [end_date_ymd] => 2025-04-11 10:52:05 [RateCDR] => 1 ) [2025-04-11 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:52:05' and `end` < '2025-04-11 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:52:19] Production.INFO: count ==2849 [2025-04-11 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:52:05 - End Time 2025-04-11 10:52:05 [2025-04-11 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883733', 'tblTempUsageDetail_20' ) start [2025-04-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883733', 'tblTempUsageDetail_20' ) end [2025-04-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883733', 'tblTempVendorCDR_20' ) start [2025-04-11 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883733', 'tblTempVendorCDR_20' ) end [2025-04-11 10:52:20] Production.INFO: ProcessCDR(1,14883733,1,1,2) [2025-04-11 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883733', 'tblTempUsageDetail_20' ) start [2025-04-11 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883733', 'tblTempUsageDetail_20' ) end [2025-04-11 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:52:25] Production.INFO: ==773== Releasing lock... [2025-04-11 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:52:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-11 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:53:05 [end_date_ymd] => 2025-04-11 10:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:53:05' and `end` < '2025-04-11 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-04-11 10:53:18] Production.INFO: count ==2871 [2025-04-11 10:53:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:53:05 - End Time 2025-04-11 10:53:05 [2025-04-11 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883738', 'tblTempUsageDetail_20' ) start [2025-04-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883738', 'tblTempUsageDetail_20' ) end [2025-04-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883738', 'tblTempVendorCDR_20' ) start [2025-04-11 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883738', 'tblTempVendorCDR_20' ) end [2025-04-11 10:53:19] Production.INFO: ProcessCDR(1,14883738,1,1,2) [2025-04-11 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883738', 'tblTempUsageDetail_20' ) start [2025-04-11 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883738', 'tblTempUsageDetail_20' ) end [2025-04-11 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:53:25] Production.INFO: ==847== Releasing lock... [2025-04-11 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:53:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-11 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:54:05 [end_date_ymd] => 2025-04-11 10:54:05 [RateCDR] => 1 ) [2025-04-11 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:54:05' and `end` < '2025-04-11 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:54:19] Production.INFO: count ==2865 [2025-04-11 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:54:05 - End Time 2025-04-11 10:54:05 [2025-04-11 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883743', 'tblTempUsageDetail_20' ) start [2025-04-11 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883743', 'tblTempUsageDetail_20' ) end [2025-04-11 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883743', 'tblTempVendorCDR_20' ) start [2025-04-11 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883743', 'tblTempVendorCDR_20' ) end [2025-04-11 10:54:20] Production.INFO: ProcessCDR(1,14883743,1,1,2) [2025-04-11 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883743', 'tblTempUsageDetail_20' ) start [2025-04-11 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883743', 'tblTempUsageDetail_20' ) end [2025-04-11 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:54:26] Production.INFO: ==918== Releasing lock... [2025-04-11 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:54:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-11 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:55:05 [end_date_ymd] => 2025-04-11 10:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:55:05' and `end` < '2025-04-11 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-04-11 10:55:19] Production.INFO: count ==2887 [2025-04-11 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:55:05 - End Time 2025-04-11 10:55:05 [2025-04-11 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883748', 'tblTempUsageDetail_20' ) start [2025-04-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883748', 'tblTempUsageDetail_20' ) end [2025-04-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883748', 'tblTempVendorCDR_20' ) start [2025-04-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883748', 'tblTempVendorCDR_20' ) end [2025-04-11 10:55:20] Production.INFO: ProcessCDR(1,14883748,1,1,2) [2025-04-11 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883748', 'tblTempUsageDetail_20' ) start [2025-04-11 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883748', 'tblTempUsageDetail_20' ) end [2025-04-11 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:55:25] Production.INFO: ==995== Releasing lock... [2025-04-11 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:55:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-11 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:56:05 [end_date_ymd] => 2025-04-11 10:56:05 [RateCDR] => 1 ) [2025-04-11 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:56:05' and `end` < '2025-04-11 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:56:19] Production.INFO: count ==2901 [2025-04-11 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:56:05 - End Time 2025-04-11 10:56:05 [2025-04-11 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883753', 'tblTempUsageDetail_20' ) start [2025-04-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883753', 'tblTempUsageDetail_20' ) end [2025-04-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883753', 'tblTempVendorCDR_20' ) start [2025-04-11 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883753', 'tblTempVendorCDR_20' ) end [2025-04-11 10:56:20] Production.INFO: ProcessCDR(1,14883753,1,1,2) [2025-04-11 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883753', 'tblTempUsageDetail_20' ) start [2025-04-11 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883753', 'tblTempUsageDetail_20' ) end [2025-04-11 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:56:25] Production.INFO: ==1068== Releasing lock... [2025-04-11 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:56:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-11 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:57:05 [end_date_ymd] => 2025-04-11 10:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:57:05' and `end` < '2025-04-11 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-04-11 10:57:18] Production.INFO: count ==2915 [2025-04-11 10:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 07:57:05 - End Time 2025-04-11 10:57:05 [2025-04-11 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883758', 'tblTempUsageDetail_20' ) start [2025-04-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883758', 'tblTempUsageDetail_20' ) end [2025-04-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883758', 'tblTempVendorCDR_20' ) start [2025-04-11 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883758', 'tblTempVendorCDR_20' ) end [2025-04-11 10:57:19] Production.INFO: ProcessCDR(1,14883758,1,1,2) [2025-04-11 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883758', 'tblTempUsageDetail_20' ) start [2025-04-11 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883758', 'tblTempUsageDetail_20' ) end [2025-04-11 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:57:24] Production.INFO: ==1147== Releasing lock... [2025-04-11 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:57:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-11 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:58:05 [end_date_ymd] => 2025-04-11 10:58:05 [RateCDR] => 1 ) [2025-04-11 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 07:58:05' and `end` < '2025-04-11 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 10:58:19] Production.INFO: count ==2925 [2025-04-11 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:58:05 - End Time 2025-04-11 10:58:05 [2025-04-11 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883763', 'tblTempUsageDetail_20' ) start [2025-04-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883763', 'tblTempUsageDetail_20' ) end [2025-04-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883763', 'tblTempVendorCDR_20' ) start [2025-04-11 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883763', 'tblTempVendorCDR_20' ) end [2025-04-11 10:58:20] Production.INFO: ProcessCDR(1,14883763,1,1,2) [2025-04-11 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883763', 'tblTempUsageDetail_20' ) start [2025-04-11 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883763', 'tblTempUsageDetail_20' ) end [2025-04-11 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:58:25] Production.INFO: ==1229== Releasing lock... [2025-04-11 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:58:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-11 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 07:59:05 [end_date_ymd] => 2025-04-11 10:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 07:59:05' and `end` < '2025-04-11 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-04-11 10:59:19] Production.INFO: count ==2941 [2025-04-11 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-11 07:59:05 - End Time 2025-04-11 10:59:05 [2025-04-11 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883768', 'tblTempUsageDetail_20' ) start [2025-04-11 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883768', 'tblTempUsageDetail_20' ) end [2025-04-11 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883768', 'tblTempVendorCDR_20' ) start [2025-04-11 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883768', 'tblTempVendorCDR_20' ) end [2025-04-11 10:59:20] Production.INFO: ProcessCDR(1,14883768,1,1,2) [2025-04-11 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883768', 'tblTempUsageDetail_20' ) start [2025-04-11 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883768', 'tblTempUsageDetail_20' ) end [2025-04-11 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 10:59:25] Production.INFO: ==1354== Releasing lock... [2025-04-11 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 10:59:25] Production.INFO: 50 MB #Memory Used# [2025-04-11 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:00:06 [end_date_ymd] => 2025-04-11 11:00:06 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:00:06' and `end` < '2025-04-11 11: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-04-11 11:00:19] Production.INFO: count ==2947 [2025-04-11 11:00:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:00:06 - End Time 2025-04-11 11:00:06 [2025-04-11 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883773', 'tblTempUsageDetail_20' ) start [2025-04-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883773', 'tblTempUsageDetail_20' ) end [2025-04-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883773', 'tblTempVendorCDR_20' ) start [2025-04-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883773', 'tblTempVendorCDR_20' ) end [2025-04-11 11:00:20] Production.INFO: ProcessCDR(1,14883773,1,1,2) [2025-04-11 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883773', 'tblTempUsageDetail_20' ) start [2025-04-11 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883773', 'tblTempUsageDetail_20' ) end [2025-04-11 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:00:25] Production.INFO: ==1434== Releasing lock... [2025-04-11 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:00:25] Production.INFO: 50 MB #Memory Used# [2025-04-11 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:01:05 [end_date_ymd] => 2025-04-11 11:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:01:05' and `end` < '2025-04-11 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-04-11 11:01:19] Production.INFO: count ==3052 [2025-04-11 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:01:05 - End Time 2025-04-11 11:01:05 [2025-04-11 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883779', 'tblTempUsageDetail_20' ) start [2025-04-11 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883779', 'tblTempUsageDetail_20' ) end [2025-04-11 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883779', 'tblTempVendorCDR_20' ) start [2025-04-11 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883779', 'tblTempVendorCDR_20' ) end [2025-04-11 11:01:20] Production.INFO: ProcessCDR(1,14883779,1,1,2) [2025-04-11 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883779', 'tblTempUsageDetail_20' ) start [2025-04-11 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883779', 'tblTempUsageDetail_20' ) end [2025-04-11 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:01:25] Production.INFO: ==1605== Releasing lock... [2025-04-11 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:01:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-11 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:02:05 [end_date_ymd] => 2025-04-11 11:02:05 [RateCDR] => 1 ) [2025-04-11 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:02:05' and `end` < '2025-04-11 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:02:19] Production.INFO: count ==3084 [2025-04-11 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:02:05 - End Time 2025-04-11 11:02:05 [2025-04-11 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883784', 'tblTempUsageDetail_20' ) start [2025-04-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883784', 'tblTempUsageDetail_20' ) end [2025-04-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883784', 'tblTempVendorCDR_20' ) start [2025-04-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883784', 'tblTempVendorCDR_20' ) end [2025-04-11 11:02:20] Production.INFO: ProcessCDR(1,14883784,1,1,2) [2025-04-11 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883784', 'tblTempUsageDetail_20' ) start [2025-04-11 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883784', 'tblTempUsageDetail_20' ) end [2025-04-11 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:02:25] Production.INFO: ==1719== Releasing lock... [2025-04-11 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:02:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-11 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:03:05 [end_date_ymd] => 2025-04-11 11:03:05 [RateCDR] => 1 ) [2025-04-11 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:03:05' and `end` < '2025-04-11 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:03:19] Production.INFO: count ==3086 [2025-04-11 11:03:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:03:05 - End Time 2025-04-11 11:03:05 [2025-04-11 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883789', 'tblTempUsageDetail_20' ) start [2025-04-11 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883789', 'tblTempUsageDetail_20' ) end [2025-04-11 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883789', 'tblTempVendorCDR_20' ) start [2025-04-11 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883789', 'tblTempVendorCDR_20' ) end [2025-04-11 11:03:20] Production.INFO: ProcessCDR(1,14883789,1,1,2) [2025-04-11 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883789', 'tblTempUsageDetail_20' ) start [2025-04-11 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883789', 'tblTempUsageDetail_20' ) end [2025-04-11 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:03:25] Production.INFO: ==1792== Releasing lock... [2025-04-11 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:03:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-11 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:04:05 [end_date_ymd] => 2025-04-11 11:04:05 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:04:05' and `end` < '2025-04-11 11: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-04-11 11:04:19] Production.INFO: count ==3094 [2025-04-11 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:04:05 - End Time 2025-04-11 11:04:05 [2025-04-11 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883794', 'tblTempUsageDetail_20' ) start [2025-04-11 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883794', 'tblTempUsageDetail_20' ) end [2025-04-11 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883794', 'tblTempVendorCDR_20' ) start [2025-04-11 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883794', 'tblTempVendorCDR_20' ) end [2025-04-11 11:04:20] Production.INFO: ProcessCDR(1,14883794,1,1,2) [2025-04-11 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883794', 'tblTempUsageDetail_20' ) start [2025-04-11 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883794', 'tblTempUsageDetail_20' ) end [2025-04-11 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:04:25] Production.INFO: ==1867== Releasing lock... [2025-04-11 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:04:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-11 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:05:06 [end_date_ymd] => 2025-04-11 11:05:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:05:06' and `end` < '2025-04-11 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-04-11 11:05:19] Production.INFO: count ==3104 [2025-04-11 11:05:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:05:06 - End Time 2025-04-11 11:05:06 [2025-04-11 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883799', 'tblTempUsageDetail_20' ) start [2025-04-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883799', 'tblTempUsageDetail_20' ) end [2025-04-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883799', 'tblTempVendorCDR_20' ) start [2025-04-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883799', 'tblTempVendorCDR_20' ) end [2025-04-11 11:05:21] Production.INFO: ProcessCDR(1,14883799,1,1,2) [2025-04-11 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883799', 'tblTempUsageDetail_20' ) start [2025-04-11 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883799', 'tblTempUsageDetail_20' ) end [2025-04-11 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:05:26] Production.INFO: ==2019== Releasing lock... [2025-04-11 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:05:26] Production.INFO: 52 MB #Memory Used# [2025-04-11 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:06:05 [end_date_ymd] => 2025-04-11 11:06:05 [RateCDR] => 1 ) [2025-04-11 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:06:05' and `end` < '2025-04-11 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:06:19] Production.INFO: count ==3114 [2025-04-11 11:06:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:06:05 - End Time 2025-04-11 11:06:05 [2025-04-11 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883804', 'tblTempUsageDetail_20' ) start [2025-04-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883804', 'tblTempUsageDetail_20' ) end [2025-04-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883804', 'tblTempVendorCDR_20' ) start [2025-04-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883804', 'tblTempVendorCDR_20' ) end [2025-04-11 11:06:20] Production.INFO: ProcessCDR(1,14883804,1,1,2) [2025-04-11 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883804', 'tblTempUsageDetail_20' ) start [2025-04-11 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883804', 'tblTempUsageDetail_20' ) end [2025-04-11 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:06:25] Production.INFO: ==2091== Releasing lock... [2025-04-11 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:06:25] Production.INFO: 51.5 MB #Memory Used# [2025-04-11 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:07:05 [end_date_ymd] => 2025-04-11 11:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:07:05' and `end` < '2025-04-11 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-04-11 11:07:19] Production.INFO: count ==3118 [2025-04-11 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:07:05 - End Time 2025-04-11 11:07:05 [2025-04-11 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883809', 'tblTempUsageDetail_20' ) start [2025-04-11 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883809', 'tblTempUsageDetail_20' ) end [2025-04-11 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883809', 'tblTempVendorCDR_20' ) start [2025-04-11 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883809', 'tblTempVendorCDR_20' ) end [2025-04-11 11:07:20] Production.INFO: ProcessCDR(1,14883809,1,1,2) [2025-04-11 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883809', 'tblTempUsageDetail_20' ) start [2025-04-11 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883809', 'tblTempUsageDetail_20' ) end [2025-04-11 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:07:25] Production.INFO: ==2164== Releasing lock... [2025-04-11 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:07:25] Production.INFO: 51.5 MB #Memory Used# [2025-04-11 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:08:06 [end_date_ymd] => 2025-04-11 11:08:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:08:06' and `end` < '2025-04-11 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-04-11 11:08:22] Production.INFO: count ==3127 [2025-04-11 11:08:23] Production.ERROR: pbx CDR StartTime 2025-04-11 08:08:06 - End Time 2025-04-11 11:08:06 [2025-04-11 11:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883814', 'tblTempUsageDetail_20' ) start [2025-04-11 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883814', 'tblTempUsageDetail_20' ) end [2025-04-11 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883814', 'tblTempVendorCDR_20' ) start [2025-04-11 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883814', 'tblTempVendorCDR_20' ) end [2025-04-11 11:08:23] Production.INFO: ProcessCDR(1,14883814,1,1,2) [2025-04-11 11:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883814', 'tblTempUsageDetail_20' ) start [2025-04-11 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883814', 'tblTempUsageDetail_20' ) end [2025-04-11 11:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:08:28] Production.INFO: ==2319== Releasing lock... [2025-04-11 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:08:28] Production.INFO: 51.5 MB #Memory Used# [2025-04-11 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:09:05 [end_date_ymd] => 2025-04-11 11:09:05 [RateCDR] => 1 ) [2025-04-11 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:09:05' and `end` < '2025-04-11 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:09:19] Production.INFO: count ==3138 [2025-04-11 11:09:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:09:05 - End Time 2025-04-11 11:09:05 [2025-04-11 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883819', 'tblTempUsageDetail_20' ) start [2025-04-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883819', 'tblTempUsageDetail_20' ) end [2025-04-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883819', 'tblTempVendorCDR_20' ) start [2025-04-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883819', 'tblTempVendorCDR_20' ) end [2025-04-11 11:09:20] Production.INFO: ProcessCDR(1,14883819,1,1,2) [2025-04-11 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883819', 'tblTempUsageDetail_20' ) start [2025-04-11 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883819', 'tblTempUsageDetail_20' ) end [2025-04-11 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:09:25] Production.INFO: ==2394== Releasing lock... [2025-04-11 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:09:25] Production.INFO: 51.5 MB #Memory Used# [2025-04-11 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:10:07 [end_date_ymd] => 2025-04-11 11:10:07 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:10:07' and `end` < '2025-04-11 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-04-11 11:10:22] Production.INFO: count ==3140 [2025-04-11 11:10:23] Production.ERROR: pbx CDR StartTime 2025-04-11 08:10:07 - End Time 2025-04-11 11:10:07 [2025-04-11 11:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883825', 'tblTempUsageDetail_20' ) start [2025-04-11 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883825', 'tblTempUsageDetail_20' ) end [2025-04-11 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883825', 'tblTempVendorCDR_20' ) start [2025-04-11 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883825', 'tblTempVendorCDR_20' ) end [2025-04-11 11:10:23] Production.INFO: ProcessCDR(1,14883825,1,1,2) [2025-04-11 11:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883825', 'tblTempUsageDetail_20' ) start [2025-04-11 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883825', 'tblTempUsageDetail_20' ) end [2025-04-11 11:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:10:28] Production.INFO: ==2467== Releasing lock... [2025-04-11 11:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:10:28] Production.INFO: 51.75 MB #Memory Used# [2025-04-11 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:11:05 [end_date_ymd] => 2025-04-11 11:11:05 [RateCDR] => 1 ) [2025-04-11 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:11:05' and `end` < '2025-04-11 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:11:19] Production.INFO: count ==3267 [2025-04-11 11:11:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:11:05 - End Time 2025-04-11 11:11:05 [2025-04-11 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883830', 'tblTempUsageDetail_20' ) start [2025-04-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883830', 'tblTempUsageDetail_20' ) end [2025-04-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883830', 'tblTempVendorCDR_20' ) start [2025-04-11 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883830', 'tblTempVendorCDR_20' ) end [2025-04-11 11:11:20] Production.INFO: ProcessCDR(1,14883830,1,1,2) [2025-04-11 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883830', 'tblTempUsageDetail_20' ) start [2025-04-11 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883830', 'tblTempUsageDetail_20' ) end [2025-04-11 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:11:25] Production.INFO: ==2547== Releasing lock... [2025-04-11 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:11:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-11 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:12:06 [end_date_ymd] => 2025-04-11 11:12:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:12:06' and `end` < '2025-04-11 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-04-11 11:12:20] Production.INFO: count ==3306 [2025-04-11 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:12:06 - End Time 2025-04-11 11:12:06 [2025-04-11 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883835', 'tblTempUsageDetail_20' ) start [2025-04-11 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883835', 'tblTempUsageDetail_20' ) end [2025-04-11 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883835', 'tblTempVendorCDR_20' ) start [2025-04-11 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883835', 'tblTempVendorCDR_20' ) end [2025-04-11 11:12:21] Production.INFO: ProcessCDR(1,14883835,1,1,2) [2025-04-11 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883835', 'tblTempUsageDetail_20' ) start [2025-04-11 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883835', 'tblTempUsageDetail_20' ) end [2025-04-11 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:12:27] Production.INFO: ==2700== Releasing lock... [2025-04-11 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:12:27] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:13:05 [end_date_ymd] => 2025-04-11 11:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:13:05' and `end` < '2025-04-11 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-04-11 11:13:19] Production.INFO: count ==3314 [2025-04-11 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:13:05 - End Time 2025-04-11 11:13:05 [2025-04-11 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883840', 'tblTempUsageDetail_20' ) start [2025-04-11 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883840', 'tblTempUsageDetail_20' ) end [2025-04-11 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883840', 'tblTempVendorCDR_20' ) start [2025-04-11 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883840', 'tblTempVendorCDR_20' ) end [2025-04-11 11:13:20] Production.INFO: ProcessCDR(1,14883840,1,1,2) [2025-04-11 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883840', 'tblTempUsageDetail_20' ) start [2025-04-11 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883840', 'tblTempUsageDetail_20' ) end [2025-04-11 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:13:25] Production.INFO: ==2772== Releasing lock... [2025-04-11 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:13:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:14:05 [end_date_ymd] => 2025-04-11 11:14:05 [RateCDR] => 1 ) [2025-04-11 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:14:05' and `end` < '2025-04-11 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:14:19] Production.INFO: count ==3316 [2025-04-11 11:14:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:14:05 - End Time 2025-04-11 11:14:05 [2025-04-11 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883845', 'tblTempUsageDetail_20' ) start [2025-04-11 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883845', 'tblTempUsageDetail_20' ) end [2025-04-11 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883845', 'tblTempVendorCDR_20' ) start [2025-04-11 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883845', 'tblTempVendorCDR_20' ) end [2025-04-11 11:14:20] Production.INFO: ProcessCDR(1,14883845,1,1,2) [2025-04-11 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883845', 'tblTempUsageDetail_20' ) start [2025-04-11 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883845', 'tblTempUsageDetail_20' ) end [2025-04-11 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:14:25] Production.INFO: ==2892== Releasing lock... [2025-04-11 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:14:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:15:05 [end_date_ymd] => 2025-04-11 11:15:05 [RateCDR] => 1 ) [2025-04-11 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:15:05' and `end` < '2025-04-11 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:15:19] Production.INFO: count ==3311 [2025-04-11 11:15:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:15:05 - End Time 2025-04-11 11:15:05 [2025-04-11 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883850', 'tblTempUsageDetail_20' ) start [2025-04-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883850', 'tblTempUsageDetail_20' ) end [2025-04-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883850', 'tblTempVendorCDR_20' ) start [2025-04-11 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883850', 'tblTempVendorCDR_20' ) end [2025-04-11 11:15:20] Production.INFO: ProcessCDR(1,14883850,1,1,2) [2025-04-11 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883850', 'tblTempUsageDetail_20' ) start [2025-04-11 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883850', 'tblTempUsageDetail_20' ) end [2025-04-11 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:15:25] Production.INFO: ==3045== Releasing lock... [2025-04-11 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:15:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:16:05 [end_date_ymd] => 2025-04-11 11:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:16:05' and `end` < '2025-04-11 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-04-11 11:16:19] Production.INFO: count ==3306 [2025-04-11 11:16:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:16:05 - End Time 2025-04-11 11:16:05 [2025-04-11 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883855', 'tblTempUsageDetail_20' ) start [2025-04-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883855', 'tblTempUsageDetail_20' ) end [2025-04-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883855', 'tblTempVendorCDR_20' ) start [2025-04-11 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883855', 'tblTempVendorCDR_20' ) end [2025-04-11 11:16:20] Production.INFO: ProcessCDR(1,14883855,1,1,2) [2025-04-11 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883855', 'tblTempUsageDetail_20' ) start [2025-04-11 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883855', 'tblTempUsageDetail_20' ) end [2025-04-11 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:16:26] Production.INFO: ==3119== Releasing lock... [2025-04-11 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:16:26] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:17:05 [end_date_ymd] => 2025-04-11 11:17:05 [RateCDR] => 1 ) [2025-04-11 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:17:05' and `end` < '2025-04-11 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:17:18] Production.INFO: count ==3307 [2025-04-11 11:17:19] Production.ERROR: pbx CDR StartTime 2025-04-11 08:17:05 - End Time 2025-04-11 11:17:05 [2025-04-11 11:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883860', 'tblTempUsageDetail_20' ) start [2025-04-11 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883860', 'tblTempUsageDetail_20' ) end [2025-04-11 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883860', 'tblTempVendorCDR_20' ) start [2025-04-11 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883860', 'tblTempVendorCDR_20' ) end [2025-04-11 11:17:19] Production.INFO: ProcessCDR(1,14883860,1,1,2) [2025-04-11 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883860', 'tblTempUsageDetail_20' ) start [2025-04-11 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883860', 'tblTempUsageDetail_20' ) end [2025-04-11 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:17:25] Production.INFO: ==3190== Releasing lock... [2025-04-11 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:17:25] Production.INFO: 53 MB #Memory Used# [2025-04-11 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:18:05 [end_date_ymd] => 2025-04-11 11:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:18:05' and `end` < '2025-04-11 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-04-11 11:18:18] Production.INFO: count ==3332 [2025-04-11 11:18:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:18:05 - End Time 2025-04-11 11:18:05 [2025-04-11 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883865', 'tblTempUsageDetail_20' ) start [2025-04-11 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883865', 'tblTempUsageDetail_20' ) end [2025-04-11 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883865', 'tblTempVendorCDR_20' ) start [2025-04-11 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883865', 'tblTempVendorCDR_20' ) end [2025-04-11 11:18:20] Production.INFO: ProcessCDR(1,14883865,1,1,2) [2025-04-11 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883865', 'tblTempUsageDetail_20' ) start [2025-04-11 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883865', 'tblTempUsageDetail_20' ) end [2025-04-11 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:18:25] Production.INFO: ==3270== Releasing lock... [2025-04-11 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:18:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:19:05 [end_date_ymd] => 2025-04-11 11:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:19:05' and `end` < '2025-04-11 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-04-11 11:19:19] Production.INFO: count ==3330 [2025-04-11 11:19:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:19:05 - End Time 2025-04-11 11:19:05 [2025-04-11 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883870', 'tblTempUsageDetail_20' ) start [2025-04-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883870', 'tblTempUsageDetail_20' ) end [2025-04-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883870', 'tblTempVendorCDR_20' ) start [2025-04-11 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883870', 'tblTempVendorCDR_20' ) end [2025-04-11 11:19:20] Production.INFO: ProcessCDR(1,14883870,1,1,2) [2025-04-11 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883870', 'tblTempUsageDetail_20' ) start [2025-04-11 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883870', 'tblTempUsageDetail_20' ) end [2025-04-11 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:19:25] Production.INFO: ==3342== Releasing lock... [2025-04-11 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:19:25] Production.INFO: 53 MB #Memory Used# [2025-04-11 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:20:06 [end_date_ymd] => 2025-04-11 11:20:06 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:20:06' and `end` < '2025-04-11 11: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-04-11 11:20:20] Production.INFO: count ==3328 [2025-04-11 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:20:06 - End Time 2025-04-11 11:20:06 [2025-04-11 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883875', 'tblTempUsageDetail_20' ) start [2025-04-11 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883875', 'tblTempUsageDetail_20' ) end [2025-04-11 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883875', 'tblTempVendorCDR_20' ) start [2025-04-11 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883875', 'tblTempVendorCDR_20' ) end [2025-04-11 11:20:21] Production.INFO: ProcessCDR(1,14883875,1,1,2) [2025-04-11 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883875', 'tblTempUsageDetail_20' ) start [2025-04-11 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883875', 'tblTempUsageDetail_20' ) end [2025-04-11 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:20:26] Production.INFO: ==3418== Releasing lock... [2025-04-11 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:20:26] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:21:05 [end_date_ymd] => 2025-04-11 11:21:05 [RateCDR] => 1 ) [2025-04-11 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:21:05' and `end` < '2025-04-11 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:21:19] Production.INFO: count ==3415 [2025-04-11 11:21:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:21:05 - End Time 2025-04-11 11:21:05 [2025-04-11 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883881', 'tblTempUsageDetail_20' ) start [2025-04-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883881', 'tblTempUsageDetail_20' ) end [2025-04-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883881', 'tblTempVendorCDR_20' ) start [2025-04-11 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883881', 'tblTempVendorCDR_20' ) end [2025-04-11 11:21:20] Production.INFO: ProcessCDR(1,14883881,1,1,2) [2025-04-11 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883881', 'tblTempUsageDetail_20' ) start [2025-04-11 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883881', 'tblTempUsageDetail_20' ) end [2025-04-11 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:21:26] Production.INFO: ==3494== Releasing lock... [2025-04-11 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:21:26] Production.INFO: 53.5 MB #Memory Used# [2025-04-11 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:22:05 [end_date_ymd] => 2025-04-11 11:22:05 [RateCDR] => 1 ) [2025-04-11 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:22:05' and `end` < '2025-04-11 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:22:18] Production.INFO: count ==3435 [2025-04-11 11:22:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:22:05 - End Time 2025-04-11 11:22:05 [2025-04-11 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883886', 'tblTempUsageDetail_20' ) start [2025-04-11 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883886', 'tblTempUsageDetail_20' ) end [2025-04-11 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883886', 'tblTempVendorCDR_20' ) start [2025-04-11 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883886', 'tblTempVendorCDR_20' ) end [2025-04-11 11:22:20] Production.INFO: ProcessCDR(1,14883886,1,1,2) [2025-04-11 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883886', 'tblTempUsageDetail_20' ) start [2025-04-11 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883886', 'tblTempUsageDetail_20' ) end [2025-04-11 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:22:25] Production.INFO: ==3565== Releasing lock... [2025-04-11 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:22:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-11 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:23:05 [end_date_ymd] => 2025-04-11 11:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:23:05' and `end` < '2025-04-11 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-04-11 11:23:19] Production.INFO: count ==3474 [2025-04-11 11:23:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:23:05 - End Time 2025-04-11 11:23:05 [2025-04-11 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883891', 'tblTempUsageDetail_20' ) start [2025-04-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883891', 'tblTempUsageDetail_20' ) end [2025-04-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883891', 'tblTempVendorCDR_20' ) start [2025-04-11 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883891', 'tblTempVendorCDR_20' ) end [2025-04-11 11:23:20] Production.INFO: ProcessCDR(1,14883891,1,1,2) [2025-04-11 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883891', 'tblTempUsageDetail_20' ) start [2025-04-11 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883891', 'tblTempUsageDetail_20' ) end [2025-04-11 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:23:26] Production.INFO: ==3638== Releasing lock... [2025-04-11 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:23:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-11 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:24:05 [end_date_ymd] => 2025-04-11 11:24:05 [RateCDR] => 1 ) [2025-04-11 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:24:05' and `end` < '2025-04-11 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:24:18] Production.INFO: count ==3474 [2025-04-11 11:24:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:24:05 - End Time 2025-04-11 11:24:05 [2025-04-11 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883896', 'tblTempUsageDetail_20' ) start [2025-04-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883896', 'tblTempUsageDetail_20' ) end [2025-04-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883896', 'tblTempVendorCDR_20' ) start [2025-04-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883896', 'tblTempVendorCDR_20' ) end [2025-04-11 11:24:20] Production.INFO: ProcessCDR(1,14883896,1,1,2) [2025-04-11 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883896', 'tblTempUsageDetail_20' ) start [2025-04-11 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883896', 'tblTempUsageDetail_20' ) end [2025-04-11 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:24:25] Production.INFO: ==3716== Releasing lock... [2025-04-11 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:24:25] Production.INFO: 54 MB #Memory Used# [2025-04-11 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:25:05 [end_date_ymd] => 2025-04-11 11:25:05 [RateCDR] => 1 ) [2025-04-11 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:25:05' and `end` < '2025-04-11 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:25:19] Production.INFO: count ==3498 [2025-04-11 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:25:05 - End Time 2025-04-11 11:25:05 [2025-04-11 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883901', 'tblTempUsageDetail_20' ) start [2025-04-11 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883901', 'tblTempUsageDetail_20' ) end [2025-04-11 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883901', 'tblTempVendorCDR_20' ) start [2025-04-11 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883901', 'tblTempVendorCDR_20' ) end [2025-04-11 11:25:20] Production.INFO: ProcessCDR(1,14883901,1,1,2) [2025-04-11 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883901', 'tblTempUsageDetail_20' ) start [2025-04-11 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883901', 'tblTempUsageDetail_20' ) end [2025-04-11 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:25:25] Production.INFO: ==3790== Releasing lock... [2025-04-11 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:25:25] Production.INFO: 54 MB #Memory Used# [2025-04-11 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:26:05 [end_date_ymd] => 2025-04-11 11:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:26:05' and `end` < '2025-04-11 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-04-11 11:26:18] Production.INFO: count ==3513 [2025-04-11 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:26:05 - End Time 2025-04-11 11:26:05 [2025-04-11 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883906', 'tblTempUsageDetail_20' ) start [2025-04-11 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883906', 'tblTempUsageDetail_20' ) end [2025-04-11 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883906', 'tblTempVendorCDR_20' ) start [2025-04-11 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883906', 'tblTempVendorCDR_20' ) end [2025-04-11 11:26:20] Production.INFO: ProcessCDR(1,14883906,1,1,2) [2025-04-11 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883906', 'tblTempUsageDetail_20' ) start [2025-04-11 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883906', 'tblTempUsageDetail_20' ) end [2025-04-11 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:26:25] Production.INFO: ==3860== Releasing lock... [2025-04-11 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:26:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-11 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:27:05 [end_date_ymd] => 2025-04-11 11:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:27:05' and `end` < '2025-04-11 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-04-11 11:27:18] Production.INFO: count ==3523 [2025-04-11 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:27:05 - End Time 2025-04-11 11:27:05 [2025-04-11 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883911', 'tblTempUsageDetail_20' ) start [2025-04-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883911', 'tblTempUsageDetail_20' ) end [2025-04-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883911', 'tblTempVendorCDR_20' ) start [2025-04-11 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883911', 'tblTempVendorCDR_20' ) end [2025-04-11 11:27:20] Production.INFO: ProcessCDR(1,14883911,1,1,2) [2025-04-11 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883911', 'tblTempUsageDetail_20' ) start [2025-04-11 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883911', 'tblTempUsageDetail_20' ) end [2025-04-11 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:27:25] Production.INFO: ==3939== Releasing lock... [2025-04-11 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:27:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-11 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:28:05 [end_date_ymd] => 2025-04-11 11:28:05 [RateCDR] => 1 ) [2025-04-11 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:28:05' and `end` < '2025-04-11 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:28:18] Production.INFO: count ==3525 [2025-04-11 11:28:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:28:05 - End Time 2025-04-11 11:28:05 [2025-04-11 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883916', 'tblTempUsageDetail_20' ) start [2025-04-11 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883916', 'tblTempUsageDetail_20' ) end [2025-04-11 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883916', 'tblTempVendorCDR_20' ) start [2025-04-11 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883916', 'tblTempVendorCDR_20' ) end [2025-04-11 11:28:20] Production.INFO: ProcessCDR(1,14883916,1,1,2) [2025-04-11 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883916', 'tblTempUsageDetail_20' ) start [2025-04-11 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883916', 'tblTempUsageDetail_20' ) end [2025-04-11 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:28:25] Production.INFO: ==4010== Releasing lock... [2025-04-11 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:28:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:29:05 [end_date_ymd] => 2025-04-11 11:29:05 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:29:05' and `end` < '2025-04-11 11: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-04-11 11:29:19] Production.INFO: count ==3541 [2025-04-11 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:29:05 - End Time 2025-04-11 11:29:05 [2025-04-11 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883921', 'tblTempUsageDetail_20' ) start [2025-04-11 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883921', 'tblTempUsageDetail_20' ) end [2025-04-11 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883921', 'tblTempVendorCDR_20' ) start [2025-04-11 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883921', 'tblTempVendorCDR_20' ) end [2025-04-11 11:29:21] Production.INFO: ProcessCDR(1,14883921,1,1,2) [2025-04-11 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883921', 'tblTempUsageDetail_20' ) start [2025-04-11 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883921', 'tblTempUsageDetail_20' ) end [2025-04-11 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:29:26] Production.INFO: ==4085== Releasing lock... [2025-04-11 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:29:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-11 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:30:05 [end_date_ymd] => 2025-04-11 11:30:05 [RateCDR] => 1 ) [2025-04-11 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:30:05' and `end` < '2025-04-11 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:30:19] Production.INFO: count ==3545 [2025-04-11 11:30:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:30:05 - End Time 2025-04-11 11:30:05 [2025-04-11 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883926', 'tblTempUsageDetail_20' ) start [2025-04-11 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883926', 'tblTempUsageDetail_20' ) end [2025-04-11 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883926', 'tblTempVendorCDR_20' ) start [2025-04-11 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883926', 'tblTempVendorCDR_20' ) end [2025-04-11 11:30:20] Production.INFO: ProcessCDR(1,14883926,1,1,2) [2025-04-11 11:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883926', 'tblTempUsageDetail_20' ) start [2025-04-11 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883926', 'tblTempUsageDetail_20' ) end [2025-04-11 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:30:26] Production.INFO: ==4204== Releasing lock... [2025-04-11 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:30:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-11 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:31:05 [end_date_ymd] => 2025-04-11 11:31:05 [RateCDR] => 1 ) [2025-04-11 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:31:05' and `end` < '2025-04-11 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:31:18] Production.INFO: count ==3625 [2025-04-11 11:31:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:31:05 - End Time 2025-04-11 11:31:05 [2025-04-11 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883932', 'tblTempUsageDetail_20' ) start [2025-04-11 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883932', 'tblTempUsageDetail_20' ) end [2025-04-11 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883932', 'tblTempVendorCDR_20' ) start [2025-04-11 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883932', 'tblTempVendorCDR_20' ) end [2025-04-11 11:31:20] Production.INFO: ProcessCDR(1,14883932,1,1,2) [2025-04-11 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883932', 'tblTempUsageDetail_20' ) start [2025-04-11 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883932', 'tblTempUsageDetail_20' ) end [2025-04-11 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:31:25] Production.INFO: ==4280== Releasing lock... [2025-04-11 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:31:25] Production.INFO: 55 MB #Memory Used# [2025-04-11 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:32:06 [end_date_ymd] => 2025-04-11 11:32:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:32:06' and `end` < '2025-04-11 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-04-11 11:32:19] Production.INFO: count ==3629 [2025-04-11 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:32:06 - End Time 2025-04-11 11:32:06 [2025-04-11 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883937', 'tblTempUsageDetail_20' ) start [2025-04-11 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883937', 'tblTempUsageDetail_20' ) end [2025-04-11 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883937', 'tblTempVendorCDR_20' ) start [2025-04-11 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883937', 'tblTempVendorCDR_20' ) end [2025-04-11 11:32:21] Production.INFO: ProcessCDR(1,14883937,1,1,2) [2025-04-11 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883937', 'tblTempUsageDetail_20' ) start [2025-04-11 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883937', 'tblTempUsageDetail_20' ) end [2025-04-11 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:32:26] Production.INFO: ==4350== Releasing lock... [2025-04-11 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:32:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-11 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:33:05 [end_date_ymd] => 2025-04-11 11:33:05 [RateCDR] => 1 ) [2025-04-11 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:33:05' and `end` < '2025-04-11 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:33:18] Production.INFO: count ==3637 [2025-04-11 11:33:19] Production.ERROR: pbx CDR StartTime 2025-04-11 08:33:05 - End Time 2025-04-11 11:33:05 [2025-04-11 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883942', 'tblTempUsageDetail_20' ) start [2025-04-11 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883942', 'tblTempUsageDetail_20' ) end [2025-04-11 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883942', 'tblTempVendorCDR_20' ) start [2025-04-11 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883942', 'tblTempVendorCDR_20' ) end [2025-04-11 11:33:20] Production.INFO: ProcessCDR(1,14883942,1,1,2) [2025-04-11 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883942', 'tblTempUsageDetail_20' ) start [2025-04-11 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883942', 'tblTempUsageDetail_20' ) end [2025-04-11 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:33:24] Production.INFO: ==4424== Releasing lock... [2025-04-11 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:33:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:34:06 [end_date_ymd] => 2025-04-11 11:34:06 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:34:06' and `end` < '2025-04-11 11: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-04-11 11:34:20] Production.INFO: count ==3647 [2025-04-11 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:34:06 - End Time 2025-04-11 11:34:06 [2025-04-11 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883947', 'tblTempUsageDetail_20' ) start [2025-04-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883947', 'tblTempUsageDetail_20' ) end [2025-04-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883947', 'tblTempVendorCDR_20' ) start [2025-04-11 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883947', 'tblTempVendorCDR_20' ) end [2025-04-11 11:34:21] Production.INFO: ProcessCDR(1,14883947,1,1,2) [2025-04-11 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883947', 'tblTempUsageDetail_20' ) start [2025-04-11 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883947', 'tblTempUsageDetail_20' ) end [2025-04-11 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:34:27] Production.INFO: ==4495== Releasing lock... [2025-04-11 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:34:27] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:35:05 [end_date_ymd] => 2025-04-11 11:35:05 [RateCDR] => 1 ) [2025-04-11 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:35:05' and `end` < '2025-04-11 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:35:19] Production.INFO: count ==3649 [2025-04-11 11:35:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:35:05 - End Time 2025-04-11 11:35:05 [2025-04-11 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883952', 'tblTempUsageDetail_20' ) start [2025-04-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883952', 'tblTempUsageDetail_20' ) end [2025-04-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883952', 'tblTempVendorCDR_20' ) start [2025-04-11 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883952', 'tblTempVendorCDR_20' ) end [2025-04-11 11:35:20] Production.INFO: ProcessCDR(1,14883952,1,1,2) [2025-04-11 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883952', 'tblTempUsageDetail_20' ) start [2025-04-11 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883952', 'tblTempUsageDetail_20' ) end [2025-04-11 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:35:26] Production.INFO: ==4565== Releasing lock... [2025-04-11 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:35:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:36:05 [end_date_ymd] => 2025-04-11 11:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:36:05' and `end` < '2025-04-11 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-04-11 11:36:19] Production.INFO: count ==3658 [2025-04-11 11:36:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:36:05 - End Time 2025-04-11 11:36:05 [2025-04-11 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883957', 'tblTempUsageDetail_20' ) start [2025-04-11 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883957', 'tblTempUsageDetail_20' ) end [2025-04-11 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883957', 'tblTempVendorCDR_20' ) start [2025-04-11 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883957', 'tblTempVendorCDR_20' ) end [2025-04-11 11:36:20] Production.INFO: ProcessCDR(1,14883957,1,1,2) [2025-04-11 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883957', 'tblTempUsageDetail_20' ) start [2025-04-11 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883957', 'tblTempUsageDetail_20' ) end [2025-04-11 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:36:25] Production.INFO: ==4645== Releasing lock... [2025-04-11 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:36:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:37:05 [end_date_ymd] => 2025-04-11 11:37:05 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:37:05' and `end` < '2025-04-11 11: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-04-11 11:37:18] Production.INFO: count ==3684 [2025-04-11 11:37:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:37:05 - End Time 2025-04-11 11:37:05 [2025-04-11 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883962', 'tblTempUsageDetail_20' ) start [2025-04-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883962', 'tblTempUsageDetail_20' ) end [2025-04-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883962', 'tblTempVendorCDR_20' ) start [2025-04-11 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883962', 'tblTempVendorCDR_20' ) end [2025-04-11 11:37:20] Production.INFO: ProcessCDR(1,14883962,1,1,2) [2025-04-11 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883962', 'tblTempUsageDetail_20' ) start [2025-04-11 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883962', 'tblTempUsageDetail_20' ) end [2025-04-11 11:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:37:26] Production.INFO: ==4733== Releasing lock... [2025-04-11 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:37:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-11 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:38:06 [end_date_ymd] => 2025-04-11 11:38:06 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:38:06' and `end` < '2025-04-11 11: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-04-11 11:38:19] Production.INFO: count ==3697 [2025-04-11 11:38:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:38:06 - End Time 2025-04-11 11:38:06 [2025-04-11 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883967', 'tblTempUsageDetail_20' ) start [2025-04-11 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883967', 'tblTempUsageDetail_20' ) end [2025-04-11 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883967', 'tblTempVendorCDR_20' ) start [2025-04-11 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883967', 'tblTempVendorCDR_20' ) end [2025-04-11 11:38:21] Production.INFO: ProcessCDR(1,14883967,1,1,2) [2025-04-11 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883967', 'tblTempUsageDetail_20' ) start [2025-04-11 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883967', 'tblTempUsageDetail_20' ) end [2025-04-11 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:38:26] Production.INFO: ==4808== Releasing lock... [2025-04-11 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:38:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:39:05 [end_date_ymd] => 2025-04-11 11:39:05 [RateCDR] => 1 ) [2025-04-11 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:39:05' and `end` < '2025-04-11 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:39:19] Production.INFO: count ==3707 [2025-04-11 11:39:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:39:05 - End Time 2025-04-11 11:39:05 [2025-04-11 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883972', 'tblTempUsageDetail_20' ) start [2025-04-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883972', 'tblTempUsageDetail_20' ) end [2025-04-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883972', 'tblTempVendorCDR_20' ) start [2025-04-11 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883972', 'tblTempVendorCDR_20' ) end [2025-04-11 11:39:20] Production.INFO: ProcessCDR(1,14883972,1,1,2) [2025-04-11 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883972', 'tblTempUsageDetail_20' ) start [2025-04-11 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883972', 'tblTempUsageDetail_20' ) end [2025-04-11 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:39:26] Production.INFO: ==4883== Releasing lock... [2025-04-11 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:39:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-11 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:40:06 [end_date_ymd] => 2025-04-11 11:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:40:06' and `end` < '2025-04-11 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-04-11 11:40:20] Production.INFO: count ==3721 [2025-04-11 11:40:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:40:06 - End Time 2025-04-11 11:40:06 [2025-04-11 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883977', 'tblTempUsageDetail_20' ) start [2025-04-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883977', 'tblTempUsageDetail_20' ) end [2025-04-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883977', 'tblTempVendorCDR_20' ) start [2025-04-11 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883977', 'tblTempVendorCDR_20' ) end [2025-04-11 11:40:21] Production.INFO: ProcessCDR(1,14883977,1,1,2) [2025-04-11 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883977', 'tblTempUsageDetail_20' ) start [2025-04-11 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883977', 'tblTempUsageDetail_20' ) end [2025-04-11 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:40:27] Production.INFO: ==4958== Releasing lock... [2025-04-11 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:40:27] Production.INFO: 55.75 MB #Memory Used# [2025-04-11 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:41:05 [end_date_ymd] => 2025-04-11 11:41:05 [RateCDR] => 1 ) [2025-04-11 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:41:05' and `end` < '2025-04-11 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:41:19] Production.INFO: count ==3817 [2025-04-11 11:41:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:41:05 - End Time 2025-04-11 11:41:05 [2025-04-11 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883983', 'tblTempUsageDetail_20' ) start [2025-04-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883983', 'tblTempUsageDetail_20' ) end [2025-04-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883983', 'tblTempVendorCDR_20' ) start [2025-04-11 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883983', 'tblTempVendorCDR_20' ) end [2025-04-11 11:41:20] Production.INFO: ProcessCDR(1,14883983,1,1,2) [2025-04-11 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883983', 'tblTempUsageDetail_20' ) start [2025-04-11 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883983', 'tblTempUsageDetail_20' ) end [2025-04-11 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:41:25] Production.INFO: ==5030== Releasing lock... [2025-04-11 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:41:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-11 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:42:05 [end_date_ymd] => 2025-04-11 11:42:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:42:05' and `end` < '2025-04-11 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-04-11 11:42:19] Production.INFO: count ==3824 [2025-04-11 11:42:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:42:05 - End Time 2025-04-11 11:42:05 [2025-04-11 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883988', 'tblTempUsageDetail_20' ) start [2025-04-11 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883988', 'tblTempUsageDetail_20' ) end [2025-04-11 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883988', 'tblTempVendorCDR_20' ) start [2025-04-11 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883988', 'tblTempVendorCDR_20' ) end [2025-04-11 11:42:20] Production.INFO: ProcessCDR(1,14883988,1,1,2) [2025-04-11 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883988', 'tblTempUsageDetail_20' ) start [2025-04-11 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883988', 'tblTempUsageDetail_20' ) end [2025-04-11 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:42:26] Production.INFO: ==5103== Releasing lock... [2025-04-11 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:42:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-11 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:43:05 [end_date_ymd] => 2025-04-11 11:43:05 [RateCDR] => 1 ) [2025-04-11 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:43:05' and `end` < '2025-04-11 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:43:19] Production.INFO: count ==3830 [2025-04-11 11:43:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:43:05 - End Time 2025-04-11 11:43:05 [2025-04-11 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883993', 'tblTempUsageDetail_20' ) start [2025-04-11 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883993', 'tblTempUsageDetail_20' ) end [2025-04-11 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883993', 'tblTempVendorCDR_20' ) start [2025-04-11 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883993', 'tblTempVendorCDR_20' ) end [2025-04-11 11:43:20] Production.INFO: ProcessCDR(1,14883993,1,1,2) [2025-04-11 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883993', 'tblTempUsageDetail_20' ) start [2025-04-11 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883993', 'tblTempUsageDetail_20' ) end [2025-04-11 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:43:25] Production.INFO: ==5175== Releasing lock... [2025-04-11 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:43:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-11 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:44:05 [end_date_ymd] => 2025-04-11 11:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:44:05' and `end` < '2025-04-11 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-04-11 11:44:19] Production.INFO: count ==3879 [2025-04-11 11:44:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:44:05 - End Time 2025-04-11 11:44:05 [2025-04-11 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883998', 'tblTempUsageDetail_20' ) start [2025-04-11 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14883998', 'tblTempUsageDetail_20' ) end [2025-04-11 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883998', 'tblTempVendorCDR_20' ) start [2025-04-11 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14883998', 'tblTempVendorCDR_20' ) end [2025-04-11 11:44:20] Production.INFO: ProcessCDR(1,14883998,1,1,2) [2025-04-11 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14883998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14883998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14883998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14883998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883998', 'tblTempUsageDetail_20' ) start [2025-04-11 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14883998', 'tblTempUsageDetail_20' ) end [2025-04-11 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:44:26] Production.INFO: ==5245== Releasing lock... [2025-04-11 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:44:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:45:04 [end_date_ymd] => 2025-04-11 11:45:04 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:45:04' and `end` < '2025-04-11 11: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-04-11 11:45:18] Production.INFO: count ==3892 [2025-04-11 11:45:19] Production.ERROR: pbx CDR StartTime 2025-04-11 08:45:04 - End Time 2025-04-11 11:45:04 [2025-04-11 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884003', 'tblTempUsageDetail_20' ) start [2025-04-11 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884003', 'tblTempUsageDetail_20' ) end [2025-04-11 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884003', 'tblTempVendorCDR_20' ) start [2025-04-11 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884003', 'tblTempVendorCDR_20' ) end [2025-04-11 11:45:19] Production.INFO: ProcessCDR(1,14884003,1,1,2) [2025-04-11 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884003', 'tblTempUsageDetail_20' ) start [2025-04-11 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884003', 'tblTempUsageDetail_20' ) end [2025-04-11 11:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:45:24] Production.INFO: ==5357== Releasing lock... [2025-04-11 11:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:45:24] Production.INFO: 57 MB #Memory Used# [2025-04-11 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:46:05 [end_date_ymd] => 2025-04-11 11:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:46:05' and `end` < '2025-04-11 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-04-11 11:46:19] Production.INFO: count ==3901 [2025-04-11 11:46:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:46:05 - End Time 2025-04-11 11:46:05 [2025-04-11 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884008', 'tblTempUsageDetail_20' ) start [2025-04-11 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884008', 'tblTempUsageDetail_20' ) end [2025-04-11 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884008', 'tblTempVendorCDR_20' ) start [2025-04-11 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884008', 'tblTempVendorCDR_20' ) end [2025-04-11 11:46:20] Production.INFO: ProcessCDR(1,14884008,1,1,2) [2025-04-11 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884008', 'tblTempUsageDetail_20' ) start [2025-04-11 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884008', 'tblTempUsageDetail_20' ) end [2025-04-11 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:46:25] Production.INFO: ==5432== Releasing lock... [2025-04-11 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:46:25] Production.INFO: 57 MB #Memory Used# [2025-04-11 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:47:05 [end_date_ymd] => 2025-04-11 11:47:05 [RateCDR] => 1 ) [2025-04-11 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:47:05' and `end` < '2025-04-11 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:47:19] Production.INFO: count ==3912 [2025-04-11 11:47:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:47:05 - End Time 2025-04-11 11:47:05 [2025-04-11 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884013', 'tblTempUsageDetail_20' ) start [2025-04-11 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884013', 'tblTempUsageDetail_20' ) end [2025-04-11 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884013', 'tblTempVendorCDR_20' ) start [2025-04-11 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884013', 'tblTempVendorCDR_20' ) end [2025-04-11 11:47:21] Production.INFO: ProcessCDR(1,14884013,1,1,2) [2025-04-11 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884013', 'tblTempUsageDetail_20' ) start [2025-04-11 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884013', 'tblTempUsageDetail_20' ) end [2025-04-11 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:47:26] Production.INFO: ==5503== Releasing lock... [2025-04-11 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:47:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:48:06 [end_date_ymd] => 2025-04-11 11:48:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:48:06' and `end` < '2025-04-11 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-04-11 11:48:19] Production.INFO: count ==3912 [2025-04-11 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:48:06 - End Time 2025-04-11 11:48:06 [2025-04-11 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884018', 'tblTempUsageDetail_20' ) start [2025-04-11 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884018', 'tblTempUsageDetail_20' ) end [2025-04-11 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884018', 'tblTempVendorCDR_20' ) start [2025-04-11 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884018', 'tblTempVendorCDR_20' ) end [2025-04-11 11:48:21] Production.INFO: ProcessCDR(1,14884018,1,1,2) [2025-04-11 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884018', 'tblTempUsageDetail_20' ) start [2025-04-11 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884018', 'tblTempUsageDetail_20' ) end [2025-04-11 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:48:27] Production.INFO: ==5578== Releasing lock... [2025-04-11 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:48:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:49:06 [end_date_ymd] => 2025-04-11 11:49:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:49:06' and `end` < '2025-04-11 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-04-11 11:49:20] Production.INFO: count ==3944 [2025-04-11 11:49:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:49:06 - End Time 2025-04-11 11:49:06 [2025-04-11 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884023', 'tblTempUsageDetail_20' ) start [2025-04-11 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884023', 'tblTempUsageDetail_20' ) end [2025-04-11 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884023', 'tblTempVendorCDR_20' ) start [2025-04-11 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884023', 'tblTempVendorCDR_20' ) end [2025-04-11 11:49:21] Production.INFO: ProcessCDR(1,14884023,1,1,2) [2025-04-11 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884023', 'tblTempUsageDetail_20' ) start [2025-04-11 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884023', 'tblTempUsageDetail_20' ) end [2025-04-11 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:49:27] Production.INFO: ==5650== Releasing lock... [2025-04-11 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:49:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:50:06 [end_date_ymd] => 2025-04-11 11:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:50:06' and `end` < '2025-04-11 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-04-11 11:50:20] Production.INFO: count ==3951 [2025-04-11 11:50:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:50:06 - End Time 2025-04-11 11:50:06 [2025-04-11 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884029', 'tblTempUsageDetail_20' ) start [2025-04-11 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884029', 'tblTempUsageDetail_20' ) end [2025-04-11 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884029', 'tblTempVendorCDR_20' ) start [2025-04-11 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884029', 'tblTempVendorCDR_20' ) end [2025-04-11 11:50:22] Production.INFO: ProcessCDR(1,14884029,1,1,2) [2025-04-11 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884029', 'tblTempUsageDetail_20' ) start [2025-04-11 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884029', 'tblTempUsageDetail_20' ) end [2025-04-11 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:50:27] Production.INFO: ==5727== Releasing lock... [2025-04-11 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:50:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:51:05 [end_date_ymd] => 2025-04-11 11:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:51:05' and `end` < '2025-04-11 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-04-11 11:51:19] Production.INFO: count ==4056 [2025-04-11 11:51:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:51:05 - End Time 2025-04-11 11:51:05 [2025-04-11 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884034', 'tblTempUsageDetail_20' ) start [2025-04-11 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884034', 'tblTempUsageDetail_20' ) end [2025-04-11 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884034', 'tblTempVendorCDR_20' ) start [2025-04-11 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884034', 'tblTempVendorCDR_20' ) end [2025-04-11 11:51:20] Production.INFO: ProcessCDR(1,14884034,1,1,2) [2025-04-11 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884034', 'tblTempUsageDetail_20' ) start [2025-04-11 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884034', 'tblTempUsageDetail_20' ) end [2025-04-11 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:51:26] Production.INFO: ==5800== Releasing lock... [2025-04-11 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:51:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-11 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:52:06 [end_date_ymd] => 2025-04-11 11:52:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:52:06' and `end` < '2025-04-11 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-04-11 11:52:20] Production.INFO: count ==4063 [2025-04-11 11:52:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:52:06 - End Time 2025-04-11 11:52:06 [2025-04-11 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884039', 'tblTempUsageDetail_20' ) start [2025-04-11 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884039', 'tblTempUsageDetail_20' ) end [2025-04-11 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884039', 'tblTempVendorCDR_20' ) start [2025-04-11 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884039', 'tblTempVendorCDR_20' ) end [2025-04-11 11:52:22] Production.INFO: ProcessCDR(1,14884039,1,1,2) [2025-04-11 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884039', 'tblTempUsageDetail_20' ) start [2025-04-11 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884039', 'tblTempUsageDetail_20' ) end [2025-04-11 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:52:27] Production.INFO: ==5878== Releasing lock... [2025-04-11 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:52:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-11 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:53:05 [end_date_ymd] => 2025-04-11 11:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:53:05' and `end` < '2025-04-11 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-04-11 11:53:19] Production.INFO: count ==4093 [2025-04-11 11:53:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:53:05 - End Time 2025-04-11 11:53:05 [2025-04-11 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884044', 'tblTempUsageDetail_20' ) start [2025-04-11 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884044', 'tblTempUsageDetail_20' ) end [2025-04-11 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884044', 'tblTempVendorCDR_20' ) start [2025-04-11 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884044', 'tblTempVendorCDR_20' ) end [2025-04-11 11:53:20] Production.INFO: ProcessCDR(1,14884044,1,1,2) [2025-04-11 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884044', 'tblTempUsageDetail_20' ) start [2025-04-11 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884044', 'tblTempUsageDetail_20' ) end [2025-04-11 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:53:26] Production.INFO: ==5949== Releasing lock... [2025-04-11 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:53:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:54:05 [end_date_ymd] => 2025-04-11 11:54:05 [RateCDR] => 1 ) [2025-04-11 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 08:54:05' and `end` < '2025-04-11 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 11:54:19] Production.INFO: count ==4108 [2025-04-11 11:54:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:54:05 - End Time 2025-04-11 11:54:05 [2025-04-11 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884049', 'tblTempUsageDetail_20' ) start [2025-04-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884049', 'tblTempUsageDetail_20' ) end [2025-04-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884049', 'tblTempVendorCDR_20' ) start [2025-04-11 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884049', 'tblTempVendorCDR_20' ) end [2025-04-11 11:54:21] Production.INFO: ProcessCDR(1,14884049,1,1,2) [2025-04-11 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884049', 'tblTempUsageDetail_20' ) start [2025-04-11 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884049', 'tblTempUsageDetail_20' ) end [2025-04-11 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:54:27] Production.INFO: ==6024== Releasing lock... [2025-04-11 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:54:27] Production.INFO: 59 MB #Memory Used# [2025-04-11 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:55:05 [end_date_ymd] => 2025-04-11 11:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:55:05' and `end` < '2025-04-11 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-04-11 11:55:19] Production.INFO: count ==4110 [2025-04-11 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:55:05 - End Time 2025-04-11 11:55:05 [2025-04-11 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884054', 'tblTempUsageDetail_20' ) start [2025-04-11 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884054', 'tblTempUsageDetail_20' ) end [2025-04-11 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884054', 'tblTempVendorCDR_20' ) start [2025-04-11 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884054', 'tblTempVendorCDR_20' ) end [2025-04-11 11:55:21] Production.INFO: ProcessCDR(1,14884054,1,1,2) [2025-04-11 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884054', 'tblTempUsageDetail_20' ) start [2025-04-11 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884054', 'tblTempUsageDetail_20' ) end [2025-04-11 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:55:26] Production.INFO: ==6093== Releasing lock... [2025-04-11 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:55:26] Production.INFO: 59 MB #Memory Used# [2025-04-11 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:56:06 [end_date_ymd] => 2025-04-11 11:56:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:56:06' and `end` < '2025-04-11 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-04-11 11:56:20] Production.INFO: count ==4107 [2025-04-11 11:56:22] Production.ERROR: pbx CDR StartTime 2025-04-11 08:56:06 - End Time 2025-04-11 11:56:06 [2025-04-11 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884059', 'tblTempUsageDetail_20' ) start [2025-04-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884059', 'tblTempUsageDetail_20' ) end [2025-04-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884059', 'tblTempVendorCDR_20' ) start [2025-04-11 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884059', 'tblTempVendorCDR_20' ) end [2025-04-11 11:56:22] Production.INFO: ProcessCDR(1,14884059,1,1,2) [2025-04-11 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884059', 'tblTempUsageDetail_20' ) start [2025-04-11 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884059', 'tblTempUsageDetail_20' ) end [2025-04-11 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:56:27] Production.INFO: ==6164== Releasing lock... [2025-04-11 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:56:27] Production.INFO: 58.75 MB #Memory Used# [2025-04-11 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:57:05 [end_date_ymd] => 2025-04-11 11:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:57:05' and `end` < '2025-04-11 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-04-11 11:57:19] Production.INFO: count ==4127 [2025-04-11 11:57:20] Production.ERROR: pbx CDR StartTime 2025-04-11 08:57:05 - End Time 2025-04-11 11:57:05 [2025-04-11 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884064', 'tblTempUsageDetail_20' ) start [2025-04-11 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884064', 'tblTempUsageDetail_20' ) end [2025-04-11 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884064', 'tblTempVendorCDR_20' ) start [2025-04-11 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884064', 'tblTempVendorCDR_20' ) end [2025-04-11 11:57:20] Production.INFO: ProcessCDR(1,14884064,1,1,2) [2025-04-11 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884064', 'tblTempUsageDetail_20' ) start [2025-04-11 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884064', 'tblTempUsageDetail_20' ) end [2025-04-11 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:57:26] Production.INFO: ==6237== Releasing lock... [2025-04-11 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:57:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-11 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:58:06 [end_date_ymd] => 2025-04-11 11:58:06 [RateCDR] => 1 ) [2025-04-11 11: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-04-11 08:58:06' and `end` < '2025-04-11 11: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-04-11 11:58:19] Production.INFO: count ==4134 [2025-04-11 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:58:06 - End Time 2025-04-11 11:58:06 [2025-04-11 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884069', 'tblTempUsageDetail_20' ) start [2025-04-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884069', 'tblTempUsageDetail_20' ) end [2025-04-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884069', 'tblTempVendorCDR_20' ) start [2025-04-11 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884069', 'tblTempVendorCDR_20' ) end [2025-04-11 11:58:21] Production.INFO: ProcessCDR(1,14884069,1,1,2) [2025-04-11 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884069', 'tblTempUsageDetail_20' ) start [2025-04-11 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884069', 'tblTempUsageDetail_20' ) end [2025-04-11 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:58:27] Production.INFO: ==6310== Releasing lock... [2025-04-11 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:58:27] Production.INFO: 59 MB #Memory Used# [2025-04-11 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 08:59:05 [end_date_ymd] => 2025-04-11 11:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 08:59:05' and `end` < '2025-04-11 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-04-11 11:59:19] Production.INFO: count ==4139 [2025-04-11 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-11 08:59:05 - End Time 2025-04-11 11:59:05 [2025-04-11 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884074', 'tblTempUsageDetail_20' ) start [2025-04-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884074', 'tblTempUsageDetail_20' ) end [2025-04-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884074', 'tblTempVendorCDR_20' ) start [2025-04-11 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884074', 'tblTempVendorCDR_20' ) end [2025-04-11 11:59:21] Production.INFO: ProcessCDR(1,14884074,1,1,2) [2025-04-11 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884074', 'tblTempUsageDetail_20' ) start [2025-04-11 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884074', 'tblTempUsageDetail_20' ) end [2025-04-11 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 11:59:27] Production.INFO: ==6380== Releasing lock... [2025-04-11 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 11:59:27] Production.INFO: 59 MB #Memory Used# [2025-04-11 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:00:07 [end_date_ymd] => 2025-04-11 12:00:07 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:00:07' and `end` < '2025-04-11 12: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-04-11 12:00:20] Production.INFO: count ==4164 [2025-04-11 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:00:07 - End Time 2025-04-11 12:00:07 [2025-04-11 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884080', 'tblTempUsageDetail_20' ) start [2025-04-11 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884080', 'tblTempUsageDetail_20' ) end [2025-04-11 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884080', 'tblTempVendorCDR_20' ) start [2025-04-11 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884080', 'tblTempVendorCDR_20' ) end [2025-04-11 12:00:22] Production.INFO: ProcessCDR(1,14884080,1,1,2) [2025-04-11 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884080', 'tblTempUsageDetail_20' ) start [2025-04-11 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884080', 'tblTempUsageDetail_20' ) end [2025-04-11 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:00:28] Production.INFO: ==6455== Releasing lock... [2025-04-11 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:00:28] Production.INFO: 59.25 MB #Memory Used# [2025-04-11 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:01:05 [end_date_ymd] => 2025-04-11 12:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:01:05' and `end` < '2025-04-11 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-04-11 12:01:19] Production.INFO: count ==4271 [2025-04-11 12:01:20] Production.ERROR: pbx CDR StartTime 2025-04-11 09:01:05 - End Time 2025-04-11 12:01:05 [2025-04-11 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884085', 'tblTempUsageDetail_20' ) start [2025-04-11 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884085', 'tblTempUsageDetail_20' ) end [2025-04-11 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884085', 'tblTempVendorCDR_20' ) start [2025-04-11 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884085', 'tblTempVendorCDR_20' ) end [2025-04-11 12:01:20] Production.INFO: ProcessCDR(1,14884085,1,1,2) [2025-04-11 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884085', 'tblTempUsageDetail_20' ) start [2025-04-11 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884085', 'tblTempUsageDetail_20' ) end [2025-04-11 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:01:26] Production.INFO: ==6579== Releasing lock... [2025-04-11 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:01:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:02:05 [end_date_ymd] => 2025-04-11 12:02:05 [RateCDR] => 1 ) [2025-04-11 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:02:05' and `end` < '2025-04-11 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:02:19] Production.INFO: count ==4282 [2025-04-11 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:02:05 - End Time 2025-04-11 12:02:05 [2025-04-11 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884090', 'tblTempUsageDetail_20' ) start [2025-04-11 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884090', 'tblTempUsageDetail_20' ) end [2025-04-11 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884090', 'tblTempVendorCDR_20' ) start [2025-04-11 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884090', 'tblTempVendorCDR_20' ) end [2025-04-11 12:02:21] Production.INFO: ProcessCDR(1,14884090,1,1,2) [2025-04-11 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884090', 'tblTempUsageDetail_20' ) start [2025-04-11 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884090', 'tblTempUsageDetail_20' ) end [2025-04-11 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:02:27] Production.INFO: ==6651== Releasing lock... [2025-04-11 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:02:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:03:06 [end_date_ymd] => 2025-04-11 12:03:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:03:06' and `end` < '2025-04-11 12: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-04-11 12:03:19] Production.INFO: count ==4279 [2025-04-11 12:03:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:03:06 - End Time 2025-04-11 12:03:06 [2025-04-11 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884095', 'tblTempUsageDetail_20' ) start [2025-04-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884095', 'tblTempUsageDetail_20' ) end [2025-04-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884095', 'tblTempVendorCDR_20' ) start [2025-04-11 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884095', 'tblTempVendorCDR_20' ) end [2025-04-11 12:03:21] Production.INFO: ProcessCDR(1,14884095,1,1,2) [2025-04-11 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884095', 'tblTempUsageDetail_20' ) start [2025-04-11 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884095', 'tblTempUsageDetail_20' ) end [2025-04-11 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:03:27] Production.INFO: ==6728== Releasing lock... [2025-04-11 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:03:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:04:06 [end_date_ymd] => 2025-04-11 12:04:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:04:06' and `end` < '2025-04-11 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-04-11 12:04:20] Production.INFO: count ==4272 [2025-04-11 12:04:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:04:06 - End Time 2025-04-11 12:04:06 [2025-04-11 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884100', 'tblTempUsageDetail_20' ) start [2025-04-11 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884100', 'tblTempUsageDetail_20' ) end [2025-04-11 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884100', 'tblTempVendorCDR_20' ) start [2025-04-11 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884100', 'tblTempVendorCDR_20' ) end [2025-04-11 12:04:22] Production.INFO: ProcessCDR(1,14884100,1,1,2) [2025-04-11 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884100', 'tblTempUsageDetail_20' ) start [2025-04-11 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884100', 'tblTempUsageDetail_20' ) end [2025-04-11 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:04:27] Production.INFO: ==6800== Releasing lock... [2025-04-11 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:04:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:05:06 [end_date_ymd] => 2025-04-11 12:05:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:05:06' and `end` < '2025-04-11 12: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-04-11 12:05:19] Production.INFO: count ==4290 [2025-04-11 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:05:06 - End Time 2025-04-11 12:05:06 [2025-04-11 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884105', 'tblTempUsageDetail_20' ) start [2025-04-11 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884105', 'tblTempUsageDetail_20' ) end [2025-04-11 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884105', 'tblTempVendorCDR_20' ) start [2025-04-11 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884105', 'tblTempVendorCDR_20' ) end [2025-04-11 12:05:21] Production.INFO: ProcessCDR(1,14884105,1,1,2) [2025-04-11 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884105', 'tblTempUsageDetail_20' ) start [2025-04-11 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884105', 'tblTempUsageDetail_20' ) end [2025-04-11 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:05:27] Production.INFO: ==6879== Releasing lock... [2025-04-11 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:05:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:06:06 [end_date_ymd] => 2025-04-11 12:06:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:06:06' and `end` < '2025-04-11 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-04-11 12:06:19] Production.INFO: count ==4278 [2025-04-11 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:06:06 - End Time 2025-04-11 12:06:06 [2025-04-11 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884110', 'tblTempUsageDetail_20' ) start [2025-04-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884110', 'tblTempUsageDetail_20' ) end [2025-04-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884110', 'tblTempVendorCDR_20' ) start [2025-04-11 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884110', 'tblTempVendorCDR_20' ) end [2025-04-11 12:06:21] Production.INFO: ProcessCDR(1,14884110,1,1,2) [2025-04-11 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884110', 'tblTempUsageDetail_20' ) start [2025-04-11 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884110', 'tblTempUsageDetail_20' ) end [2025-04-11 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:06:27] Production.INFO: ==6950== Releasing lock... [2025-04-11 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:06:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:07:06 [end_date_ymd] => 2025-04-11 12:07:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:07:06' and `end` < '2025-04-11 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-04-11 12:07:19] Production.INFO: count ==4297 [2025-04-11 12:07:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:07:06 - End Time 2025-04-11 12:07:06 [2025-04-11 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884115', 'tblTempUsageDetail_20' ) start [2025-04-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884115', 'tblTempUsageDetail_20' ) end [2025-04-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884115', 'tblTempVendorCDR_20' ) start [2025-04-11 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884115', 'tblTempVendorCDR_20' ) end [2025-04-11 12:07:21] Production.INFO: ProcessCDR(1,14884115,1,1,2) [2025-04-11 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884115', 'tblTempUsageDetail_20' ) start [2025-04-11 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884115', 'tblTempUsageDetail_20' ) end [2025-04-11 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:07:27] Production.INFO: ==7019== Releasing lock... [2025-04-11 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:07:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:08:06 [end_date_ymd] => 2025-04-11 12:08:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:08:06' and `end` < '2025-04-11 12: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-04-11 12:08:20] Production.INFO: count ==4289 [2025-04-11 12:08:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:08:06 - End Time 2025-04-11 12:08:06 [2025-04-11 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884120', 'tblTempUsageDetail_20' ) start [2025-04-11 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884120', 'tblTempUsageDetail_20' ) end [2025-04-11 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884120', 'tblTempVendorCDR_20' ) start [2025-04-11 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884120', 'tblTempVendorCDR_20' ) end [2025-04-11 12:08:22] Production.INFO: ProcessCDR(1,14884120,1,1,2) [2025-04-11 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884120', 'tblTempUsageDetail_20' ) start [2025-04-11 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884120', 'tblTempUsageDetail_20' ) end [2025-04-11 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:08:28] Production.INFO: ==7108== Releasing lock... [2025-04-11 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:08:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:09:05 [end_date_ymd] => 2025-04-11 12:09:05 [RateCDR] => 1 ) [2025-04-11 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:09:05' and `end` < '2025-04-11 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:09:19] Production.INFO: count ==4290 [2025-04-11 12:09:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:09:05 - End Time 2025-04-11 12:09:05 [2025-04-11 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884125', 'tblTempUsageDetail_20' ) start [2025-04-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884125', 'tblTempUsageDetail_20' ) end [2025-04-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884125', 'tblTempVendorCDR_20' ) start [2025-04-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884125', 'tblTempVendorCDR_20' ) end [2025-04-11 12:09:21] Production.INFO: ProcessCDR(1,14884125,1,1,2) [2025-04-11 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884125', 'tblTempUsageDetail_20' ) start [2025-04-11 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884125', 'tblTempUsageDetail_20' ) end [2025-04-11 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:09:27] Production.INFO: ==7210== Releasing lock... [2025-04-11 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:09:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:10:07 [end_date_ymd] => 2025-04-11 12:10:07 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:10:07' and `end` < '2025-04-11 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-04-11 12:10:21] Production.INFO: count ==4306 [2025-04-11 12:10:23] Production.ERROR: pbx CDR StartTime 2025-04-11 09:10:07 - End Time 2025-04-11 12:10:07 [2025-04-11 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884131', 'tblTempUsageDetail_20' ) start [2025-04-11 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884131', 'tblTempUsageDetail_20' ) end [2025-04-11 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884131', 'tblTempVendorCDR_20' ) start [2025-04-11 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884131', 'tblTempVendorCDR_20' ) end [2025-04-11 12:10:23] Production.INFO: ProcessCDR(1,14884131,1,1,2) [2025-04-11 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884131', 'tblTempUsageDetail_20' ) start [2025-04-11 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884131', 'tblTempUsageDetail_20' ) end [2025-04-11 12:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:10:29] Production.INFO: ==7314== Releasing lock... [2025-04-11 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:10:29] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:11:06 [end_date_ymd] => 2025-04-11 12:11:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:11:06' and `end` < '2025-04-11 12: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-04-11 12:11:19] Production.INFO: count ==4362 [2025-04-11 12:11:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:11:06 - End Time 2025-04-11 12:11:06 [2025-04-11 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884136', 'tblTempUsageDetail_20' ) start [2025-04-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884136', 'tblTempUsageDetail_20' ) end [2025-04-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884136', 'tblTempVendorCDR_20' ) start [2025-04-11 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884136', 'tblTempVendorCDR_20' ) end [2025-04-11 12:11:21] Production.INFO: ProcessCDR(1,14884136,1,1,2) [2025-04-11 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884136', 'tblTempUsageDetail_20' ) start [2025-04-11 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884136', 'tblTempUsageDetail_20' ) end [2025-04-11 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:11:28] Production.INFO: ==7419== Releasing lock... [2025-04-11 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:11:28] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:12:06 [end_date_ymd] => 2025-04-11 12:12:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:12:06' and `end` < '2025-04-11 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-04-11 12:12:20] Production.INFO: count ==4371 [2025-04-11 12:12:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:12:06 - End Time 2025-04-11 12:12:06 [2025-04-11 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884141', 'tblTempUsageDetail_20' ) start [2025-04-11 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884141', 'tblTempUsageDetail_20' ) end [2025-04-11 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884141', 'tblTempVendorCDR_20' ) start [2025-04-11 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884141', 'tblTempVendorCDR_20' ) end [2025-04-11 12:12:22] Production.INFO: ProcessCDR(1,14884141,1,1,2) [2025-04-11 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884141', 'tblTempUsageDetail_20' ) start [2025-04-11 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884141', 'tblTempUsageDetail_20' ) end [2025-04-11 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:12:27] Production.INFO: ==7518== Releasing lock... [2025-04-11 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:12:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:13:05 [end_date_ymd] => 2025-04-11 12:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:13:05' and `end` < '2025-04-11 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-04-11 12:13:19] Production.INFO: count ==4363 [2025-04-11 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:13:05 - End Time 2025-04-11 12:13:05 [2025-04-11 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884146', 'tblTempUsageDetail_20' ) start [2025-04-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884146', 'tblTempUsageDetail_20' ) end [2025-04-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884146', 'tblTempVendorCDR_20' ) start [2025-04-11 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884146', 'tblTempVendorCDR_20' ) end [2025-04-11 12:13:21] Production.INFO: ProcessCDR(1,14884146,1,1,2) [2025-04-11 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884146', 'tblTempUsageDetail_20' ) start [2025-04-11 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884146', 'tblTempUsageDetail_20' ) end [2025-04-11 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:13:26] Production.INFO: ==7618== Releasing lock... [2025-04-11 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:13:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:14:06 [end_date_ymd] => 2025-04-11 12:14:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:14:06' and `end` < '2025-04-11 12: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-04-11 12:14:20] Production.INFO: count ==4368 [2025-04-11 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:14:06 - End Time 2025-04-11 12:14:06 [2025-04-11 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884151', 'tblTempUsageDetail_20' ) start [2025-04-11 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884151', 'tblTempUsageDetail_20' ) end [2025-04-11 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884151', 'tblTempVendorCDR_20' ) start [2025-04-11 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884151', 'tblTempVendorCDR_20' ) end [2025-04-11 12:14:22] Production.INFO: ProcessCDR(1,14884151,1,1,2) [2025-04-11 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884151', 'tblTempUsageDetail_20' ) start [2025-04-11 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884151', 'tblTempUsageDetail_20' ) end [2025-04-11 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:14:28] Production.INFO: ==7719== Releasing lock... [2025-04-11 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:14:28] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:15:06 [end_date_ymd] => 2025-04-11 12:15:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:15:06' and `end` < '2025-04-11 12: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-04-11 12:15:19] Production.INFO: count ==4370 [2025-04-11 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:15:06 - End Time 2025-04-11 12:15:06 [2025-04-11 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884156', 'tblTempUsageDetail_20' ) start [2025-04-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884156', 'tblTempUsageDetail_20' ) end [2025-04-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884156', 'tblTempVendorCDR_20' ) start [2025-04-11 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884156', 'tblTempVendorCDR_20' ) end [2025-04-11 12:15:21] Production.INFO: ProcessCDR(1,14884156,1,1,2) [2025-04-11 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884156', 'tblTempUsageDetail_20' ) start [2025-04-11 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884156', 'tblTempUsageDetail_20' ) end [2025-04-11 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:15:27] Production.INFO: ==7817== Releasing lock... [2025-04-11 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:15:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:16:05 [end_date_ymd] => 2025-04-11 12:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:16:05' and `end` < '2025-04-11 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-04-11 12:16:19] Production.INFO: count ==4371 [2025-04-11 12:16:20] Production.ERROR: pbx CDR StartTime 2025-04-11 09:16:05 - End Time 2025-04-11 12:16:05 [2025-04-11 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884161', 'tblTempUsageDetail_20' ) start [2025-04-11 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884161', 'tblTempUsageDetail_20' ) end [2025-04-11 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884161', 'tblTempVendorCDR_20' ) start [2025-04-11 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884161', 'tblTempVendorCDR_20' ) end [2025-04-11 12:16:21] Production.INFO: ProcessCDR(1,14884161,1,1,2) [2025-04-11 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884161', 'tblTempUsageDetail_20' ) start [2025-04-11 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884161', 'tblTempUsageDetail_20' ) end [2025-04-11 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:16:27] Production.INFO: ==7960== Releasing lock... [2025-04-11 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:16:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:17:05 [end_date_ymd] => 2025-04-11 12:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:17:05' and `end` < '2025-04-11 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-04-11 12:17:19] Production.INFO: count ==4376 [2025-04-11 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:17:05 - End Time 2025-04-11 12:17:05 [2025-04-11 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884166', 'tblTempUsageDetail_20' ) start [2025-04-11 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884166', 'tblTempUsageDetail_20' ) end [2025-04-11 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884166', 'tblTempVendorCDR_20' ) start [2025-04-11 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884166', 'tblTempVendorCDR_20' ) end [2025-04-11 12:17:21] Production.INFO: ProcessCDR(1,14884166,1,1,2) [2025-04-11 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884166', 'tblTempUsageDetail_20' ) start [2025-04-11 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884166', 'tblTempUsageDetail_20' ) end [2025-04-11 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:17:27] Production.INFO: ==8067== Releasing lock... [2025-04-11 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:17:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:18:05 [end_date_ymd] => 2025-04-11 12:18:05 [RateCDR] => 1 ) [2025-04-11 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:18:05' and `end` < '2025-04-11 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:18:19] Production.INFO: count ==4365 [2025-04-11 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:18:05 - End Time 2025-04-11 12:18:05 [2025-04-11 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884171', 'tblTempUsageDetail_20' ) start [2025-04-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884171', 'tblTempUsageDetail_20' ) end [2025-04-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884171', 'tblTempVendorCDR_20' ) start [2025-04-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884171', 'tblTempVendorCDR_20' ) end [2025-04-11 12:18:21] Production.INFO: ProcessCDR(1,14884171,1,1,2) [2025-04-11 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884171', 'tblTempUsageDetail_20' ) start [2025-04-11 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884171', 'tblTempUsageDetail_20' ) end [2025-04-11 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:18:27] Production.INFO: ==8168== Releasing lock... [2025-04-11 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:18:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:19:06 [end_date_ymd] => 2025-04-11 12:19:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:19:06' and `end` < '2025-04-11 12: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-04-11 12:19:19] Production.INFO: count ==4382 [2025-04-11 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:19:06 - End Time 2025-04-11 12:19:06 [2025-04-11 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884176', 'tblTempUsageDetail_20' ) start [2025-04-11 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884176', 'tblTempUsageDetail_20' ) end [2025-04-11 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884176', 'tblTempVendorCDR_20' ) start [2025-04-11 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884176', 'tblTempVendorCDR_20' ) end [2025-04-11 12:19:21] Production.INFO: ProcessCDR(1,14884176,1,1,2) [2025-04-11 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884176', 'tblTempUsageDetail_20' ) start [2025-04-11 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884176', 'tblTempUsageDetail_20' ) end [2025-04-11 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:19:27] Production.INFO: ==8276== Releasing lock... [2025-04-11 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:19:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:20:06 [end_date_ymd] => 2025-04-11 12:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:20:06' and `end` < '2025-04-11 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-04-11 12:20:20] Production.INFO: count ==4374 [2025-04-11 12:20:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:20:06 - End Time 2025-04-11 12:20:06 [2025-04-11 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884182', 'tblTempUsageDetail_20' ) start [2025-04-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884182', 'tblTempUsageDetail_20' ) end [2025-04-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884182', 'tblTempVendorCDR_20' ) start [2025-04-11 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884182', 'tblTempVendorCDR_20' ) end [2025-04-11 12:20:22] Production.INFO: ProcessCDR(1,14884182,1,1,2) [2025-04-11 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884182', 'tblTempUsageDetail_20' ) start [2025-04-11 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884182', 'tblTempUsageDetail_20' ) end [2025-04-11 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:20:26] Production.INFO: ==8377== Releasing lock... [2025-04-11 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:20:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:21:05 [end_date_ymd] => 2025-04-11 12:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:21:05' and `end` < '2025-04-11 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-04-11 12:21:19] Production.INFO: count ==4400 [2025-04-11 12:21:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:21:05 - End Time 2025-04-11 12:21:05 [2025-04-11 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884187', 'tblTempUsageDetail_20' ) start [2025-04-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884187', 'tblTempUsageDetail_20' ) end [2025-04-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884187', 'tblTempVendorCDR_20' ) start [2025-04-11 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884187', 'tblTempVendorCDR_20' ) end [2025-04-11 12:21:21] Production.INFO: ProcessCDR(1,14884187,1,1,2) [2025-04-11 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884187', 'tblTempUsageDetail_20' ) start [2025-04-11 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884187', 'tblTempUsageDetail_20' ) end [2025-04-11 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:21:27] Production.INFO: ==8479== Releasing lock... [2025-04-11 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:21:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:22:05 [end_date_ymd] => 2025-04-11 12:22:05 [RateCDR] => 1 ) [2025-04-11 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:22:05' and `end` < '2025-04-11 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:22:19] Production.INFO: count ==4416 [2025-04-11 12:22:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:22:05 - End Time 2025-04-11 12:22:05 [2025-04-11 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884192', 'tblTempUsageDetail_20' ) start [2025-04-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884192', 'tblTempUsageDetail_20' ) end [2025-04-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884192', 'tblTempVendorCDR_20' ) start [2025-04-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884192', 'tblTempVendorCDR_20' ) end [2025-04-11 12:22:21] Production.INFO: ProcessCDR(1,14884192,1,1,2) [2025-04-11 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884192', 'tblTempUsageDetail_20' ) start [2025-04-11 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884192', 'tblTempUsageDetail_20' ) end [2025-04-11 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:22:27] Production.INFO: ==8584== Releasing lock... [2025-04-11 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:22:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:23:06 [end_date_ymd] => 2025-04-11 12:23:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:23:06' and `end` < '2025-04-11 12: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-04-11 12:23:19] Production.INFO: count ==4416 [2025-04-11 12:23:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:23:06 - End Time 2025-04-11 12:23:06 [2025-04-11 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884197', 'tblTempUsageDetail_20' ) start [2025-04-11 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884197', 'tblTempUsageDetail_20' ) end [2025-04-11 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884197', 'tblTempVendorCDR_20' ) start [2025-04-11 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884197', 'tblTempVendorCDR_20' ) end [2025-04-11 12:23:22] Production.INFO: ProcessCDR(1,14884197,1,1,2) [2025-04-11 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884197', 'tblTempUsageDetail_20' ) start [2025-04-11 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884197', 'tblTempUsageDetail_20' ) end [2025-04-11 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:23:28] Production.INFO: ==8688== Releasing lock... [2025-04-11 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:23:28] Production.INFO: 61 MB #Memory Used# [2025-04-11 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:24:05 [end_date_ymd] => 2025-04-11 12:24:05 [RateCDR] => 1 ) [2025-04-11 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:24:05' and `end` < '2025-04-11 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:24:19] Production.INFO: count ==4412 [2025-04-11 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:24:05 - End Time 2025-04-11 12:24:05 [2025-04-11 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884202', 'tblTempUsageDetail_20' ) start [2025-04-11 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884202', 'tblTempUsageDetail_20' ) end [2025-04-11 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884202', 'tblTempVendorCDR_20' ) start [2025-04-11 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884202', 'tblTempVendorCDR_20' ) end [2025-04-11 12:24:21] Production.INFO: ProcessCDR(1,14884202,1,1,2) [2025-04-11 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884202', 'tblTempUsageDetail_20' ) start [2025-04-11 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884202', 'tblTempUsageDetail_20' ) end [2025-04-11 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:24:27] Production.INFO: ==8789== Releasing lock... [2025-04-11 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:24:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:25:06 [end_date_ymd] => 2025-04-11 12:25:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:25:06' and `end` < '2025-04-11 12: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-04-11 12:25:19] Production.INFO: count ==4419 [2025-04-11 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:25:06 - End Time 2025-04-11 12:25:06 [2025-04-11 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884207', 'tblTempUsageDetail_20' ) start [2025-04-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884207', 'tblTempUsageDetail_20' ) end [2025-04-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884207', 'tblTempVendorCDR_20' ) start [2025-04-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884207', 'tblTempVendorCDR_20' ) end [2025-04-11 12:25:21] Production.INFO: ProcessCDR(1,14884207,1,1,2) [2025-04-11 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884207', 'tblTempUsageDetail_20' ) start [2025-04-11 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884207', 'tblTempUsageDetail_20' ) end [2025-04-11 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:25:28] Production.INFO: ==8891== Releasing lock... [2025-04-11 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:25:28] Production.INFO: 61 MB #Memory Used# [2025-04-11 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:26:05 [end_date_ymd] => 2025-04-11 12:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:26:05' and `end` < '2025-04-11 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-04-11 12:26:19] Production.INFO: count ==4410 [2025-04-11 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:26:05 - End Time 2025-04-11 12:26:05 [2025-04-11 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884212', 'tblTempUsageDetail_20' ) start [2025-04-11 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884212', 'tblTempUsageDetail_20' ) end [2025-04-11 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884212', 'tblTempVendorCDR_20' ) start [2025-04-11 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884212', 'tblTempVendorCDR_20' ) end [2025-04-11 12:26:21] Production.INFO: ProcessCDR(1,14884212,1,1,2) [2025-04-11 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884212', 'tblTempUsageDetail_20' ) start [2025-04-11 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884212', 'tblTempUsageDetail_20' ) end [2025-04-11 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:26:27] Production.INFO: ==8991== Releasing lock... [2025-04-11 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:26:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:27:05 [end_date_ymd] => 2025-04-11 12:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:27:05' and `end` < '2025-04-11 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-04-11 12:27:19] Production.INFO: count ==4426 [2025-04-11 12:27:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:27:05 - End Time 2025-04-11 12:27:05 [2025-04-11 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884217', 'tblTempUsageDetail_20' ) start [2025-04-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884217', 'tblTempUsageDetail_20' ) end [2025-04-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884217', 'tblTempVendorCDR_20' ) start [2025-04-11 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884217', 'tblTempVendorCDR_20' ) end [2025-04-11 12:27:21] Production.INFO: ProcessCDR(1,14884217,1,1,2) [2025-04-11 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884217', 'tblTempUsageDetail_20' ) start [2025-04-11 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884217', 'tblTempUsageDetail_20' ) end [2025-04-11 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:27:27] Production.INFO: ==9093== Releasing lock... [2025-04-11 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:27:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:28:05 [end_date_ymd] => 2025-04-11 12:28:05 [RateCDR] => 1 ) [2025-04-11 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:28:05' and `end` < '2025-04-11 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:28:19] Production.INFO: count ==4429 [2025-04-11 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:28:05 - End Time 2025-04-11 12:28:05 [2025-04-11 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884222', 'tblTempUsageDetail_20' ) start [2025-04-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884222', 'tblTempUsageDetail_20' ) end [2025-04-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884222', 'tblTempVendorCDR_20' ) start [2025-04-11 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884222', 'tblTempVendorCDR_20' ) end [2025-04-11 12:28:21] Production.INFO: ProcessCDR(1,14884222,1,1,2) [2025-04-11 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884222', 'tblTempUsageDetail_20' ) start [2025-04-11 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884222', 'tblTempUsageDetail_20' ) end [2025-04-11 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:28:27] Production.INFO: ==9193== Releasing lock... [2025-04-11 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:28:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:29:06 [end_date_ymd] => 2025-04-11 12:29:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:29:06' and `end` < '2025-04-11 12: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-04-11 12:29:20] Production.INFO: count ==4441 [2025-04-11 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:29:06 - End Time 2025-04-11 12:29:06 [2025-04-11 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884227', 'tblTempUsageDetail_20' ) start [2025-04-11 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884227', 'tblTempUsageDetail_20' ) end [2025-04-11 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884227', 'tblTempVendorCDR_20' ) start [2025-04-11 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884227', 'tblTempVendorCDR_20' ) end [2025-04-11 12:29:22] Production.INFO: ProcessCDR(1,14884227,1,1,2) [2025-04-11 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884227', 'tblTempUsageDetail_20' ) start [2025-04-11 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884227', 'tblTempUsageDetail_20' ) end [2025-04-11 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:29:28] Production.INFO: ==9306== Releasing lock... [2025-04-11 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:29:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:30:06 [end_date_ymd] => 2025-04-11 12:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:30:06' and `end` < '2025-04-11 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-04-11 12:30:19] Production.INFO: count ==4446 [2025-04-11 12:30:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:30:06 - End Time 2025-04-11 12:30:06 [2025-04-11 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884233', 'tblTempUsageDetail_20' ) start [2025-04-11 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884233', 'tblTempUsageDetail_20' ) end [2025-04-11 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884233', 'tblTempVendorCDR_20' ) start [2025-04-11 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884233', 'tblTempVendorCDR_20' ) end [2025-04-11 12:30:21] Production.INFO: ProcessCDR(1,14884233,1,1,2) [2025-04-11 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884233', 'tblTempUsageDetail_20' ) start [2025-04-11 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884233', 'tblTempUsageDetail_20' ) end [2025-04-11 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:30:27] Production.INFO: ==9411== Releasing lock... [2025-04-11 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:30:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:31:05 [end_date_ymd] => 2025-04-11 12:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:31:05' and `end` < '2025-04-11 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-04-11 12:31:19] Production.INFO: count ==4460 [2025-04-11 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:31:05 - End Time 2025-04-11 12:31:05 [2025-04-11 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884238', 'tblTempUsageDetail_20' ) start [2025-04-11 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884238', 'tblTempUsageDetail_20' ) end [2025-04-11 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884238', 'tblTempVendorCDR_20' ) start [2025-04-11 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884238', 'tblTempVendorCDR_20' ) end [2025-04-11 12:31:21] Production.INFO: ProcessCDR(1,14884238,1,1,2) [2025-04-11 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884238', 'tblTempUsageDetail_20' ) start [2025-04-11 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884238', 'tblTempUsageDetail_20' ) end [2025-04-11 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:31:27] Production.INFO: ==9543== Releasing lock... [2025-04-11 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:31:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:32:05 [end_date_ymd] => 2025-04-11 12:32:05 [RateCDR] => 1 ) [2025-04-11 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:32:05' and `end` < '2025-04-11 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:32:19] Production.INFO: count ==4460 [2025-04-11 12:32:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:32:05 - End Time 2025-04-11 12:32:05 [2025-04-11 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884243', 'tblTempUsageDetail_20' ) start [2025-04-11 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884243', 'tblTempUsageDetail_20' ) end [2025-04-11 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884243', 'tblTempVendorCDR_20' ) start [2025-04-11 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884243', 'tblTempVendorCDR_20' ) end [2025-04-11 12:32:21] Production.INFO: ProcessCDR(1,14884243,1,1,2) [2025-04-11 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884243', 'tblTempUsageDetail_20' ) start [2025-04-11 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884243', 'tblTempUsageDetail_20' ) end [2025-04-11 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:32:26] Production.INFO: ==9619== Releasing lock... [2025-04-11 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:32:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:33:06 [end_date_ymd] => 2025-04-11 12:33:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:33:06' and `end` < '2025-04-11 12: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-04-11 12:33:19] Production.INFO: count ==4451 [2025-04-11 12:33:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:33:06 - End Time 2025-04-11 12:33:06 [2025-04-11 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884248', 'tblTempUsageDetail_20' ) start [2025-04-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884248', 'tblTempUsageDetail_20' ) end [2025-04-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884248', 'tblTempVendorCDR_20' ) start [2025-04-11 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884248', 'tblTempVendorCDR_20' ) end [2025-04-11 12:33:21] Production.INFO: ProcessCDR(1,14884248,1,1,2) [2025-04-11 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884248', 'tblTempUsageDetail_20' ) start [2025-04-11 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884248', 'tblTempUsageDetail_20' ) end [2025-04-11 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:33:28] Production.INFO: ==9692== Releasing lock... [2025-04-11 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:33:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:34:06 [end_date_ymd] => 2025-04-11 12:34:06 [RateCDR] => 1 ) [2025-04-11 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:34:06' and `end` < '2025-04-11 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:34:19] Production.INFO: count ==4462 [2025-04-11 12:34:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:34:06 - End Time 2025-04-11 12:34:06 [2025-04-11 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884253', 'tblTempUsageDetail_20' ) start [2025-04-11 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884253', 'tblTempUsageDetail_20' ) end [2025-04-11 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884253', 'tblTempVendorCDR_20' ) start [2025-04-11 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884253', 'tblTempVendorCDR_20' ) end [2025-04-11 12:34:21] Production.INFO: ProcessCDR(1,14884253,1,1,2) [2025-04-11 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884253', 'tblTempUsageDetail_20' ) start [2025-04-11 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884253', 'tblTempUsageDetail_20' ) end [2025-04-11 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:34:27] Production.INFO: ==9767== Releasing lock... [2025-04-11 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:34:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:35:06 [end_date_ymd] => 2025-04-11 12:35:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:35:06' and `end` < '2025-04-11 12: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-04-11 12:35:20] Production.INFO: count ==4489 [2025-04-11 12:35:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:35:06 - End Time 2025-04-11 12:35:06 [2025-04-11 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884258', 'tblTempUsageDetail_20' ) start [2025-04-11 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884258', 'tblTempUsageDetail_20' ) end [2025-04-11 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884258', 'tblTempVendorCDR_20' ) start [2025-04-11 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884258', 'tblTempVendorCDR_20' ) end [2025-04-11 12:35:22] Production.INFO: ProcessCDR(1,14884258,1,1,2) [2025-04-11 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884258', 'tblTempUsageDetail_20' ) start [2025-04-11 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884258', 'tblTempUsageDetail_20' ) end [2025-04-11 12:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:35:28] Production.INFO: ==9846== Releasing lock... [2025-04-11 12:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:35:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:36:06 [end_date_ymd] => 2025-04-11 12:36:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:36:06' and `end` < '2025-04-11 12: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-04-11 12:36:19] Production.INFO: count ==4484 [2025-04-11 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:36:06 - End Time 2025-04-11 12:36:06 [2025-04-11 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884263', 'tblTempUsageDetail_20' ) start [2025-04-11 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884263', 'tblTempUsageDetail_20' ) end [2025-04-11 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884263', 'tblTempVendorCDR_20' ) start [2025-04-11 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884263', 'tblTempVendorCDR_20' ) end [2025-04-11 12:36:22] Production.INFO: ProcessCDR(1,14884263,1,1,2) [2025-04-11 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884263', 'tblTempUsageDetail_20' ) start [2025-04-11 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884263', 'tblTempUsageDetail_20' ) end [2025-04-11 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:36:27] Production.INFO: ==9917== Releasing lock... [2025-04-11 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:36:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:37:06 [end_date_ymd] => 2025-04-11 12:37:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:37:06' and `end` < '2025-04-11 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-04-11 12:37:20] Production.INFO: count ==4492 [2025-04-11 12:37:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:37:06 - End Time 2025-04-11 12:37:06 [2025-04-11 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884268', 'tblTempUsageDetail_20' ) start [2025-04-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884268', 'tblTempUsageDetail_20' ) end [2025-04-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884268', 'tblTempVendorCDR_20' ) start [2025-04-11 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884268', 'tblTempVendorCDR_20' ) end [2025-04-11 12:37:21] Production.INFO: ProcessCDR(1,14884268,1,1,2) [2025-04-11 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884268', 'tblTempUsageDetail_20' ) start [2025-04-11 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884268', 'tblTempUsageDetail_20' ) end [2025-04-11 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:37:27] Production.INFO: ==9992== Releasing lock... [2025-04-11 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:37:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:38:05 [end_date_ymd] => 2025-04-11 12:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:38:05' and `end` < '2025-04-11 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-04-11 12:38:19] Production.INFO: count ==4480 [2025-04-11 12:38:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:38:05 - End Time 2025-04-11 12:38:05 [2025-04-11 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884273', 'tblTempUsageDetail_20' ) start [2025-04-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884273', 'tblTempUsageDetail_20' ) end [2025-04-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884273', 'tblTempVendorCDR_20' ) start [2025-04-11 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884273', 'tblTempVendorCDR_20' ) end [2025-04-11 12:38:21] Production.INFO: ProcessCDR(1,14884273,1,1,2) [2025-04-11 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884273', 'tblTempUsageDetail_20' ) start [2025-04-11 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884273', 'tblTempUsageDetail_20' ) end [2025-04-11 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:38:27] Production.INFO: ==10062== Releasing lock... [2025-04-11 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:38:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:39:05 [end_date_ymd] => 2025-04-11 12:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:39:05' and `end` < '2025-04-11 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-04-11 12:39:19] Production.INFO: count ==4480 [2025-04-11 12:39:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:39:05 - End Time 2025-04-11 12:39:05 [2025-04-11 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884278', 'tblTempUsageDetail_20' ) start [2025-04-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884278', 'tblTempUsageDetail_20' ) end [2025-04-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884278', 'tblTempVendorCDR_20' ) start [2025-04-11 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884278', 'tblTempVendorCDR_20' ) end [2025-04-11 12:39:21] Production.INFO: ProcessCDR(1,14884278,1,1,2) [2025-04-11 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884278', 'tblTempUsageDetail_20' ) start [2025-04-11 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884278', 'tblTempUsageDetail_20' ) end [2025-04-11 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:39:27] Production.INFO: ==10135== Releasing lock... [2025-04-11 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:39:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:40:06 [end_date_ymd] => 2025-04-11 12:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:40:06' and `end` < '2025-04-11 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-04-11 12:40:20] Production.INFO: count ==4497 [2025-04-11 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:40:06 - End Time 2025-04-11 12:40:06 [2025-04-11 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884283', 'tblTempUsageDetail_20' ) start [2025-04-11 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884283', 'tblTempUsageDetail_20' ) end [2025-04-11 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884283', 'tblTempVendorCDR_20' ) start [2025-04-11 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884283', 'tblTempVendorCDR_20' ) end [2025-04-11 12:40:22] Production.INFO: ProcessCDR(1,14884283,1,1,2) [2025-04-11 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884283', 'tblTempUsageDetail_20' ) start [2025-04-11 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884283', 'tblTempUsageDetail_20' ) end [2025-04-11 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:40:28] Production.INFO: ==10210== Releasing lock... [2025-04-11 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:40:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:41:05 [end_date_ymd] => 2025-04-11 12:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:41:05' and `end` < '2025-04-11 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-04-11 12:41:18] Production.INFO: count ==4487 [2025-04-11 12:41:20] Production.ERROR: pbx CDR StartTime 2025-04-11 09:41:05 - End Time 2025-04-11 12:41:05 [2025-04-11 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884289', 'tblTempUsageDetail_20' ) start [2025-04-11 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884289', 'tblTempUsageDetail_20' ) end [2025-04-11 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884289', 'tblTempVendorCDR_20' ) start [2025-04-11 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884289', 'tblTempVendorCDR_20' ) end [2025-04-11 12:41:21] Production.INFO: ProcessCDR(1,14884289,1,1,2) [2025-04-11 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884289', 'tblTempUsageDetail_20' ) start [2025-04-11 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884289', 'tblTempUsageDetail_20' ) end [2025-04-11 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:41:26] Production.INFO: ==10283== Releasing lock... [2025-04-11 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:41:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:42:05 [end_date_ymd] => 2025-04-11 12:42:05 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:42:05' and `end` < '2025-04-11 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-04-11 12:42:20] Production.INFO: count ==4493 [2025-04-11 12:42:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:42:05 - End Time 2025-04-11 12:42:05 [2025-04-11 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884294', 'tblTempUsageDetail_20' ) start [2025-04-11 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884294', 'tblTempUsageDetail_20' ) end [2025-04-11 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884294', 'tblTempVendorCDR_20' ) start [2025-04-11 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884294', 'tblTempVendorCDR_20' ) end [2025-04-11 12:42:22] Production.INFO: ProcessCDR(1,14884294,1,1,2) [2025-04-11 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884294', 'tblTempUsageDetail_20' ) start [2025-04-11 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884294', 'tblTempUsageDetail_20' ) end [2025-04-11 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:42:27] Production.INFO: ==10357== Releasing lock... [2025-04-11 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:42:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:43:05 [end_date_ymd] => 2025-04-11 12:43:05 [RateCDR] => 1 ) [2025-04-11 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:43:05' and `end` < '2025-04-11 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:43:19] Production.INFO: count ==4499 [2025-04-11 12:43:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:43:05 - End Time 2025-04-11 12:43:05 [2025-04-11 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884299', 'tblTempUsageDetail_20' ) start [2025-04-11 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884299', 'tblTempUsageDetail_20' ) end [2025-04-11 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884299', 'tblTempVendorCDR_20' ) start [2025-04-11 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884299', 'tblTempVendorCDR_20' ) end [2025-04-11 12:43:21] Production.INFO: ProcessCDR(1,14884299,1,1,2) [2025-04-11 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884299', 'tblTempUsageDetail_20' ) start [2025-04-11 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884299', 'tblTempUsageDetail_20' ) end [2025-04-11 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:43:27] Production.INFO: ==10427== Releasing lock... [2025-04-11 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:43:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:44:06 [end_date_ymd] => 2025-04-11 12:44:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:44:06' and `end` < '2025-04-11 12: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-04-11 12:44:20] Production.INFO: count ==4514 [2025-04-11 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:44:06 - End Time 2025-04-11 12:44:06 [2025-04-11 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884304', 'tblTempUsageDetail_20' ) start [2025-04-11 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884304', 'tblTempUsageDetail_20' ) end [2025-04-11 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884304', 'tblTempVendorCDR_20' ) start [2025-04-11 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884304', 'tblTempVendorCDR_20' ) end [2025-04-11 12:44:22] Production.INFO: ProcessCDR(1,14884304,1,1,2) [2025-04-11 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884304', 'tblTempUsageDetail_20' ) start [2025-04-11 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884304', 'tblTempUsageDetail_20' ) end [2025-04-11 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:44:27] Production.INFO: ==10504== Releasing lock... [2025-04-11 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:44:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:45:05 [end_date_ymd] => 2025-04-11 12:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:45:05' and `end` < '2025-04-11 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-04-11 12:45:19] Production.INFO: count ==4525 [2025-04-11 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:45:05 - End Time 2025-04-11 12:45:05 [2025-04-11 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884309', 'tblTempUsageDetail_20' ) start [2025-04-11 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884309', 'tblTempUsageDetail_20' ) end [2025-04-11 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884309', 'tblTempVendorCDR_20' ) start [2025-04-11 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884309', 'tblTempVendorCDR_20' ) end [2025-04-11 12:45:22] Production.INFO: ProcessCDR(1,14884309,1,1,2) [2025-04-11 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884309', 'tblTempUsageDetail_20' ) start [2025-04-11 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884309', 'tblTempUsageDetail_20' ) end [2025-04-11 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:45:28] Production.INFO: ==10576== Releasing lock... [2025-04-11 12:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:45:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:46:06 [end_date_ymd] => 2025-04-11 12:46:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:46:06' and `end` < '2025-04-11 12: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-04-11 12:46:20] Production.INFO: count ==4535 [2025-04-11 12:46:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:46:06 - End Time 2025-04-11 12:46:06 [2025-04-11 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884314', 'tblTempUsageDetail_20' ) start [2025-04-11 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884314', 'tblTempUsageDetail_20' ) end [2025-04-11 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884314', 'tblTempVendorCDR_20' ) start [2025-04-11 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884314', 'tblTempVendorCDR_20' ) end [2025-04-11 12:46:22] Production.INFO: ProcessCDR(1,14884314,1,1,2) [2025-04-11 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884314', 'tblTempUsageDetail_20' ) start [2025-04-11 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884314', 'tblTempUsageDetail_20' ) end [2025-04-11 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:46:28] Production.INFO: ==10655== Releasing lock... [2025-04-11 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:46:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:47:05 [end_date_ymd] => 2025-04-11 12:47:05 [RateCDR] => 1 ) [2025-04-11 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:47:05' and `end` < '2025-04-11 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:47:19] Production.INFO: count ==4530 [2025-04-11 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:47:05 - End Time 2025-04-11 12:47:05 [2025-04-11 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884319', 'tblTempUsageDetail_20' ) start [2025-04-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884319', 'tblTempUsageDetail_20' ) end [2025-04-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884319', 'tblTempVendorCDR_20' ) start [2025-04-11 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884319', 'tblTempVendorCDR_20' ) end [2025-04-11 12:47:21] Production.INFO: ProcessCDR(1,14884319,1,1,2) [2025-04-11 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884319', 'tblTempUsageDetail_20' ) start [2025-04-11 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884319', 'tblTempUsageDetail_20' ) end [2025-04-11 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:47:27] Production.INFO: ==10764== Releasing lock... [2025-04-11 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:47:27] Production.INFO: 62 MB #Memory Used# [2025-04-11 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:48:05 [end_date_ymd] => 2025-04-11 12:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:48:05' and `end` < '2025-04-11 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-04-11 12:48:19] Production.INFO: count ==4546 [2025-04-11 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:48:05 - End Time 2025-04-11 12:48:05 [2025-04-11 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884324', 'tblTempUsageDetail_20' ) start [2025-04-11 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884324', 'tblTempUsageDetail_20' ) end [2025-04-11 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884324', 'tblTempVendorCDR_20' ) start [2025-04-11 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884324', 'tblTempVendorCDR_20' ) end [2025-04-11 12:48:21] Production.INFO: ProcessCDR(1,14884324,1,1,2) [2025-04-11 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884324', 'tblTempUsageDetail_20' ) start [2025-04-11 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884324', 'tblTempUsageDetail_20' ) end [2025-04-11 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:48:27] Production.INFO: ==10840== Releasing lock... [2025-04-11 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:48:27] Production.INFO: 62 MB #Memory Used# [2025-04-11 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:49:06 [end_date_ymd] => 2025-04-11 12:49:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:49:06' and `end` < '2025-04-11 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-04-11 12:49:19] Production.INFO: count ==4556 [2025-04-11 12:49:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:49:06 - End Time 2025-04-11 12:49:06 [2025-04-11 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884329', 'tblTempUsageDetail_20' ) start [2025-04-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884329', 'tblTempUsageDetail_20' ) end [2025-04-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884329', 'tblTempVendorCDR_20' ) start [2025-04-11 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884329', 'tblTempVendorCDR_20' ) end [2025-04-11 12:49:21] Production.INFO: ProcessCDR(1,14884329,1,1,2) [2025-04-11 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884329', 'tblTempUsageDetail_20' ) start [2025-04-11 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884329', 'tblTempUsageDetail_20' ) end [2025-04-11 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:49:27] Production.INFO: ==10911== Releasing lock... [2025-04-11 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:49:27] Production.INFO: 62 MB #Memory Used# [2025-04-11 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:50:06 [end_date_ymd] => 2025-04-11 12:50:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:50:06' and `end` < '2025-04-11 12: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-04-11 12:50:20] Production.INFO: count ==4559 [2025-04-11 12:50:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:50:06 - End Time 2025-04-11 12:50:06 [2025-04-11 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884334', 'tblTempUsageDetail_20' ) start [2025-04-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884334', 'tblTempUsageDetail_20' ) end [2025-04-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884334', 'tblTempVendorCDR_20' ) start [2025-04-11 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884334', 'tblTempVendorCDR_20' ) end [2025-04-11 12:50:22] Production.INFO: ProcessCDR(1,14884334,1,1,2) [2025-04-11 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884334', 'tblTempUsageDetail_20' ) start [2025-04-11 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884334', 'tblTempUsageDetail_20' ) end [2025-04-11 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:50:28] Production.INFO: ==10989== Releasing lock... [2025-04-11 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:50:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:51:05 [end_date_ymd] => 2025-04-11 12:51:05 [RateCDR] => 1 ) [2025-04-11 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:51:05' and `end` < '2025-04-11 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:51:19] Production.INFO: count ==4573 [2025-04-11 12:51:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:51:05 - End Time 2025-04-11 12:51:05 [2025-04-11 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884340', 'tblTempUsageDetail_20' ) start [2025-04-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884340', 'tblTempUsageDetail_20' ) end [2025-04-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884340', 'tblTempVendorCDR_20' ) start [2025-04-11 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884340', 'tblTempVendorCDR_20' ) end [2025-04-11 12:51:21] Production.INFO: ProcessCDR(1,14884340,1,1,2) [2025-04-11 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884340', 'tblTempUsageDetail_20' ) start [2025-04-11 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884340', 'tblTempUsageDetail_20' ) end [2025-04-11 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:51:27] Production.INFO: ==11071== Releasing lock... [2025-04-11 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:51:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:52:06 [end_date_ymd] => 2025-04-11 12:52:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:52:06' and `end` < '2025-04-11 12: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-04-11 12:52:19] Production.INFO: count ==4579 [2025-04-11 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:52:06 - End Time 2025-04-11 12:52:06 [2025-04-11 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884345', 'tblTempUsageDetail_20' ) start [2025-04-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884345', 'tblTempUsageDetail_20' ) end [2025-04-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884345', 'tblTempVendorCDR_20' ) start [2025-04-11 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884345', 'tblTempVendorCDR_20' ) end [2025-04-11 12:52:21] Production.INFO: ProcessCDR(1,14884345,1,1,2) [2025-04-11 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884345', 'tblTempUsageDetail_20' ) start [2025-04-11 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884345', 'tblTempUsageDetail_20' ) end [2025-04-11 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:52:28] Production.INFO: ==11141== Releasing lock... [2025-04-11 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:52:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:53:05 [end_date_ymd] => 2025-04-11 12:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:53:05' and `end` < '2025-04-11 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-04-11 12:53:19] Production.INFO: count ==4576 [2025-04-11 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:53:05 - End Time 2025-04-11 12:53:05 [2025-04-11 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884350', 'tblTempUsageDetail_20' ) start [2025-04-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884350', 'tblTempUsageDetail_20' ) end [2025-04-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884350', 'tblTempVendorCDR_20' ) start [2025-04-11 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884350', 'tblTempVendorCDR_20' ) end [2025-04-11 12:53:21] Production.INFO: ProcessCDR(1,14884350,1,1,2) [2025-04-11 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884350', 'tblTempUsageDetail_20' ) start [2025-04-11 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884350', 'tblTempUsageDetail_20' ) end [2025-04-11 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:53:27] Production.INFO: ==11213== Releasing lock... [2025-04-11 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:53:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:54:05 [end_date_ymd] => 2025-04-11 12:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:54:05' and `end` < '2025-04-11 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-04-11 12:54:19] Production.INFO: count ==4563 [2025-04-11 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:54:05 - End Time 2025-04-11 12:54:05 [2025-04-11 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884355', 'tblTempUsageDetail_20' ) start [2025-04-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884355', 'tblTempUsageDetail_20' ) end [2025-04-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884355', 'tblTempVendorCDR_20' ) start [2025-04-11 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884355', 'tblTempVendorCDR_20' ) end [2025-04-11 12:54:21] Production.INFO: ProcessCDR(1,14884355,1,1,2) [2025-04-11 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884355', 'tblTempUsageDetail_20' ) start [2025-04-11 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884355', 'tblTempUsageDetail_20' ) end [2025-04-11 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:54:27] Production.INFO: ==11286== Releasing lock... [2025-04-11 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:54:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:55:06 [end_date_ymd] => 2025-04-11 12:55:06 [RateCDR] => 1 ) [2025-04-11 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 09:55:06' and `end` < '2025-04-11 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 12:55:20] Production.INFO: count ==4560 [2025-04-11 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:55:06 - End Time 2025-04-11 12:55:06 [2025-04-11 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884360', 'tblTempUsageDetail_20' ) start [2025-04-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884360', 'tblTempUsageDetail_20' ) end [2025-04-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884360', 'tblTempVendorCDR_20' ) start [2025-04-11 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884360', 'tblTempVendorCDR_20' ) end [2025-04-11 12:55:22] Production.INFO: ProcessCDR(1,14884360,1,1,2) [2025-04-11 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884360', 'tblTempUsageDetail_20' ) start [2025-04-11 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884360', 'tblTempUsageDetail_20' ) end [2025-04-11 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:55:26] Production.INFO: ==11361== Releasing lock... [2025-04-11 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:55:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:56:06 [end_date_ymd] => 2025-04-11 12:56:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:56:06' and `end` < '2025-04-11 12: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-04-11 12:56:20] Production.INFO: count ==4560 [2025-04-11 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:56:06 - End Time 2025-04-11 12:56:06 [2025-04-11 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884365', 'tblTempUsageDetail_20' ) start [2025-04-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884365', 'tblTempUsageDetail_20' ) end [2025-04-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884365', 'tblTempVendorCDR_20' ) start [2025-04-11 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884365', 'tblTempVendorCDR_20' ) end [2025-04-11 12:56:22] Production.INFO: ProcessCDR(1,14884365,1,1,2) [2025-04-11 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884365', 'tblTempUsageDetail_20' ) start [2025-04-11 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884365', 'tblTempUsageDetail_20' ) end [2025-04-11 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:56:28] Production.INFO: ==11432== Releasing lock... [2025-04-11 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:56:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:57:06 [end_date_ymd] => 2025-04-11 12:57:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:57:06' and `end` < '2025-04-11 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-04-11 12:57:20] Production.INFO: count ==4560 [2025-04-11 12:57:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:57:06 - End Time 2025-04-11 12:57:06 [2025-04-11 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884370', 'tblTempUsageDetail_20' ) start [2025-04-11 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884370', 'tblTempUsageDetail_20' ) end [2025-04-11 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884370', 'tblTempVendorCDR_20' ) start [2025-04-11 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884370', 'tblTempVendorCDR_20' ) end [2025-04-11 12:57:22] Production.INFO: ProcessCDR(1,14884370,1,1,2) [2025-04-11 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884370', 'tblTempUsageDetail_20' ) start [2025-04-11 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884370', 'tblTempUsageDetail_20' ) end [2025-04-11 12:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:57:28] Production.INFO: ==11504== Releasing lock... [2025-04-11 12:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:57:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:58:05 [end_date_ymd] => 2025-04-11 12:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 09:58:05' and `end` < '2025-04-11 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-04-11 12:58:19] Production.INFO: count ==4563 [2025-04-11 12:58:21] Production.ERROR: pbx CDR StartTime 2025-04-11 09:58:05 - End Time 2025-04-11 12:58:05 [2025-04-11 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884375', 'tblTempUsageDetail_20' ) start [2025-04-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884375', 'tblTempUsageDetail_20' ) end [2025-04-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884375', 'tblTempVendorCDR_20' ) start [2025-04-11 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884375', 'tblTempVendorCDR_20' ) end [2025-04-11 12:58:21] Production.INFO: ProcessCDR(1,14884375,1,1,2) [2025-04-11 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884375', 'tblTempUsageDetail_20' ) start [2025-04-11 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884375', 'tblTempUsageDetail_20' ) end [2025-04-11 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:58:27] Production.INFO: ==11576== Releasing lock... [2025-04-11 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:58:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 09:59:06 [end_date_ymd] => 2025-04-11 12:59:06 [RateCDR] => 1 ) [2025-04-11 12: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-04-11 09:59:06' and `end` < '2025-04-11 12: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-04-11 12:59:20] Production.INFO: count ==4566 [2025-04-11 12:59:22] Production.ERROR: pbx CDR StartTime 2025-04-11 09:59:06 - End Time 2025-04-11 12:59:06 [2025-04-11 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884380', 'tblTempUsageDetail_20' ) start [2025-04-11 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884380', 'tblTempUsageDetail_20' ) end [2025-04-11 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884380', 'tblTempVendorCDR_20' ) start [2025-04-11 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884380', 'tblTempVendorCDR_20' ) end [2025-04-11 12:59:22] Production.INFO: ProcessCDR(1,14884380,1,1,2) [2025-04-11 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884380', 'tblTempUsageDetail_20' ) start [2025-04-11 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884380', 'tblTempUsageDetail_20' ) end [2025-04-11 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 12:59:26] Production.INFO: ==11652== Releasing lock... [2025-04-11 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 12:59:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:00:07 [end_date_ymd] => 2025-04-11 13:00:07 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:00:07' and `end` < '2025-04-11 13: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-04-11 13:00:21] Production.INFO: count ==4571 [2025-04-11 13:00:23] Production.ERROR: pbx CDR StartTime 2025-04-11 10:00:07 - End Time 2025-04-11 13:00:07 [2025-04-11 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884386', 'tblTempUsageDetail_20' ) start [2025-04-11 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884386', 'tblTempUsageDetail_20' ) end [2025-04-11 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884386', 'tblTempVendorCDR_20' ) start [2025-04-11 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884386', 'tblTempVendorCDR_20' ) end [2025-04-11 13:00:23] Production.INFO: ProcessCDR(1,14884386,1,1,2) [2025-04-11 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884386', 'tblTempUsageDetail_20' ) start [2025-04-11 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884386', 'tblTempUsageDetail_20' ) end [2025-04-11 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:00:29] Production.INFO: ==11731== Releasing lock... [2025-04-11 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:00:29] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:01:06 [end_date_ymd] => 2025-04-11 13:01:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:01:06' and `end` < '2025-04-11 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-04-11 13:01:20] Production.INFO: count ==4588 [2025-04-11 13:01:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:01:06 - End Time 2025-04-11 13:01:06 [2025-04-11 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884391', 'tblTempUsageDetail_20' ) start [2025-04-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884391', 'tblTempUsageDetail_20' ) end [2025-04-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884391', 'tblTempVendorCDR_20' ) start [2025-04-11 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884391', 'tblTempVendorCDR_20' ) end [2025-04-11 13:01:22] Production.INFO: ProcessCDR(1,14884391,1,1,2) [2025-04-11 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884391', 'tblTempUsageDetail_20' ) start [2025-04-11 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884391', 'tblTempUsageDetail_20' ) end [2025-04-11 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:01:26] Production.INFO: ==11817== Releasing lock... [2025-04-11 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:01:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:02:05 [end_date_ymd] => 2025-04-11 13:02:05 [RateCDR] => 1 ) [2025-04-11 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 10:02:05' and `end` < '2025-04-11 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 13:02:19] Production.INFO: count ==4582 [2025-04-11 13:02:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:02:05 - End Time 2025-04-11 13:02:05 [2025-04-11 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884396', 'tblTempUsageDetail_20' ) start [2025-04-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884396', 'tblTempUsageDetail_20' ) end [2025-04-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884396', 'tblTempVendorCDR_20' ) start [2025-04-11 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884396', 'tblTempVendorCDR_20' ) end [2025-04-11 13:02:21] Production.INFO: ProcessCDR(1,14884396,1,1,2) [2025-04-11 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884396', 'tblTempUsageDetail_20' ) start [2025-04-11 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884396', 'tblTempUsageDetail_20' ) end [2025-04-11 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:02:27] Production.INFO: ==11930== Releasing lock... [2025-04-11 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:02:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:03:06 [end_date_ymd] => 2025-04-11 13:03:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:03:06' and `end` < '2025-04-11 13: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-04-11 13:03:20] Production.INFO: count ==4554 [2025-04-11 13:03:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:03:06 - End Time 2025-04-11 13:03:06 [2025-04-11 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884401', 'tblTempUsageDetail_20' ) start [2025-04-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884401', 'tblTempUsageDetail_20' ) end [2025-04-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884401', 'tblTempVendorCDR_20' ) start [2025-04-11 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884401', 'tblTempVendorCDR_20' ) end [2025-04-11 13:03:22] Production.INFO: ProcessCDR(1,14884401,1,1,2) [2025-04-11 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884401', 'tblTempUsageDetail_20' ) start [2025-04-11 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884401', 'tblTempUsageDetail_20' ) end [2025-04-11 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:03:28] Production.INFO: ==12002== Releasing lock... [2025-04-11 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:03:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:04:05 [end_date_ymd] => 2025-04-11 13:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:04:05' and `end` < '2025-04-11 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-04-11 13:04:19] Production.INFO: count ==4559 [2025-04-11 13:04:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:04:05 - End Time 2025-04-11 13:04:05 [2025-04-11 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884406', 'tblTempUsageDetail_20' ) start [2025-04-11 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884406', 'tblTempUsageDetail_20' ) end [2025-04-11 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884406', 'tblTempVendorCDR_20' ) start [2025-04-11 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884406', 'tblTempVendorCDR_20' ) end [2025-04-11 13:04:21] Production.INFO: ProcessCDR(1,14884406,1,1,2) [2025-04-11 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884406', 'tblTempUsageDetail_20' ) start [2025-04-11 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884406', 'tblTempUsageDetail_20' ) end [2025-04-11 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:04:27] Production.INFO: ==12078== Releasing lock... [2025-04-11 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:04:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:05:06 [end_date_ymd] => 2025-04-11 13:05:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:05:06' and `end` < '2025-04-11 13: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-04-11 13:05:20] Production.INFO: count ==4559 [2025-04-11 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:05:06 - End Time 2025-04-11 13:05:06 [2025-04-11 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884411', 'tblTempUsageDetail_20' ) start [2025-04-11 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884411', 'tblTempUsageDetail_20' ) end [2025-04-11 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884411', 'tblTempVendorCDR_20' ) start [2025-04-11 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884411', 'tblTempVendorCDR_20' ) end [2025-04-11 13:05:22] Production.INFO: ProcessCDR(1,14884411,1,1,2) [2025-04-11 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884411', 'tblTempUsageDetail_20' ) start [2025-04-11 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884411', 'tblTempUsageDetail_20' ) end [2025-04-11 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:05:28] Production.INFO: ==12150== Releasing lock... [2025-04-11 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:05:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:06:06 [end_date_ymd] => 2025-04-11 13:06:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:06:06' and `end` < '2025-04-11 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-04-11 13:06:19] Production.INFO: count ==4559 [2025-04-11 13:06:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:06:06 - End Time 2025-04-11 13:06:06 [2025-04-11 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884416', 'tblTempUsageDetail_20' ) start [2025-04-11 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884416', 'tblTempUsageDetail_20' ) end [2025-04-11 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884416', 'tblTempVendorCDR_20' ) start [2025-04-11 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884416', 'tblTempVendorCDR_20' ) end [2025-04-11 13:06:22] Production.INFO: ProcessCDR(1,14884416,1,1,2) [2025-04-11 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884416', 'tblTempUsageDetail_20' ) start [2025-04-11 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884416', 'tblTempUsageDetail_20' ) end [2025-04-11 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:06:27] Production.INFO: ==12225== Releasing lock... [2025-04-11 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:06:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-11 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:07:06 [end_date_ymd] => 2025-04-11 13:07:06 [RateCDR] => 1 ) [2025-04-11 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 10:07:06' and `end` < '2025-04-11 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 13:07:20] Production.INFO: count ==4547 [2025-04-11 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:07:06 - End Time 2025-04-11 13:07:06 [2025-04-11 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884421', 'tblTempUsageDetail_20' ) start [2025-04-11 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884421', 'tblTempUsageDetail_20' ) end [2025-04-11 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884421', 'tblTempVendorCDR_20' ) start [2025-04-11 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884421', 'tblTempVendorCDR_20' ) end [2025-04-11 13:07:22] Production.INFO: ProcessCDR(1,14884421,1,1,2) [2025-04-11 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884421', 'tblTempUsageDetail_20' ) start [2025-04-11 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884421', 'tblTempUsageDetail_20' ) end [2025-04-11 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:07:28] Production.INFO: ==12299== Releasing lock... [2025-04-11 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:07:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:08:06 [end_date_ymd] => 2025-04-11 13:08:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:08:06' and `end` < '2025-04-11 13: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-04-11 13:08:20] Production.INFO: count ==4519 [2025-04-11 13:08:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:08:06 - End Time 2025-04-11 13:08:06 [2025-04-11 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884426', 'tblTempUsageDetail_20' ) start [2025-04-11 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884426', 'tblTempUsageDetail_20' ) end [2025-04-11 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884426', 'tblTempVendorCDR_20' ) start [2025-04-11 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884426', 'tblTempVendorCDR_20' ) end [2025-04-11 13:08:22] Production.INFO: ProcessCDR(1,14884426,1,1,2) [2025-04-11 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884426', 'tblTempUsageDetail_20' ) start [2025-04-11 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884426', 'tblTempUsageDetail_20' ) end [2025-04-11 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:08:27] Production.INFO: ==12376== Releasing lock... [2025-04-11 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:08:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:09:06 [end_date_ymd] => 2025-04-11 13:09:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:09:06' and `end` < '2025-04-11 13: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-04-11 13:09:20] Production.INFO: count ==4526 [2025-04-11 13:09:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:09:06 - End Time 2025-04-11 13:09:06 [2025-04-11 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884431', 'tblTempUsageDetail_20' ) start [2025-04-11 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884431', 'tblTempUsageDetail_20' ) end [2025-04-11 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884431', 'tblTempVendorCDR_20' ) start [2025-04-11 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884431', 'tblTempVendorCDR_20' ) end [2025-04-11 13:09:22] Production.INFO: ProcessCDR(1,14884431,1,1,2) [2025-04-11 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884431', 'tblTempUsageDetail_20' ) start [2025-04-11 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884431', 'tblTempUsageDetail_20' ) end [2025-04-11 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:09:28] Production.INFO: ==12448== Releasing lock... [2025-04-11 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:09:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:10:06 [end_date_ymd] => 2025-04-11 13:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:10:06' and `end` < '2025-04-11 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-04-11 13:10:20] Production.INFO: count ==4528 [2025-04-11 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:10:06 - End Time 2025-04-11 13:10:06 [2025-04-11 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884437', 'tblTempUsageDetail_20' ) start [2025-04-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884437', 'tblTempUsageDetail_20' ) end [2025-04-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884437', 'tblTempVendorCDR_20' ) start [2025-04-11 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884437', 'tblTempVendorCDR_20' ) end [2025-04-11 13:10:22] Production.INFO: ProcessCDR(1,14884437,1,1,2) [2025-04-11 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884437', 'tblTempUsageDetail_20' ) start [2025-04-11 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884437', 'tblTempUsageDetail_20' ) end [2025-04-11 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:10:28] Production.INFO: ==12523== Releasing lock... [2025-04-11 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:10:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:11:05 [end_date_ymd] => 2025-04-11 13:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:11:05' and `end` < '2025-04-11 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-04-11 13:11:20] Production.INFO: count ==4506 [2025-04-11 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:11:05 - End Time 2025-04-11 13:11:05 [2025-04-11 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884442', 'tblTempUsageDetail_20' ) start [2025-04-11 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884442', 'tblTempUsageDetail_20' ) end [2025-04-11 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884442', 'tblTempVendorCDR_20' ) start [2025-04-11 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884442', 'tblTempVendorCDR_20' ) end [2025-04-11 13:11:22] Production.INFO: ProcessCDR(1,14884442,1,1,2) [2025-04-11 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884442', 'tblTempUsageDetail_20' ) start [2025-04-11 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884442', 'tblTempUsageDetail_20' ) end [2025-04-11 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:11:28] Production.INFO: ==12598== Releasing lock... [2025-04-11 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:11:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:12:05 [end_date_ymd] => 2025-04-11 13:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:12:05' and `end` < '2025-04-11 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-04-11 13:12:19] Production.INFO: count ==4515 [2025-04-11 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:12:05 - End Time 2025-04-11 13:12:05 [2025-04-11 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884447', 'tblTempUsageDetail_20' ) start [2025-04-11 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884447', 'tblTempUsageDetail_20' ) end [2025-04-11 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884447', 'tblTempVendorCDR_20' ) start [2025-04-11 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884447', 'tblTempVendorCDR_20' ) end [2025-04-11 13:12:21] Production.INFO: ProcessCDR(1,14884447,1,1,2) [2025-04-11 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884447', 'tblTempUsageDetail_20' ) start [2025-04-11 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884447', 'tblTempUsageDetail_20' ) end [2025-04-11 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:12:27] Production.INFO: ==12669== Releasing lock... [2025-04-11 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:12:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:13:06 [end_date_ymd] => 2025-04-11 13:13:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:13:06' and `end` < '2025-04-11 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-04-11 13:13:20] Production.INFO: count ==4519 [2025-04-11 13:13:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:13:06 - End Time 2025-04-11 13:13:06 [2025-04-11 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884452', 'tblTempUsageDetail_20' ) start [2025-04-11 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884452', 'tblTempUsageDetail_20' ) end [2025-04-11 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884452', 'tblTempVendorCDR_20' ) start [2025-04-11 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884452', 'tblTempVendorCDR_20' ) end [2025-04-11 13:13:22] Production.INFO: ProcessCDR(1,14884452,1,1,2) [2025-04-11 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884452', 'tblTempUsageDetail_20' ) start [2025-04-11 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884452', 'tblTempUsageDetail_20' ) end [2025-04-11 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:13:27] Production.INFO: ==12750== Releasing lock... [2025-04-11 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:13:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:14:06 [end_date_ymd] => 2025-04-11 13:14:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:14:06' and `end` < '2025-04-11 13: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-04-11 13:14:19] Production.INFO: count ==4510 [2025-04-11 13:14:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:14:06 - End Time 2025-04-11 13:14:06 [2025-04-11 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884457', 'tblTempUsageDetail_20' ) start [2025-04-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884457', 'tblTempUsageDetail_20' ) end [2025-04-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884457', 'tblTempVendorCDR_20' ) start [2025-04-11 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884457', 'tblTempVendorCDR_20' ) end [2025-04-11 13:14:21] Production.INFO: ProcessCDR(1,14884457,1,1,2) [2025-04-11 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884457', 'tblTempUsageDetail_20' ) start [2025-04-11 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884457', 'tblTempUsageDetail_20' ) end [2025-04-11 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:14:27] Production.INFO: ==12823== Releasing lock... [2025-04-11 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:14:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:15:06 [end_date_ymd] => 2025-04-11 13:15:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:15:06' and `end` < '2025-04-11 13: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-04-11 13:15:19] Production.INFO: count ==4513 [2025-04-11 13:15:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:15:06 - End Time 2025-04-11 13:15:06 [2025-04-11 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884462', 'tblTempUsageDetail_20' ) start [2025-04-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884462', 'tblTempUsageDetail_20' ) end [2025-04-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884462', 'tblTempVendorCDR_20' ) start [2025-04-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884462', 'tblTempVendorCDR_20' ) end [2025-04-11 13:15:21] Production.INFO: ProcessCDR(1,14884462,1,1,2) [2025-04-11 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884462', 'tblTempUsageDetail_20' ) start [2025-04-11 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884462', 'tblTempUsageDetail_20' ) end [2025-04-11 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:15:27] Production.INFO: ==12896== Releasing lock... [2025-04-11 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:15:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:16:06 [end_date_ymd] => 2025-04-11 13:16:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:16:06' and `end` < '2025-04-11 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-04-11 13:16:20] Production.INFO: count ==4507 [2025-04-11 13:16:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:16:06 - End Time 2025-04-11 13:16:06 [2025-04-11 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884467', 'tblTempUsageDetail_20' ) start [2025-04-11 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884467', 'tblTempUsageDetail_20' ) end [2025-04-11 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884467', 'tblTempVendorCDR_20' ) start [2025-04-11 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884467', 'tblTempVendorCDR_20' ) end [2025-04-11 13:16:22] Production.INFO: ProcessCDR(1,14884467,1,1,2) [2025-04-11 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884467', 'tblTempUsageDetail_20' ) start [2025-04-11 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884467', 'tblTempUsageDetail_20' ) end [2025-04-11 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:16:27] Production.INFO: ==12966== Releasing lock... [2025-04-11 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:16:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:17:06 [end_date_ymd] => 2025-04-11 13:17:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:17:06' and `end` < '2025-04-11 13: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-04-11 13:17:20] Production.INFO: count ==4504 [2025-04-11 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:17:06 - End Time 2025-04-11 13:17:06 [2025-04-11 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884472', 'tblTempUsageDetail_20' ) start [2025-04-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884472', 'tblTempUsageDetail_20' ) end [2025-04-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884472', 'tblTempVendorCDR_20' ) start [2025-04-11 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884472', 'tblTempVendorCDR_20' ) end [2025-04-11 13:17:21] Production.INFO: ProcessCDR(1,14884472,1,1,2) [2025-04-11 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884472', 'tblTempUsageDetail_20' ) start [2025-04-11 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884472', 'tblTempUsageDetail_20' ) end [2025-04-11 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:17:28] Production.INFO: ==13040== Releasing lock... [2025-04-11 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:17:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:18:06 [end_date_ymd] => 2025-04-11 13:18:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:18:06' and `end` < '2025-04-11 13: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-04-11 13:18:19] Production.INFO: count ==4504 [2025-04-11 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:18:06 - End Time 2025-04-11 13:18:06 [2025-04-11 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884477', 'tblTempUsageDetail_20' ) start [2025-04-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884477', 'tblTempUsageDetail_20' ) end [2025-04-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884477', 'tblTempVendorCDR_20' ) start [2025-04-11 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884477', 'tblTempVendorCDR_20' ) end [2025-04-11 13:18:21] Production.INFO: ProcessCDR(1,14884477,1,1,2) [2025-04-11 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884477', 'tblTempUsageDetail_20' ) start [2025-04-11 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884477', 'tblTempUsageDetail_20' ) end [2025-04-11 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:18:27] Production.INFO: ==13163== Releasing lock... [2025-04-11 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:18:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:19:06 [end_date_ymd] => 2025-04-11 13:19:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:19:06' and `end` < '2025-04-11 13: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-04-11 13:19:20] Production.INFO: count ==4500 [2025-04-11 13:19:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:19:06 - End Time 2025-04-11 13:19:06 [2025-04-11 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884482', 'tblTempUsageDetail_20' ) start [2025-04-11 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884482', 'tblTempUsageDetail_20' ) end [2025-04-11 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884482', 'tblTempVendorCDR_20' ) start [2025-04-11 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884482', 'tblTempVendorCDR_20' ) end [2025-04-11 13:19:22] Production.INFO: ProcessCDR(1,14884482,1,1,2) [2025-04-11 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884482', 'tblTempUsageDetail_20' ) start [2025-04-11 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884482', 'tblTempUsageDetail_20' ) end [2025-04-11 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:19:28] Production.INFO: ==13237== Releasing lock... [2025-04-11 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:19:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:20:06 [end_date_ymd] => 2025-04-11 13:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:20:06' and `end` < '2025-04-11 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-04-11 13:20:20] Production.INFO: count ==4507 [2025-04-11 13:20:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:20:06 - End Time 2025-04-11 13:20:06 [2025-04-11 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884488', 'tblTempUsageDetail_20' ) start [2025-04-11 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884488', 'tblTempUsageDetail_20' ) end [2025-04-11 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884488', 'tblTempVendorCDR_20' ) start [2025-04-11 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884488', 'tblTempVendorCDR_20' ) end [2025-04-11 13:20:22] Production.INFO: ProcessCDR(1,14884488,1,1,2) [2025-04-11 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884488', 'tblTempUsageDetail_20' ) start [2025-04-11 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884488', 'tblTempUsageDetail_20' ) end [2025-04-11 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:20:28] Production.INFO: ==13312== Releasing lock... [2025-04-11 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:20:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:21:06 [end_date_ymd] => 2025-04-11 13:21:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:21:06' and `end` < '2025-04-11 13: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-04-11 13:21:20] Production.INFO: count ==4540 [2025-04-11 13:21:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:21:06 - End Time 2025-04-11 13:21:06 [2025-04-11 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884493', 'tblTempUsageDetail_20' ) start [2025-04-11 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884493', 'tblTempUsageDetail_20' ) end [2025-04-11 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884493', 'tblTempVendorCDR_20' ) start [2025-04-11 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884493', 'tblTempVendorCDR_20' ) end [2025-04-11 13:21:22] Production.INFO: ProcessCDR(1,14884493,1,1,2) [2025-04-11 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884493', 'tblTempUsageDetail_20' ) start [2025-04-11 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884493', 'tblTempUsageDetail_20' ) end [2025-04-11 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:21:28] Production.INFO: ==13387== Releasing lock... [2025-04-11 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:21:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:22:06 [end_date_ymd] => 2025-04-11 13:22:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:22:06' and `end` < '2025-04-11 13: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-04-11 13:22:20] Production.INFO: count ==4543 [2025-04-11 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:22:06 - End Time 2025-04-11 13:22:06 [2025-04-11 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884498', 'tblTempUsageDetail_20' ) start [2025-04-11 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884498', 'tblTempUsageDetail_20' ) end [2025-04-11 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884498', 'tblTempVendorCDR_20' ) start [2025-04-11 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884498', 'tblTempVendorCDR_20' ) end [2025-04-11 13:22:22] Production.INFO: ProcessCDR(1,14884498,1,1,2) [2025-04-11 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884498', 'tblTempUsageDetail_20' ) start [2025-04-11 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884498', 'tblTempUsageDetail_20' ) end [2025-04-11 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:22:28] Production.INFO: ==13458== Releasing lock... [2025-04-11 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:22:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:23:06 [end_date_ymd] => 2025-04-11 13:23:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:23:06' and `end` < '2025-04-11 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-04-11 13:23:20] Production.INFO: count ==4543 [2025-04-11 13:23:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:23:06 - End Time 2025-04-11 13:23:06 [2025-04-11 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884503', 'tblTempUsageDetail_20' ) start [2025-04-11 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884503', 'tblTempUsageDetail_20' ) end [2025-04-11 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884503', 'tblTempVendorCDR_20' ) start [2025-04-11 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884503', 'tblTempVendorCDR_20' ) end [2025-04-11 13:23:22] Production.INFO: ProcessCDR(1,14884503,1,1,2) [2025-04-11 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884503', 'tblTempUsageDetail_20' ) start [2025-04-11 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884503', 'tblTempUsageDetail_20' ) end [2025-04-11 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:23:28] Production.INFO: ==13530== Releasing lock... [2025-04-11 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:23:28] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:24:05 [end_date_ymd] => 2025-04-11 13:24:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:24:05' and `end` < '2025-04-11 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-04-11 13:24:19] Production.INFO: count ==4548 [2025-04-11 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:24:05 - End Time 2025-04-11 13:24:05 [2025-04-11 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884508', 'tblTempUsageDetail_20' ) start [2025-04-11 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884508', 'tblTempUsageDetail_20' ) end [2025-04-11 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884508', 'tblTempVendorCDR_20' ) start [2025-04-11 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884508', 'tblTempVendorCDR_20' ) end [2025-04-11 13:24:21] Production.INFO: ProcessCDR(1,14884508,1,1,2) [2025-04-11 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884508', 'tblTempUsageDetail_20' ) start [2025-04-11 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884508', 'tblTempUsageDetail_20' ) end [2025-04-11 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:24:27] Production.INFO: ==13609== Releasing lock... [2025-04-11 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:24:27] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:25:06 [end_date_ymd] => 2025-04-11 13:25:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:25:06' and `end` < '2025-04-11 13: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-04-11 13:25:19] Production.INFO: count ==4546 [2025-04-11 13:25:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:25:06 - End Time 2025-04-11 13:25:06 [2025-04-11 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884513', 'tblTempUsageDetail_20' ) start [2025-04-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884513', 'tblTempUsageDetail_20' ) end [2025-04-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884513', 'tblTempVendorCDR_20' ) start [2025-04-11 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884513', 'tblTempVendorCDR_20' ) end [2025-04-11 13:25:21] Production.INFO: ProcessCDR(1,14884513,1,1,2) [2025-04-11 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884513', 'tblTempUsageDetail_20' ) start [2025-04-11 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884513', 'tblTempUsageDetail_20' ) end [2025-04-11 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:25:27] Production.INFO: ==13681== Releasing lock... [2025-04-11 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:25:27] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:26:05 [end_date_ymd] => 2025-04-11 13:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:26:05' and `end` < '2025-04-11 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-04-11 13:26:19] Production.INFO: count ==4543 [2025-04-11 13:26:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:26:05 - End Time 2025-04-11 13:26:05 [2025-04-11 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884518', 'tblTempUsageDetail_20' ) start [2025-04-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884518', 'tblTempUsageDetail_20' ) end [2025-04-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884518', 'tblTempVendorCDR_20' ) start [2025-04-11 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884518', 'tblTempVendorCDR_20' ) end [2025-04-11 13:26:21] Production.INFO: ProcessCDR(1,14884518,1,1,2) [2025-04-11 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884518', 'tblTempUsageDetail_20' ) start [2025-04-11 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884518', 'tblTempUsageDetail_20' ) end [2025-04-11 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:26:26] Production.INFO: ==13752== Releasing lock... [2025-04-11 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:26:26] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:27:05 [end_date_ymd] => 2025-04-11 13:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:27:05' and `end` < '2025-04-11 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-04-11 13:27:19] Production.INFO: count ==4531 [2025-04-11 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:27:05 - End Time 2025-04-11 13:27:05 [2025-04-11 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884523', 'tblTempUsageDetail_20' ) start [2025-04-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884523', 'tblTempUsageDetail_20' ) end [2025-04-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884523', 'tblTempVendorCDR_20' ) start [2025-04-11 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884523', 'tblTempVendorCDR_20' ) end [2025-04-11 13:27:21] Production.INFO: ProcessCDR(1,14884523,1,1,2) [2025-04-11 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884523', 'tblTempUsageDetail_20' ) start [2025-04-11 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884523', 'tblTempUsageDetail_20' ) end [2025-04-11 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:27:27] Production.INFO: ==13827== Releasing lock... [2025-04-11 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:27:27] Production.INFO: 62 MB #Memory Used# [2025-04-11 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:28:05 [end_date_ymd] => 2025-04-11 13:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:28:05' and `end` < '2025-04-11 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-04-11 13:28:19] Production.INFO: count ==4525 [2025-04-11 13:28:20] Production.ERROR: pbx CDR StartTime 2025-04-11 10:28:05 - End Time 2025-04-11 13:28:05 [2025-04-11 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884528', 'tblTempUsageDetail_20' ) start [2025-04-11 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884528', 'tblTempUsageDetail_20' ) end [2025-04-11 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884528', 'tblTempVendorCDR_20' ) start [2025-04-11 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884528', 'tblTempVendorCDR_20' ) end [2025-04-11 13:28:20] Production.INFO: ProcessCDR(1,14884528,1,1,2) [2025-04-11 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884528', 'tblTempUsageDetail_20' ) start [2025-04-11 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884528', 'tblTempUsageDetail_20' ) end [2025-04-11 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:28:26] Production.INFO: ==13899== Releasing lock... [2025-04-11 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:28:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:29:06 [end_date_ymd] => 2025-04-11 13:29:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:29:06' and `end` < '2025-04-11 13: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-04-11 13:29:20] Production.INFO: count ==4524 [2025-04-11 13:29:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:29:06 - End Time 2025-04-11 13:29:06 [2025-04-11 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884533', 'tblTempUsageDetail_20' ) start [2025-04-11 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884533', 'tblTempUsageDetail_20' ) end [2025-04-11 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884533', 'tblTempVendorCDR_20' ) start [2025-04-11 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884533', 'tblTempVendorCDR_20' ) end [2025-04-11 13:29:22] Production.INFO: ProcessCDR(1,14884533,1,1,2) [2025-04-11 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884533', 'tblTempUsageDetail_20' ) start [2025-04-11 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884533', 'tblTempUsageDetail_20' ) end [2025-04-11 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:29:27] Production.INFO: ==13972== Releasing lock... [2025-04-11 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:29:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:30:06 [end_date_ymd] => 2025-04-11 13:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:30:06' and `end` < '2025-04-11 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-04-11 13:30:20] Production.INFO: count ==4510 [2025-04-11 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:30:06 - End Time 2025-04-11 13:30:06 [2025-04-11 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884539', 'tblTempUsageDetail_20' ) start [2025-04-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884539', 'tblTempUsageDetail_20' ) end [2025-04-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884539', 'tblTempVendorCDR_20' ) start [2025-04-11 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884539', 'tblTempVendorCDR_20' ) end [2025-04-11 13:30:22] Production.INFO: ProcessCDR(1,14884539,1,1,2) [2025-04-11 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884539', 'tblTempUsageDetail_20' ) start [2025-04-11 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884539', 'tblTempUsageDetail_20' ) end [2025-04-11 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:30:27] Production.INFO: ==14046== Releasing lock... [2025-04-11 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:30:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:31:06 [end_date_ymd] => 2025-04-11 13:31:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:31:06' and `end` < '2025-04-11 13: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-04-11 13:31:20] Production.INFO: count ==4494 [2025-04-11 13:31:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:31:06 - End Time 2025-04-11 13:31:06 [2025-04-11 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884544', 'tblTempUsageDetail_20' ) start [2025-04-11 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884544', 'tblTempUsageDetail_20' ) end [2025-04-11 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884544', 'tblTempVendorCDR_20' ) start [2025-04-11 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884544', 'tblTempVendorCDR_20' ) end [2025-04-11 13:31:22] Production.INFO: ProcessCDR(1,14884544,1,1,2) [2025-04-11 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884544', 'tblTempUsageDetail_20' ) start [2025-04-11 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884544', 'tblTempUsageDetail_20' ) end [2025-04-11 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:31:28] Production.INFO: ==14123== Releasing lock... [2025-04-11 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:31:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:32:06 [end_date_ymd] => 2025-04-11 13:32:06 [RateCDR] => 1 ) [2025-04-11 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 10:32:06' and `end` < '2025-04-11 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 13:32:19] Production.INFO: count ==4492 [2025-04-11 13:32:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:32:06 - End Time 2025-04-11 13:32:06 [2025-04-11 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884549', 'tblTempUsageDetail_20' ) start [2025-04-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884549', 'tblTempUsageDetail_20' ) end [2025-04-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884549', 'tblTempVendorCDR_20' ) start [2025-04-11 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884549', 'tblTempVendorCDR_20' ) end [2025-04-11 13:32:21] Production.INFO: ProcessCDR(1,14884549,1,1,2) [2025-04-11 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884549', 'tblTempUsageDetail_20' ) start [2025-04-11 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884549', 'tblTempUsageDetail_20' ) end [2025-04-11 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:32:28] Production.INFO: ==14193== Releasing lock... [2025-04-11 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:32:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:33:07 [end_date_ymd] => 2025-04-11 13:33:07 [RateCDR] => 1 ) [2025-04-11 13:33: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-04-11 10:33:07' and `end` < '2025-04-11 13:33: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-04-11 13:33:20] Production.INFO: count ==4489 [2025-04-11 13:33:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:33:07 - End Time 2025-04-11 13:33:07 [2025-04-11 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884554', 'tblTempUsageDetail_20' ) start [2025-04-11 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884554', 'tblTempUsageDetail_20' ) end [2025-04-11 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884554', 'tblTempVendorCDR_20' ) start [2025-04-11 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884554', 'tblTempVendorCDR_20' ) end [2025-04-11 13:33:22] Production.INFO: ProcessCDR(1,14884554,1,1,2) [2025-04-11 13:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884554', 'tblTempUsageDetail_20' ) start [2025-04-11 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884554', 'tblTempUsageDetail_20' ) end [2025-04-11 13:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:33:28] Production.INFO: ==14305== Releasing lock... [2025-04-11 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:33:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:34:05 [end_date_ymd] => 2025-04-11 13:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:34:05' and `end` < '2025-04-11 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-04-11 13:34:19] Production.INFO: count ==4480 [2025-04-11 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:34:05 - End Time 2025-04-11 13:34:05 [2025-04-11 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884559', 'tblTempUsageDetail_20' ) start [2025-04-11 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884559', 'tblTempUsageDetail_20' ) end [2025-04-11 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884559', 'tblTempVendorCDR_20' ) start [2025-04-11 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884559', 'tblTempVendorCDR_20' ) end [2025-04-11 13:34:21] Production.INFO: ProcessCDR(1,14884559,1,1,2) [2025-04-11 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884559', 'tblTempUsageDetail_20' ) start [2025-04-11 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884559', 'tblTempUsageDetail_20' ) end [2025-04-11 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:34:26] Production.INFO: ==14378== Releasing lock... [2025-04-11 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:34:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:35:06 [end_date_ymd] => 2025-04-11 13:35:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:35:06' and `end` < '2025-04-11 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-04-11 13:35:20] Production.INFO: count ==4470 [2025-04-11 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:35:06 - End Time 2025-04-11 13:35:06 [2025-04-11 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884564', 'tblTempUsageDetail_20' ) start [2025-04-11 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884564', 'tblTempUsageDetail_20' ) end [2025-04-11 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884564', 'tblTempVendorCDR_20' ) start [2025-04-11 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884564', 'tblTempVendorCDR_20' ) end [2025-04-11 13:35:22] Production.INFO: ProcessCDR(1,14884564,1,1,2) [2025-04-11 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884564', 'tblTempUsageDetail_20' ) start [2025-04-11 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884564', 'tblTempUsageDetail_20' ) end [2025-04-11 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:35:27] Production.INFO: ==14450== Releasing lock... [2025-04-11 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:35:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:36:06 [end_date_ymd] => 2025-04-11 13:36:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:36:06' and `end` < '2025-04-11 13: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-04-11 13:36:19] Production.INFO: count ==4463 [2025-04-11 13:36:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:36:06 - End Time 2025-04-11 13:36:06 [2025-04-11 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884569', 'tblTempUsageDetail_20' ) start [2025-04-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884569', 'tblTempUsageDetail_20' ) end [2025-04-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884569', 'tblTempVendorCDR_20' ) start [2025-04-11 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884569', 'tblTempVendorCDR_20' ) end [2025-04-11 13:36:21] Production.INFO: ProcessCDR(1,14884569,1,1,2) [2025-04-11 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884569', 'tblTempUsageDetail_20' ) start [2025-04-11 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884569', 'tblTempUsageDetail_20' ) end [2025-04-11 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:36:27] Production.INFO: ==14524== Releasing lock... [2025-04-11 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:36:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:37:05 [end_date_ymd] => 2025-04-11 13:37:05 [RateCDR] => 1 ) [2025-04-11 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 10:37:05' and `end` < '2025-04-11 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 13:37:19] Production.INFO: count ==4474 [2025-04-11 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:37:05 - End Time 2025-04-11 13:37:05 [2025-04-11 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884574', 'tblTempUsageDetail_20' ) start [2025-04-11 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884574', 'tblTempUsageDetail_20' ) end [2025-04-11 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884574', 'tblTempVendorCDR_20' ) start [2025-04-11 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884574', 'tblTempVendorCDR_20' ) end [2025-04-11 13:37:21] Production.INFO: ProcessCDR(1,14884574,1,1,2) [2025-04-11 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884574', 'tblTempUsageDetail_20' ) start [2025-04-11 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884574', 'tblTempUsageDetail_20' ) end [2025-04-11 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:37:27] Production.INFO: ==14598== Releasing lock... [2025-04-11 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:37:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:38:06 [end_date_ymd] => 2025-04-11 13:38:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:38:06' and `end` < '2025-04-11 13: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-04-11 13:38:19] Production.INFO: count ==4483 [2025-04-11 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:38:06 - End Time 2025-04-11 13:38:06 [2025-04-11 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884579', 'tblTempUsageDetail_20' ) start [2025-04-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884579', 'tblTempUsageDetail_20' ) end [2025-04-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884579', 'tblTempVendorCDR_20' ) start [2025-04-11 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884579', 'tblTempVendorCDR_20' ) end [2025-04-11 13:38:21] Production.INFO: ProcessCDR(1,14884579,1,1,2) [2025-04-11 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884579', 'tblTempUsageDetail_20' ) start [2025-04-11 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884579', 'tblTempUsageDetail_20' ) end [2025-04-11 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:38:27] Production.INFO: ==14669== Releasing lock... [2025-04-11 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:38:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:39:05 [end_date_ymd] => 2025-04-11 13:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:39:05' and `end` < '2025-04-11 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-04-11 13:39:19] Production.INFO: count ==4490 [2025-04-11 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:39:05 - End Time 2025-04-11 13:39:05 [2025-04-11 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884584', 'tblTempUsageDetail_20' ) start [2025-04-11 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884584', 'tblTempUsageDetail_20' ) end [2025-04-11 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884584', 'tblTempVendorCDR_20' ) start [2025-04-11 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884584', 'tblTempVendorCDR_20' ) end [2025-04-11 13:39:21] Production.INFO: ProcessCDR(1,14884584,1,1,2) [2025-04-11 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884584', 'tblTempUsageDetail_20' ) start [2025-04-11 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884584', 'tblTempUsageDetail_20' ) end [2025-04-11 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:39:27] Production.INFO: ==14742== Releasing lock... [2025-04-11 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:39:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:40:07 [end_date_ymd] => 2025-04-11 13:40:07 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:40:07' and `end` < '2025-04-11 13: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-04-11 13:40:21] Production.INFO: count ==4515 [2025-04-11 13:40:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:40:07 - End Time 2025-04-11 13:40:07 [2025-04-11 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884590', 'tblTempUsageDetail_20' ) start [2025-04-11 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884590', 'tblTempUsageDetail_20' ) end [2025-04-11 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884590', 'tblTempVendorCDR_20' ) start [2025-04-11 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884590', 'tblTempVendorCDR_20' ) end [2025-04-11 13:40:23] Production.INFO: ProcessCDR(1,14884590,1,1,2) [2025-04-11 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884590', 'tblTempUsageDetail_20' ) start [2025-04-11 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884590', 'tblTempUsageDetail_20' ) end [2025-04-11 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:40:28] Production.INFO: ==14821== Releasing lock... [2025-04-11 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:40:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:41:05 [end_date_ymd] => 2025-04-11 13:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:41:05' and `end` < '2025-04-11 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-04-11 13:41:19] Production.INFO: count ==4466 [2025-04-11 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:41:05 - End Time 2025-04-11 13:41:05 [2025-04-11 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884595', 'tblTempUsageDetail_20' ) start [2025-04-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884595', 'tblTempUsageDetail_20' ) end [2025-04-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884595', 'tblTempVendorCDR_20' ) start [2025-04-11 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884595', 'tblTempVendorCDR_20' ) end [2025-04-11 13:41:21] Production.INFO: ProcessCDR(1,14884595,1,1,2) [2025-04-11 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884595', 'tblTempUsageDetail_20' ) start [2025-04-11 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884595', 'tblTempUsageDetail_20' ) end [2025-04-11 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:41:27] Production.INFO: ==14894== Releasing lock... [2025-04-11 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:41:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:42:06 [end_date_ymd] => 2025-04-11 13:42:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:42:06' and `end` < '2025-04-11 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-04-11 13:42:20] Production.INFO: count ==4463 [2025-04-11 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:42:06 - End Time 2025-04-11 13:42:06 [2025-04-11 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884600', 'tblTempUsageDetail_20' ) start [2025-04-11 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884600', 'tblTempUsageDetail_20' ) end [2025-04-11 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884600', 'tblTempVendorCDR_20' ) start [2025-04-11 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884600', 'tblTempVendorCDR_20' ) end [2025-04-11 13:42:22] Production.INFO: ProcessCDR(1,14884600,1,1,2) [2025-04-11 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884600', 'tblTempUsageDetail_20' ) start [2025-04-11 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884600', 'tblTempUsageDetail_20' ) end [2025-04-11 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:42:27] Production.INFO: ==14967== Releasing lock... [2025-04-11 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:42:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:43:05 [end_date_ymd] => 2025-04-11 13:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:43:05' and `end` < '2025-04-11 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-04-11 13:43:19] Production.INFO: count ==4450 [2025-04-11 13:43:20] Production.ERROR: pbx CDR StartTime 2025-04-11 10:43:05 - End Time 2025-04-11 13:43:05 [2025-04-11 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884605', 'tblTempUsageDetail_20' ) start [2025-04-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884605', 'tblTempUsageDetail_20' ) end [2025-04-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884605', 'tblTempVendorCDR_20' ) start [2025-04-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884605', 'tblTempVendorCDR_20' ) end [2025-04-11 13:43:21] Production.INFO: ProcessCDR(1,14884605,1,1,2) [2025-04-11 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884605', 'tblTempUsageDetail_20' ) start [2025-04-11 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884605', 'tblTempUsageDetail_20' ) end [2025-04-11 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:43:26] Production.INFO: ==15038== Releasing lock... [2025-04-11 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:43:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:44:05 [end_date_ymd] => 2025-04-11 13:44:05 [RateCDR] => 1 ) [2025-04-11 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 10:44:05' and `end` < '2025-04-11 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 13:44:19] Production.INFO: count ==4442 [2025-04-11 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:44:05 - End Time 2025-04-11 13:44:05 [2025-04-11 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884610', 'tblTempUsageDetail_20' ) start [2025-04-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884610', 'tblTempUsageDetail_20' ) end [2025-04-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884610', 'tblTempVendorCDR_20' ) start [2025-04-11 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884610', 'tblTempVendorCDR_20' ) end [2025-04-11 13:44:21] Production.INFO: ProcessCDR(1,14884610,1,1,2) [2025-04-11 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884610', 'tblTempUsageDetail_20' ) start [2025-04-11 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884610', 'tblTempUsageDetail_20' ) end [2025-04-11 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:44:27] Production.INFO: ==15112== Releasing lock... [2025-04-11 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:44:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:45:05 [end_date_ymd] => 2025-04-11 13:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:45:05' and `end` < '2025-04-11 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-04-11 13:45:19] Production.INFO: count ==4433 [2025-04-11 13:45:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:45:05 - End Time 2025-04-11 13:45:05 [2025-04-11 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884615', 'tblTempUsageDetail_20' ) start [2025-04-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884615', 'tblTempUsageDetail_20' ) end [2025-04-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884615', 'tblTempVendorCDR_20' ) start [2025-04-11 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884615', 'tblTempVendorCDR_20' ) end [2025-04-11 13:45:21] Production.INFO: ProcessCDR(1,14884615,1,1,2) [2025-04-11 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884615', 'tblTempUsageDetail_20' ) start [2025-04-11 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884615', 'tblTempUsageDetail_20' ) end [2025-04-11 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:45:27] Production.INFO: ==15184== Releasing lock... [2025-04-11 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:45:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:46:06 [end_date_ymd] => 2025-04-11 13:46:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:46:06' and `end` < '2025-04-11 13: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-04-11 13:46:19] Production.INFO: count ==4439 [2025-04-11 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:46:06 - End Time 2025-04-11 13:46:06 [2025-04-11 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884620', 'tblTempUsageDetail_20' ) start [2025-04-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884620', 'tblTempUsageDetail_20' ) end [2025-04-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884620', 'tblTempVendorCDR_20' ) start [2025-04-11 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884620', 'tblTempVendorCDR_20' ) end [2025-04-11 13:46:21] Production.INFO: ProcessCDR(1,14884620,1,1,2) [2025-04-11 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884620', 'tblTempUsageDetail_20' ) start [2025-04-11 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884620', 'tblTempUsageDetail_20' ) end [2025-04-11 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:46:27] Production.INFO: ==15257== Releasing lock... [2025-04-11 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:46:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:47:05 [end_date_ymd] => 2025-04-11 13:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:47:05' and `end` < '2025-04-11 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-04-11 13:47:19] Production.INFO: count ==4431 [2025-04-11 13:47:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:47:05 - End Time 2025-04-11 13:47:05 [2025-04-11 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884625', 'tblTempUsageDetail_20' ) start [2025-04-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884625', 'tblTempUsageDetail_20' ) end [2025-04-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884625', 'tblTempVendorCDR_20' ) start [2025-04-11 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884625', 'tblTempVendorCDR_20' ) end [2025-04-11 13:47:21] Production.INFO: ProcessCDR(1,14884625,1,1,2) [2025-04-11 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884625', 'tblTempUsageDetail_20' ) start [2025-04-11 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884625', 'tblTempUsageDetail_20' ) end [2025-04-11 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:47:26] Production.INFO: ==15328== Releasing lock... [2025-04-11 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:47:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:48:05 [end_date_ymd] => 2025-04-11 13:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:48:05' and `end` < '2025-04-11 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-04-11 13:48:19] Production.INFO: count ==4448 [2025-04-11 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:48:05 - End Time 2025-04-11 13:48:05 [2025-04-11 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884630', 'tblTempUsageDetail_20' ) start [2025-04-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884630', 'tblTempUsageDetail_20' ) end [2025-04-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884630', 'tblTempVendorCDR_20' ) start [2025-04-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884630', 'tblTempVendorCDR_20' ) end [2025-04-11 13:48:21] Production.INFO: ProcessCDR(1,14884630,1,1,2) [2025-04-11 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884630', 'tblTempUsageDetail_20' ) start [2025-04-11 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884630', 'tblTempUsageDetail_20' ) end [2025-04-11 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:48:27] Production.INFO: ==15401== Releasing lock... [2025-04-11 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:48:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:49:05 [end_date_ymd] => 2025-04-11 13:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:49:05' and `end` < '2025-04-11 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-04-11 13:49:19] Production.INFO: count ==4442 [2025-04-11 13:49:20] Production.ERROR: pbx CDR StartTime 2025-04-11 10:49:05 - End Time 2025-04-11 13:49:05 [2025-04-11 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884635', 'tblTempUsageDetail_20' ) start [2025-04-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884635', 'tblTempUsageDetail_20' ) end [2025-04-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884635', 'tblTempVendorCDR_20' ) start [2025-04-11 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884635', 'tblTempVendorCDR_20' ) end [2025-04-11 13:49:20] Production.INFO: ProcessCDR(1,14884635,1,1,2) [2025-04-11 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884635', 'tblTempUsageDetail_20' ) start [2025-04-11 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884635', 'tblTempUsageDetail_20' ) end [2025-04-11 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:49:26] Production.INFO: ==15513== Releasing lock... [2025-04-11 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:49:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:50:06 [end_date_ymd] => 2025-04-11 13:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:50:06' and `end` < '2025-04-11 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-04-11 13:50:20] Production.INFO: count ==4436 [2025-04-11 13:50:22] Production.ERROR: pbx CDR StartTime 2025-04-11 10:50:06 - End Time 2025-04-11 13:50:06 [2025-04-11 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884641', 'tblTempUsageDetail_20' ) start [2025-04-11 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884641', 'tblTempUsageDetail_20' ) end [2025-04-11 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884641', 'tblTempVendorCDR_20' ) start [2025-04-11 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884641', 'tblTempVendorCDR_20' ) end [2025-04-11 13:50:22] Production.INFO: ProcessCDR(1,14884641,1,1,2) [2025-04-11 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884641', 'tblTempUsageDetail_20' ) start [2025-04-11 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884641', 'tblTempUsageDetail_20' ) end [2025-04-11 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:50:27] Production.INFO: ==15589== Releasing lock... [2025-04-11 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:50:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:51:05 [end_date_ymd] => 2025-04-11 13:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:51:05' and `end` < '2025-04-11 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-04-11 13:51:19] Production.INFO: count ==4434 [2025-04-11 13:51:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:51:05 - End Time 2025-04-11 13:51:05 [2025-04-11 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884646', 'tblTempUsageDetail_20' ) start [2025-04-11 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884646', 'tblTempUsageDetail_20' ) end [2025-04-11 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884646', 'tblTempVendorCDR_20' ) start [2025-04-11 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884646', 'tblTempVendorCDR_20' ) end [2025-04-11 13:51:21] Production.INFO: ProcessCDR(1,14884646,1,1,2) [2025-04-11 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884646', 'tblTempUsageDetail_20' ) start [2025-04-11 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884646', 'tblTempUsageDetail_20' ) end [2025-04-11 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:51:27] Production.INFO: ==15664== Releasing lock... [2025-04-11 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:51:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:52:05 [end_date_ymd] => 2025-04-11 13:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:52:05' and `end` < '2025-04-11 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-04-11 13:52:19] Production.INFO: count ==4429 [2025-04-11 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:52:05 - End Time 2025-04-11 13:52:05 [2025-04-11 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884651', 'tblTempUsageDetail_20' ) start [2025-04-11 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884651', 'tblTempUsageDetail_20' ) end [2025-04-11 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884651', 'tblTempVendorCDR_20' ) start [2025-04-11 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884651', 'tblTempVendorCDR_20' ) end [2025-04-11 13:52:21] Production.INFO: ProcessCDR(1,14884651,1,1,2) [2025-04-11 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884651', 'tblTempUsageDetail_20' ) start [2025-04-11 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884651', 'tblTempUsageDetail_20' ) end [2025-04-11 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:52:27] Production.INFO: ==15733== Releasing lock... [2025-04-11 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:52:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:53:06 [end_date_ymd] => 2025-04-11 13:53:06 [RateCDR] => 1 ) [2025-04-11 13: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-04-11 10:53:06' and `end` < '2025-04-11 13: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-04-11 13:53:20] Production.INFO: count ==4412 [2025-04-11 13:53:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:53:06 - End Time 2025-04-11 13:53:06 [2025-04-11 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884656', 'tblTempUsageDetail_20' ) start [2025-04-11 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884656', 'tblTempUsageDetail_20' ) end [2025-04-11 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884656', 'tblTempVendorCDR_20' ) start [2025-04-11 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884656', 'tblTempVendorCDR_20' ) end [2025-04-11 13:53:22] Production.INFO: ProcessCDR(1,14884656,1,1,2) [2025-04-11 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884656', 'tblTempUsageDetail_20' ) start [2025-04-11 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884656', 'tblTempUsageDetail_20' ) end [2025-04-11 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:53:27] Production.INFO: ==15806== Releasing lock... [2025-04-11 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:53:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:54:05 [end_date_ymd] => 2025-04-11 13:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:54:05' and `end` < '2025-04-11 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-04-11 13:54:19] Production.INFO: count ==4425 [2025-04-11 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:54:05 - End Time 2025-04-11 13:54:05 [2025-04-11 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884661', 'tblTempUsageDetail_20' ) start [2025-04-11 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884661', 'tblTempUsageDetail_20' ) end [2025-04-11 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884661', 'tblTempVendorCDR_20' ) start [2025-04-11 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884661', 'tblTempVendorCDR_20' ) end [2025-04-11 13:54:21] Production.INFO: ProcessCDR(1,14884661,1,1,2) [2025-04-11 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884661', 'tblTempUsageDetail_20' ) start [2025-04-11 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884661', 'tblTempUsageDetail_20' ) end [2025-04-11 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:54:27] Production.INFO: ==15882== Releasing lock... [2025-04-11 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:54:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:55:06 [end_date_ymd] => 2025-04-11 13:55:06 [RateCDR] => 1 ) [2025-04-11 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 10:55:06' and `end` < '2025-04-11 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 13:55:20] Production.INFO: count ==4423 [2025-04-11 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:55:06 - End Time 2025-04-11 13:55:06 [2025-04-11 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884666', 'tblTempUsageDetail_20' ) start [2025-04-11 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884666', 'tblTempUsageDetail_20' ) end [2025-04-11 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884666', 'tblTempVendorCDR_20' ) start [2025-04-11 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884666', 'tblTempVendorCDR_20' ) end [2025-04-11 13:55:21] Production.INFO: ProcessCDR(1,14884666,1,1,2) [2025-04-11 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884666', 'tblTempUsageDetail_20' ) start [2025-04-11 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884666', 'tblTempUsageDetail_20' ) end [2025-04-11 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:55:27] Production.INFO: ==15957== Releasing lock... [2025-04-11 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:55:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:56:05 [end_date_ymd] => 2025-04-11 13:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:56:05' and `end` < '2025-04-11 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-04-11 13:56:19] Production.INFO: count ==4458 [2025-04-11 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:56:05 - End Time 2025-04-11 13:56:05 [2025-04-11 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884671', 'tblTempUsageDetail_20' ) start [2025-04-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884671', 'tblTempUsageDetail_20' ) end [2025-04-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884671', 'tblTempVendorCDR_20' ) start [2025-04-11 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884671', 'tblTempVendorCDR_20' ) end [2025-04-11 13:56:21] Production.INFO: ProcessCDR(1,14884671,1,1,2) [2025-04-11 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884671', 'tblTempUsageDetail_20' ) start [2025-04-11 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884671', 'tblTempUsageDetail_20' ) end [2025-04-11 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:56:27] Production.INFO: ==16030== Releasing lock... [2025-04-11 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:56:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:57:05 [end_date_ymd] => 2025-04-11 13:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:57:05' and `end` < '2025-04-11 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-04-11 13:57:19] Production.INFO: count ==4461 [2025-04-11 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:57:05 - End Time 2025-04-11 13:57:05 [2025-04-11 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884676', 'tblTempUsageDetail_20' ) start [2025-04-11 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884676', 'tblTempUsageDetail_20' ) end [2025-04-11 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884676', 'tblTempVendorCDR_20' ) start [2025-04-11 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884676', 'tblTempVendorCDR_20' ) end [2025-04-11 13:57:21] Production.INFO: ProcessCDR(1,14884676,1,1,2) [2025-04-11 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884676', 'tblTempUsageDetail_20' ) start [2025-04-11 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884676', 'tblTempUsageDetail_20' ) end [2025-04-11 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:57:26] Production.INFO: ==16101== Releasing lock... [2025-04-11 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:57:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:58:06 [end_date_ymd] => 2025-04-11 13:58:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 10:58:06' and `end` < '2025-04-11 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-04-11 13:58:20] Production.INFO: count ==4471 [2025-04-11 13:58:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:58:06 - End Time 2025-04-11 13:58:06 [2025-04-11 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884681', 'tblTempUsageDetail_20' ) start [2025-04-11 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884681', 'tblTempUsageDetail_20' ) end [2025-04-11 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884681', 'tblTempVendorCDR_20' ) start [2025-04-11 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884681', 'tblTempVendorCDR_20' ) end [2025-04-11 13:58:22] Production.INFO: ProcessCDR(1,14884681,1,1,2) [2025-04-11 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884681', 'tblTempUsageDetail_20' ) start [2025-04-11 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884681', 'tblTempUsageDetail_20' ) end [2025-04-11 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:58:27] Production.INFO: ==16173== Releasing lock... [2025-04-11 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:58:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 10:59:05 [end_date_ymd] => 2025-04-11 13:59:05 [RateCDR] => 1 ) [2025-04-11 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 10:59:05' and `end` < '2025-04-11 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 13:59:19] Production.INFO: count ==4490 [2025-04-11 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-11 10:59:05 - End Time 2025-04-11 13:59:05 [2025-04-11 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884686', 'tblTempUsageDetail_20' ) start [2025-04-11 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884686', 'tblTempUsageDetail_20' ) end [2025-04-11 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884686', 'tblTempVendorCDR_20' ) start [2025-04-11 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884686', 'tblTempVendorCDR_20' ) end [2025-04-11 13:59:21] Production.INFO: ProcessCDR(1,14884686,1,1,2) [2025-04-11 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884686', 'tblTempUsageDetail_20' ) start [2025-04-11 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884686', 'tblTempUsageDetail_20' ) end [2025-04-11 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 13:59:26] Production.INFO: ==16243== Releasing lock... [2025-04-11 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 13:59:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:00:06 [end_date_ymd] => 2025-04-11 14:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:00:06' and `end` < '2025-04-11 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-04-11 14:00:20] Production.INFO: count ==4488 [2025-04-11 14:00:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:00:06 - End Time 2025-04-11 14:00:06 [2025-04-11 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884691', 'tblTempUsageDetail_20' ) start [2025-04-11 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884691', 'tblTempUsageDetail_20' ) end [2025-04-11 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884691', 'tblTempVendorCDR_20' ) start [2025-04-11 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884691', 'tblTempVendorCDR_20' ) end [2025-04-11 14:00:21] Production.INFO: ProcessCDR(1,14884691,1,1,2) [2025-04-11 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884691', 'tblTempUsageDetail_20' ) start [2025-04-11 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884691', 'tblTempUsageDetail_20' ) end [2025-04-11 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:00:27] Production.INFO: ==16319== Releasing lock... [2025-04-11 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:00:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:01:05 [end_date_ymd] => 2025-04-11 14:01:05 [RateCDR] => 1 ) [2025-04-11 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:01:05' and `end` < '2025-04-11 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:01:19] Production.INFO: count ==4502 [2025-04-11 14:01:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:01:05 - End Time 2025-04-11 14:01:05 [2025-04-11 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884697', 'tblTempUsageDetail_20' ) start [2025-04-11 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884697', 'tblTempUsageDetail_20' ) end [2025-04-11 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884697', 'tblTempVendorCDR_20' ) start [2025-04-11 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884697', 'tblTempVendorCDR_20' ) end [2025-04-11 14:01:21] Production.INFO: ProcessCDR(1,14884697,1,1,2) [2025-04-11 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884697', 'tblTempUsageDetail_20' ) start [2025-04-11 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884697', 'tblTempUsageDetail_20' ) end [2025-04-11 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:01:26] Production.INFO: ==16404== Releasing lock... [2025-04-11 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:01:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:02:06 [end_date_ymd] => 2025-04-11 14:02:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:02:06' and `end` < '2025-04-11 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-04-11 14:02:19] Production.INFO: count ==4505 [2025-04-11 14:02:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:02:06 - End Time 2025-04-11 14:02:06 [2025-04-11 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884702', 'tblTempUsageDetail_20' ) start [2025-04-11 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884702', 'tblTempUsageDetail_20' ) end [2025-04-11 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884702', 'tblTempVendorCDR_20' ) start [2025-04-11 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884702', 'tblTempVendorCDR_20' ) end [2025-04-11 14:02:21] Production.INFO: ProcessCDR(1,14884702,1,1,2) [2025-04-11 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884702', 'tblTempUsageDetail_20' ) start [2025-04-11 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884702', 'tblTempUsageDetail_20' ) end [2025-04-11 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:02:27] Production.INFO: ==16476== Releasing lock... [2025-04-11 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:02:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:03:05 [end_date_ymd] => 2025-04-11 14:03:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:03:05' and `end` < '2025-04-11 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-04-11 14:03:19] Production.INFO: count ==4514 [2025-04-11 14:03:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:03:05 - End Time 2025-04-11 14:03:05 [2025-04-11 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884707', 'tblTempUsageDetail_20' ) start [2025-04-11 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884707', 'tblTempUsageDetail_20' ) end [2025-04-11 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884707', 'tblTempVendorCDR_20' ) start [2025-04-11 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884707', 'tblTempVendorCDR_20' ) end [2025-04-11 14:03:21] Production.INFO: ProcessCDR(1,14884707,1,1,2) [2025-04-11 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884707', 'tblTempUsageDetail_20' ) start [2025-04-11 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884707', 'tblTempUsageDetail_20' ) end [2025-04-11 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:03:26] Production.INFO: ==16550== Releasing lock... [2025-04-11 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:03:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:04:05 [end_date_ymd] => 2025-04-11 14:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:04:05' and `end` < '2025-04-11 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-04-11 14:04:19] Production.INFO: count ==4510 [2025-04-11 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:04:05 - End Time 2025-04-11 14:04:05 [2025-04-11 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884712', 'tblTempUsageDetail_20' ) start [2025-04-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884712', 'tblTempUsageDetail_20' ) end [2025-04-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884712', 'tblTempVendorCDR_20' ) start [2025-04-11 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884712', 'tblTempVendorCDR_20' ) end [2025-04-11 14:04:21] Production.INFO: ProcessCDR(1,14884712,1,1,2) [2025-04-11 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884712', 'tblTempUsageDetail_20' ) start [2025-04-11 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884712', 'tblTempUsageDetail_20' ) end [2025-04-11 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:04:26] Production.INFO: ==16662== Releasing lock... [2025-04-11 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:04:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:05:04 [end_date_ymd] => 2025-04-11 14:05:04 [RateCDR] => 1 ) [2025-04-11 14:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:05:04' and `end` < '2025-04-11 14:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:05:18] Production.INFO: count ==4514 [2025-04-11 14:05:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:05:04 - End Time 2025-04-11 14:05:04 [2025-04-11 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884717', 'tblTempUsageDetail_20' ) start [2025-04-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884717', 'tblTempUsageDetail_20' ) end [2025-04-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884717', 'tblTempVendorCDR_20' ) start [2025-04-11 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884717', 'tblTempVendorCDR_20' ) end [2025-04-11 14:05:20] Production.INFO: ProcessCDR(1,14884717,1,1,2) [2025-04-11 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884717', 'tblTempUsageDetail_20' ) start [2025-04-11 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884717', 'tblTempUsageDetail_20' ) end [2025-04-11 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:05:26] Production.INFO: ==16734== Releasing lock... [2025-04-11 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:05:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:06:05 [end_date_ymd] => 2025-04-11 14:06:05 [RateCDR] => 1 ) [2025-04-11 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:06:05' and `end` < '2025-04-11 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:06:19] Production.INFO: count ==4522 [2025-04-11 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:06:05 - End Time 2025-04-11 14:06:05 [2025-04-11 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884722', 'tblTempUsageDetail_20' ) start [2025-04-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884722', 'tblTempUsageDetail_20' ) end [2025-04-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884722', 'tblTempVendorCDR_20' ) start [2025-04-11 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884722', 'tblTempVendorCDR_20' ) end [2025-04-11 14:06:21] Production.INFO: ProcessCDR(1,14884722,1,1,2) [2025-04-11 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884722', 'tblTempUsageDetail_20' ) start [2025-04-11 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884722', 'tblTempUsageDetail_20' ) end [2025-04-11 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:06:27] Production.INFO: ==16804== Releasing lock... [2025-04-11 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:06:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:07:05 [end_date_ymd] => 2025-04-11 14:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:07:05' and `end` < '2025-04-11 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-04-11 14:07:19] Production.INFO: count ==4546 [2025-04-11 14:07:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:07:05 - End Time 2025-04-11 14:07:05 [2025-04-11 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884727', 'tblTempUsageDetail_20' ) start [2025-04-11 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884727', 'tblTempUsageDetail_20' ) end [2025-04-11 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884727', 'tblTempVendorCDR_20' ) start [2025-04-11 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884727', 'tblTempVendorCDR_20' ) end [2025-04-11 14:07:21] Production.INFO: ProcessCDR(1,14884727,1,1,2) [2025-04-11 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884727', 'tblTempUsageDetail_20' ) start [2025-04-11 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884727', 'tblTempUsageDetail_20' ) end [2025-04-11 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:07:26] Production.INFO: ==16874== Releasing lock... [2025-04-11 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:07:26] Production.INFO: 62 MB #Memory Used# [2025-04-11 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:08:06 [end_date_ymd] => 2025-04-11 14:08:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:08:06' and `end` < '2025-04-11 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-04-11 14:08:19] Production.INFO: count ==4533 [2025-04-11 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:08:06 - End Time 2025-04-11 14:08:06 [2025-04-11 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884732', 'tblTempUsageDetail_20' ) start [2025-04-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884732', 'tblTempUsageDetail_20' ) end [2025-04-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884732', 'tblTempVendorCDR_20' ) start [2025-04-11 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884732', 'tblTempVendorCDR_20' ) end [2025-04-11 14:08:21] Production.INFO: ProcessCDR(1,14884732,1,1,2) [2025-04-11 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884732', 'tblTempUsageDetail_20' ) start [2025-04-11 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884732', 'tblTempUsageDetail_20' ) end [2025-04-11 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:08:27] Production.INFO: ==16951== Releasing lock... [2025-04-11 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:08:27] Production.INFO: 62 MB #Memory Used# [2025-04-11 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:09:05 [end_date_ymd] => 2025-04-11 14:09:05 [RateCDR] => 1 ) [2025-04-11 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:09:05' and `end` < '2025-04-11 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:09:18] Production.INFO: count ==4523 [2025-04-11 14:09:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:09:05 - End Time 2025-04-11 14:09:05 [2025-04-11 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884737', 'tblTempUsageDetail_20' ) start [2025-04-11 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884737', 'tblTempUsageDetail_20' ) end [2025-04-11 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884737', 'tblTempVendorCDR_20' ) start [2025-04-11 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884737', 'tblTempVendorCDR_20' ) end [2025-04-11 14:09:20] Production.INFO: ProcessCDR(1,14884737,1,1,2) [2025-04-11 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884737', 'tblTempUsageDetail_20' ) start [2025-04-11 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884737', 'tblTempUsageDetail_20' ) end [2025-04-11 14:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:09:25] Production.INFO: ==17021== Releasing lock... [2025-04-11 14:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:09:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:10:06 [end_date_ymd] => 2025-04-11 14:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:10:06' and `end` < '2025-04-11 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-04-11 14:10:20] Production.INFO: count ==4507 [2025-04-11 14:10:22] Production.ERROR: pbx CDR StartTime 2025-04-11 11:10:06 - End Time 2025-04-11 14:10:06 [2025-04-11 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884743', 'tblTempUsageDetail_20' ) start [2025-04-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884743', 'tblTempUsageDetail_20' ) end [2025-04-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884743', 'tblTempVendorCDR_20' ) start [2025-04-11 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884743', 'tblTempVendorCDR_20' ) end [2025-04-11 14:10:22] Production.INFO: ProcessCDR(1,14884743,1,1,2) [2025-04-11 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884743', 'tblTempUsageDetail_20' ) start [2025-04-11 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884743', 'tblTempUsageDetail_20' ) end [2025-04-11 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:10:27] Production.INFO: ==17097== Releasing lock... [2025-04-11 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:10:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:11:05 [end_date_ymd] => 2025-04-11 14:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:11:05' and `end` < '2025-04-11 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-04-11 14:11:19] Production.INFO: count ==4469 [2025-04-11 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:11:05 - End Time 2025-04-11 14:11:05 [2025-04-11 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884748', 'tblTempUsageDetail_20' ) start [2025-04-11 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884748', 'tblTempUsageDetail_20' ) end [2025-04-11 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884748', 'tblTempVendorCDR_20' ) start [2025-04-11 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884748', 'tblTempVendorCDR_20' ) end [2025-04-11 14:11:21] Production.INFO: ProcessCDR(1,14884748,1,1,2) [2025-04-11 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884748', 'tblTempUsageDetail_20' ) start [2025-04-11 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884748', 'tblTempUsageDetail_20' ) end [2025-04-11 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:11:26] Production.INFO: ==17169== Releasing lock... [2025-04-11 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:11:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:12:05 [end_date_ymd] => 2025-04-11 14:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:12:05' and `end` < '2025-04-11 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-04-11 14:12:19] Production.INFO: count ==4461 [2025-04-11 14:12:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:12:05 - End Time 2025-04-11 14:12:05 [2025-04-11 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884753', 'tblTempUsageDetail_20' ) start [2025-04-11 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884753', 'tblTempUsageDetail_20' ) end [2025-04-11 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884753', 'tblTempVendorCDR_20' ) start [2025-04-11 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884753', 'tblTempVendorCDR_20' ) end [2025-04-11 14:12:21] Production.INFO: ProcessCDR(1,14884753,1,1,2) [2025-04-11 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884753', 'tblTempUsageDetail_20' ) start [2025-04-11 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884753', 'tblTempUsageDetail_20' ) end [2025-04-11 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:12:27] Production.INFO: ==17239== Releasing lock... [2025-04-11 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:12:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:13:05 [end_date_ymd] => 2025-04-11 14:13:05 [RateCDR] => 1 ) [2025-04-11 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:13:05' and `end` < '2025-04-11 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:13:19] Production.INFO: count ==4478 [2025-04-11 14:13:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:13:05 - End Time 2025-04-11 14:13:05 [2025-04-11 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884758', 'tblTempUsageDetail_20' ) start [2025-04-11 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884758', 'tblTempUsageDetail_20' ) end [2025-04-11 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884758', 'tblTempVendorCDR_20' ) start [2025-04-11 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884758', 'tblTempVendorCDR_20' ) end [2025-04-11 14:13:21] Production.INFO: ProcessCDR(1,14884758,1,1,2) [2025-04-11 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884758', 'tblTempUsageDetail_20' ) start [2025-04-11 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884758', 'tblTempUsageDetail_20' ) end [2025-04-11 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:13:26] Production.INFO: ==17309== Releasing lock... [2025-04-11 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:13:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:14:06 [end_date_ymd] => 2025-04-11 14:14:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:14:06' and `end` < '2025-04-11 14: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-04-11 14:14:19] Production.INFO: count ==4485 [2025-04-11 14:14:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:14:06 - End Time 2025-04-11 14:14:06 [2025-04-11 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884763', 'tblTempUsageDetail_20' ) start [2025-04-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884763', 'tblTempUsageDetail_20' ) end [2025-04-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884763', 'tblTempVendorCDR_20' ) start [2025-04-11 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884763', 'tblTempVendorCDR_20' ) end [2025-04-11 14:14:21] Production.INFO: ProcessCDR(1,14884763,1,1,2) [2025-04-11 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884763', 'tblTempUsageDetail_20' ) start [2025-04-11 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884763', 'tblTempUsageDetail_20' ) end [2025-04-11 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:14:27] Production.INFO: ==17381== Releasing lock... [2025-04-11 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:14:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:15:06 [end_date_ymd] => 2025-04-11 14:15:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:15:06' and `end` < '2025-04-11 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-04-11 14:15:19] Production.INFO: count ==4490 [2025-04-11 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:15:06 - End Time 2025-04-11 14:15:06 [2025-04-11 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884768', 'tblTempUsageDetail_20' ) start [2025-04-11 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884768', 'tblTempUsageDetail_20' ) end [2025-04-11 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884768', 'tblTempVendorCDR_20' ) start [2025-04-11 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884768', 'tblTempVendorCDR_20' ) end [2025-04-11 14:15:21] Production.INFO: ProcessCDR(1,14884768,1,1,2) [2025-04-11 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884768', 'tblTempUsageDetail_20' ) start [2025-04-11 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884768', 'tblTempUsageDetail_20' ) end [2025-04-11 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:15:27] Production.INFO: ==17451== Releasing lock... [2025-04-11 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:15:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:16:06 [end_date_ymd] => 2025-04-11 14:16:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:16:06' and `end` < '2025-04-11 14: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-04-11 14:16:19] Production.INFO: count ==4487 [2025-04-11 14:16:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:16:06 - End Time 2025-04-11 14:16:06 [2025-04-11 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884773', 'tblTempUsageDetail_20' ) start [2025-04-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884773', 'tblTempUsageDetail_20' ) end [2025-04-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884773', 'tblTempVendorCDR_20' ) start [2025-04-11 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884773', 'tblTempVendorCDR_20' ) end [2025-04-11 14:16:21] Production.INFO: ProcessCDR(1,14884773,1,1,2) [2025-04-11 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884773', 'tblTempUsageDetail_20' ) start [2025-04-11 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884773', 'tblTempUsageDetail_20' ) end [2025-04-11 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:16:27] Production.INFO: ==17525== Releasing lock... [2025-04-11 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:16:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:17:06 [end_date_ymd] => 2025-04-11 14:17:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:17:06' and `end` < '2025-04-11 14: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-04-11 14:17:20] Production.INFO: count ==4489 [2025-04-11 14:17:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:17:06 - End Time 2025-04-11 14:17:06 [2025-04-11 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884778', 'tblTempUsageDetail_20' ) start [2025-04-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884778', 'tblTempUsageDetail_20' ) end [2025-04-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884778', 'tblTempVendorCDR_20' ) start [2025-04-11 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884778', 'tblTempVendorCDR_20' ) end [2025-04-11 14:17:21] Production.INFO: ProcessCDR(1,14884778,1,1,2) [2025-04-11 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884778', 'tblTempUsageDetail_20' ) start [2025-04-11 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884778', 'tblTempUsageDetail_20' ) end [2025-04-11 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:17:27] Production.INFO: ==17600== Releasing lock... [2025-04-11 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:17:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:18:05 [end_date_ymd] => 2025-04-11 14:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:18:05' and `end` < '2025-04-11 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-04-11 14:18:19] Production.INFO: count ==4498 [2025-04-11 14:18:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:18:05 - End Time 2025-04-11 14:18:05 [2025-04-11 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884783', 'tblTempUsageDetail_20' ) start [2025-04-11 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884783', 'tblTempUsageDetail_20' ) end [2025-04-11 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884783', 'tblTempVendorCDR_20' ) start [2025-04-11 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884783', 'tblTempVendorCDR_20' ) end [2025-04-11 14:18:21] Production.INFO: ProcessCDR(1,14884783,1,1,2) [2025-04-11 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884783', 'tblTempUsageDetail_20' ) start [2025-04-11 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884783', 'tblTempUsageDetail_20' ) end [2025-04-11 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:18:26] Production.INFO: ==17669== Releasing lock... [2025-04-11 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:18:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-11 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:19:05 [end_date_ymd] => 2025-04-11 14:19:05 [RateCDR] => 1 ) [2025-04-11 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:19:05' and `end` < '2025-04-11 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:19:19] Production.INFO: count ==4492 [2025-04-11 14:19:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:19:05 - End Time 2025-04-11 14:19:05 [2025-04-11 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884788', 'tblTempUsageDetail_20' ) start [2025-04-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884788', 'tblTempUsageDetail_20' ) end [2025-04-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884788', 'tblTempVendorCDR_20' ) start [2025-04-11 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884788', 'tblTempVendorCDR_20' ) end [2025-04-11 14:19:21] Production.INFO: ProcessCDR(1,14884788,1,1,2) [2025-04-11 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884788', 'tblTempUsageDetail_20' ) start [2025-04-11 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884788', 'tblTempUsageDetail_20' ) end [2025-04-11 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:19:26] Production.INFO: ==17748== Releasing lock... [2025-04-11 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:19:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:20:05 [end_date_ymd] => 2025-04-11 14:20:05 [RateCDR] => 1 ) [2025-04-11 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:20:05' and `end` < '2025-04-11 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:20:19] Production.INFO: count ==4468 [2025-04-11 14:20:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:20:05 - End Time 2025-04-11 14:20:05 [2025-04-11 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884794', 'tblTempUsageDetail_20' ) start [2025-04-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884794', 'tblTempUsageDetail_20' ) end [2025-04-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884794', 'tblTempVendorCDR_20' ) start [2025-04-11 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884794', 'tblTempVendorCDR_20' ) end [2025-04-11 14:20:21] Production.INFO: ProcessCDR(1,14884794,1,1,2) [2025-04-11 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884794', 'tblTempUsageDetail_20' ) start [2025-04-11 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884794', 'tblTempUsageDetail_20' ) end [2025-04-11 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:20:26] Production.INFO: ==17861== Releasing lock... [2025-04-11 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:20:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-11 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:21:05 [end_date_ymd] => 2025-04-11 14:21:05 [RateCDR] => 1 ) [2025-04-11 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:21:05' and `end` < '2025-04-11 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:21:19] Production.INFO: count ==4437 [2025-04-11 14:21:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:21:05 - End Time 2025-04-11 14:21:05 [2025-04-11 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884799', 'tblTempUsageDetail_20' ) start [2025-04-11 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884799', 'tblTempUsageDetail_20' ) end [2025-04-11 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884799', 'tblTempVendorCDR_20' ) start [2025-04-11 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884799', 'tblTempVendorCDR_20' ) end [2025-04-11 14:21:20] Production.INFO: ProcessCDR(1,14884799,1,1,2) [2025-04-11 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884799', 'tblTempUsageDetail_20' ) start [2025-04-11 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884799', 'tblTempUsageDetail_20' ) end [2025-04-11 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:21:24] Production.INFO: ==17940== Releasing lock... [2025-04-11 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:21:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:22:05 [end_date_ymd] => 2025-04-11 14:22:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:22:05' and `end` < '2025-04-11 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-04-11 14:22:18] Production.INFO: count ==4445 [2025-04-11 14:22:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:22:05 - End Time 2025-04-11 14:22:05 [2025-04-11 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884804', 'tblTempUsageDetail_20' ) start [2025-04-11 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884804', 'tblTempUsageDetail_20' ) end [2025-04-11 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884804', 'tblTempVendorCDR_20' ) start [2025-04-11 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884804', 'tblTempVendorCDR_20' ) end [2025-04-11 14:22:20] Production.INFO: ProcessCDR(1,14884804,1,1,2) [2025-04-11 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884804', 'tblTempUsageDetail_20' ) start [2025-04-11 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884804', 'tblTempUsageDetail_20' ) end [2025-04-11 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:22:26] Production.INFO: ==18013== Releasing lock... [2025-04-11 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:22:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:23:05 [end_date_ymd] => 2025-04-11 14:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:23:05' and `end` < '2025-04-11 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-04-11 14:23:19] Production.INFO: count ==4427 [2025-04-11 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:23:05 - End Time 2025-04-11 14:23:05 [2025-04-11 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884809', 'tblTempUsageDetail_20' ) start [2025-04-11 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884809', 'tblTempUsageDetail_20' ) end [2025-04-11 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884809', 'tblTempVendorCDR_20' ) start [2025-04-11 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884809', 'tblTempVendorCDR_20' ) end [2025-04-11 14:23:21] Production.INFO: ProcessCDR(1,14884809,1,1,2) [2025-04-11 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884809', 'tblTempUsageDetail_20' ) start [2025-04-11 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884809', 'tblTempUsageDetail_20' ) end [2025-04-11 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:23:26] Production.INFO: ==18085== Releasing lock... [2025-04-11 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:23:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:24:05 [end_date_ymd] => 2025-04-11 14:24:05 [RateCDR] => 1 ) [2025-04-11 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:24:05' and `end` < '2025-04-11 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:24:19] Production.INFO: count ==4424 [2025-04-11 14:24:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:24:05 - End Time 2025-04-11 14:24:05 [2025-04-11 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884814', 'tblTempUsageDetail_20' ) start [2025-04-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884814', 'tblTempUsageDetail_20' ) end [2025-04-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884814', 'tblTempVendorCDR_20' ) start [2025-04-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884814', 'tblTempVendorCDR_20' ) end [2025-04-11 14:24:20] Production.INFO: ProcessCDR(1,14884814,1,1,2) [2025-04-11 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884814', 'tblTempUsageDetail_20' ) start [2025-04-11 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884814', 'tblTempUsageDetail_20' ) end [2025-04-11 14:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:24:25] Production.INFO: ==18155== Releasing lock... [2025-04-11 14:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:24:25] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:25:05 [end_date_ymd] => 2025-04-11 14:25:05 [RateCDR] => 1 ) [2025-04-11 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:25:05' and `end` < '2025-04-11 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:25:19] Production.INFO: count ==4423 [2025-04-11 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:25:05 - End Time 2025-04-11 14:25:05 [2025-04-11 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884819', 'tblTempUsageDetail_20' ) start [2025-04-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884819', 'tblTempUsageDetail_20' ) end [2025-04-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884819', 'tblTempVendorCDR_20' ) start [2025-04-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884819', 'tblTempVendorCDR_20' ) end [2025-04-11 14:25:21] Production.INFO: ProcessCDR(1,14884819,1,1,2) [2025-04-11 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884819', 'tblTempUsageDetail_20' ) start [2025-04-11 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884819', 'tblTempUsageDetail_20' ) end [2025-04-11 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:25:26] Production.INFO: ==18228== Releasing lock... [2025-04-11 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:25:26] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:26:05 [end_date_ymd] => 2025-04-11 14:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:26:05' and `end` < '2025-04-11 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-04-11 14:26:19] Production.INFO: count ==4426 [2025-04-11 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:26:05 - End Time 2025-04-11 14:26:05 [2025-04-11 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884824', 'tblTempUsageDetail_20' ) start [2025-04-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884824', 'tblTempUsageDetail_20' ) end [2025-04-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884824', 'tblTempVendorCDR_20' ) start [2025-04-11 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884824', 'tblTempVendorCDR_20' ) end [2025-04-11 14:26:21] Production.INFO: ProcessCDR(1,14884824,1,1,2) [2025-04-11 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884824', 'tblTempUsageDetail_20' ) start [2025-04-11 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884824', 'tblTempUsageDetail_20' ) end [2025-04-11 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:26:27] Production.INFO: ==18300== Releasing lock... [2025-04-11 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:26:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:27:05 [end_date_ymd] => 2025-04-11 14:27:05 [RateCDR] => 1 ) [2025-04-11 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:27:05' and `end` < '2025-04-11 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:27:19] Production.INFO: count ==4432 [2025-04-11 14:27:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:27:05 - End Time 2025-04-11 14:27:05 [2025-04-11 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884829', 'tblTempUsageDetail_20' ) start [2025-04-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884829', 'tblTempUsageDetail_20' ) end [2025-04-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884829', 'tblTempVendorCDR_20' ) start [2025-04-11 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884829', 'tblTempVendorCDR_20' ) end [2025-04-11 14:27:21] Production.INFO: ProcessCDR(1,14884829,1,1,2) [2025-04-11 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884829', 'tblTempUsageDetail_20' ) start [2025-04-11 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884829', 'tblTempUsageDetail_20' ) end [2025-04-11 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:27:26] Production.INFO: ==18371== Releasing lock... [2025-04-11 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:27:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:28:05 [end_date_ymd] => 2025-04-11 14:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:28:05' and `end` < '2025-04-11 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-04-11 14:28:19] Production.INFO: count ==4425 [2025-04-11 14:28:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:28:05 - End Time 2025-04-11 14:28:05 [2025-04-11 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884834', 'tblTempUsageDetail_20' ) start [2025-04-11 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884834', 'tblTempUsageDetail_20' ) end [2025-04-11 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884834', 'tblTempVendorCDR_20' ) start [2025-04-11 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884834', 'tblTempVendorCDR_20' ) end [2025-04-11 14:28:21] Production.INFO: ProcessCDR(1,14884834,1,1,2) [2025-04-11 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884834', 'tblTempUsageDetail_20' ) start [2025-04-11 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884834', 'tblTempUsageDetail_20' ) end [2025-04-11 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:28:26] Production.INFO: ==18441== Releasing lock... [2025-04-11 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:28:26] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:29:06 [end_date_ymd] => 2025-04-11 14:29:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:29:06' and `end` < '2025-04-11 14: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-04-11 14:29:20] Production.INFO: count ==4432 [2025-04-11 14:29:22] Production.ERROR: pbx CDR StartTime 2025-04-11 11:29:06 - End Time 2025-04-11 14:29:06 [2025-04-11 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884839', 'tblTempUsageDetail_20' ) start [2025-04-11 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884839', 'tblTempUsageDetail_20' ) end [2025-04-11 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884839', 'tblTempVendorCDR_20' ) start [2025-04-11 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884839', 'tblTempVendorCDR_20' ) end [2025-04-11 14:29:22] Production.INFO: ProcessCDR(1,14884839,1,1,2) [2025-04-11 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884839', 'tblTempUsageDetail_20' ) start [2025-04-11 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884839', 'tblTempUsageDetail_20' ) end [2025-04-11 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:29:28] Production.INFO: ==18513== Releasing lock... [2025-04-11 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:29:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:30:06 [end_date_ymd] => 2025-04-11 14:30:06 [RateCDR] => 1 ) [2025-04-11 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:30:06' and `end` < '2025-04-11 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:30:20] Production.INFO: count ==4440 [2025-04-11 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-11 11:30:06 - End Time 2025-04-11 14:30:06 [2025-04-11 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884845', 'tblTempUsageDetail_20' ) start [2025-04-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884845', 'tblTempUsageDetail_20' ) end [2025-04-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884845', 'tblTempVendorCDR_20' ) start [2025-04-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884845', 'tblTempVendorCDR_20' ) end [2025-04-11 14:30:22] Production.INFO: ProcessCDR(1,14884845,1,1,2) [2025-04-11 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884845', 'tblTempUsageDetail_20' ) start [2025-04-11 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884845', 'tblTempUsageDetail_20' ) end [2025-04-11 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:30:27] Production.INFO: ==18584== Releasing lock... [2025-04-11 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:30:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:31:06 [end_date_ymd] => 2025-04-11 14:31:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:31:06' and `end` < '2025-04-11 14: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-04-11 14:31:20] Production.INFO: count ==4448 [2025-04-11 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:31:06 - End Time 2025-04-11 14:31:06 [2025-04-11 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884850', 'tblTempUsageDetail_20' ) start [2025-04-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884850', 'tblTempUsageDetail_20' ) end [2025-04-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884850', 'tblTempVendorCDR_20' ) start [2025-04-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884850', 'tblTempVendorCDR_20' ) end [2025-04-11 14:31:21] Production.INFO: ProcessCDR(1,14884850,1,1,2) [2025-04-11 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884850', 'tblTempUsageDetail_20' ) start [2025-04-11 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884850', 'tblTempUsageDetail_20' ) end [2025-04-11 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:31:26] Production.INFO: ==18659== Releasing lock... [2025-04-11 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:31:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:32:05 [end_date_ymd] => 2025-04-11 14:32:05 [RateCDR] => 1 ) [2025-04-11 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:32:05' and `end` < '2025-04-11 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:32:19] Production.INFO: count ==4449 [2025-04-11 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:32:05 - End Time 2025-04-11 14:32:05 [2025-04-11 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884855', 'tblTempUsageDetail_20' ) start [2025-04-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884855', 'tblTempUsageDetail_20' ) end [2025-04-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884855', 'tblTempVendorCDR_20' ) start [2025-04-11 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884855', 'tblTempVendorCDR_20' ) end [2025-04-11 14:32:21] Production.INFO: ProcessCDR(1,14884855,1,1,2) [2025-04-11 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884855', 'tblTempUsageDetail_20' ) start [2025-04-11 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884855', 'tblTempUsageDetail_20' ) end [2025-04-11 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:32:26] Production.INFO: ==18730== Releasing lock... [2025-04-11 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:32:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:33:05 [end_date_ymd] => 2025-04-11 14:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:33:05' and `end` < '2025-04-11 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-04-11 14:33:19] Production.INFO: count ==4446 [2025-04-11 14:33:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:33:05 - End Time 2025-04-11 14:33:05 [2025-04-11 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884860', 'tblTempUsageDetail_20' ) start [2025-04-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884860', 'tblTempUsageDetail_20' ) end [2025-04-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884860', 'tblTempVendorCDR_20' ) start [2025-04-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884860', 'tblTempVendorCDR_20' ) end [2025-04-11 14:33:21] Production.INFO: ProcessCDR(1,14884860,1,1,2) [2025-04-11 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884860', 'tblTempUsageDetail_20' ) start [2025-04-11 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884860', 'tblTempUsageDetail_20' ) end [2025-04-11 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:33:27] Production.INFO: ==18803== Releasing lock... [2025-04-11 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:33:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:34:05 [end_date_ymd] => 2025-04-11 14:34:05 [RateCDR] => 1 ) [2025-04-11 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:34:05' and `end` < '2025-04-11 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:34:18] Production.INFO: count ==4444 [2025-04-11 14:34:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:34:05 - End Time 2025-04-11 14:34:05 [2025-04-11 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884865', 'tblTempUsageDetail_20' ) start [2025-04-11 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884865', 'tblTempUsageDetail_20' ) end [2025-04-11 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884865', 'tblTempVendorCDR_20' ) start [2025-04-11 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884865', 'tblTempVendorCDR_20' ) end [2025-04-11 14:34:20] Production.INFO: ProcessCDR(1,14884865,1,1,2) [2025-04-11 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884865', 'tblTempUsageDetail_20' ) start [2025-04-11 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884865', 'tblTempUsageDetail_20' ) end [2025-04-11 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:34:26] Production.INFO: ==18873== Releasing lock... [2025-04-11 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:34:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:35:06 [end_date_ymd] => 2025-04-11 14:35:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:35:06' and `end` < '2025-04-11 14: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-04-11 14:35:20] Production.INFO: count ==4426 [2025-04-11 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:35:06 - End Time 2025-04-11 14:35:06 [2025-04-11 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884870', 'tblTempUsageDetail_20' ) start [2025-04-11 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884870', 'tblTempUsageDetail_20' ) end [2025-04-11 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884870', 'tblTempVendorCDR_20' ) start [2025-04-11 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884870', 'tblTempVendorCDR_20' ) end [2025-04-11 14:35:22] Production.INFO: ProcessCDR(1,14884870,1,1,2) [2025-04-11 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884870', 'tblTempUsageDetail_20' ) start [2025-04-11 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884870', 'tblTempUsageDetail_20' ) end [2025-04-11 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:35:26] Production.INFO: ==18996== Releasing lock... [2025-04-11 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:35:26] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:36:05 [end_date_ymd] => 2025-04-11 14:36:05 [RateCDR] => 1 ) [2025-04-11 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:36:05' and `end` < '2025-04-11 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:36:19] Production.INFO: count ==4421 [2025-04-11 14:36:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:36:05 - End Time 2025-04-11 14:36:05 [2025-04-11 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884875', 'tblTempUsageDetail_20' ) start [2025-04-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884875', 'tblTempUsageDetail_20' ) end [2025-04-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884875', 'tblTempVendorCDR_20' ) start [2025-04-11 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884875', 'tblTempVendorCDR_20' ) end [2025-04-11 14:36:21] Production.INFO: ProcessCDR(1,14884875,1,1,2) [2025-04-11 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884875', 'tblTempUsageDetail_20' ) start [2025-04-11 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884875', 'tblTempUsageDetail_20' ) end [2025-04-11 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:36:26] Production.INFO: ==19070== Releasing lock... [2025-04-11 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:36:26] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:37:06 [end_date_ymd] => 2025-04-11 14:37:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:37:06' and `end` < '2025-04-11 14: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-04-11 14:37:20] Production.INFO: count ==4417 [2025-04-11 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:37:06 - End Time 2025-04-11 14:37:06 [2025-04-11 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884880', 'tblTempUsageDetail_20' ) start [2025-04-11 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884880', 'tblTempUsageDetail_20' ) end [2025-04-11 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884880', 'tblTempVendorCDR_20' ) start [2025-04-11 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884880', 'tblTempVendorCDR_20' ) end [2025-04-11 14:37:22] Production.INFO: ProcessCDR(1,14884880,1,1,2) [2025-04-11 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884880', 'tblTempUsageDetail_20' ) start [2025-04-11 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884880', 'tblTempUsageDetail_20' ) end [2025-04-11 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:37:27] Production.INFO: ==19140== Releasing lock... [2025-04-11 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:37:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:38:05 [end_date_ymd] => 2025-04-11 14:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:38:05' and `end` < '2025-04-11 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-04-11 14:38:19] Production.INFO: count ==4415 [2025-04-11 14:38:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:38:05 - End Time 2025-04-11 14:38:05 [2025-04-11 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884885', 'tblTempUsageDetail_20' ) start [2025-04-11 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884885', 'tblTempUsageDetail_20' ) end [2025-04-11 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884885', 'tblTempVendorCDR_20' ) start [2025-04-11 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884885', 'tblTempVendorCDR_20' ) end [2025-04-11 14:38:21] Production.INFO: ProcessCDR(1,14884885,1,1,2) [2025-04-11 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884885', 'tblTempUsageDetail_20' ) start [2025-04-11 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884885', 'tblTempUsageDetail_20' ) end [2025-04-11 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:38:26] Production.INFO: ==19211== Releasing lock... [2025-04-11 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:38:26] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:39:05 [end_date_ymd] => 2025-04-11 14:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:39:05' and `end` < '2025-04-11 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-04-11 14:39:19] Production.INFO: count ==4435 [2025-04-11 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:39:05 - End Time 2025-04-11 14:39:05 [2025-04-11 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884890', 'tblTempUsageDetail_20' ) start [2025-04-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884890', 'tblTempUsageDetail_20' ) end [2025-04-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884890', 'tblTempVendorCDR_20' ) start [2025-04-11 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884890', 'tblTempVendorCDR_20' ) end [2025-04-11 14:39:21] Production.INFO: ProcessCDR(1,14884890,1,1,2) [2025-04-11 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884890', 'tblTempUsageDetail_20' ) start [2025-04-11 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884890', 'tblTempUsageDetail_20' ) end [2025-04-11 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:39:26] Production.INFO: ==19285== Releasing lock... [2025-04-11 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:39:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-11 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:40:06 [end_date_ymd] => 2025-04-11 14:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:40:06' and `end` < '2025-04-11 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-04-11 14:40:20] Production.INFO: count ==4416 [2025-04-11 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-11 11:40:06 - End Time 2025-04-11 14:40:06 [2025-04-11 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884896', 'tblTempUsageDetail_20' ) start [2025-04-11 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884896', 'tblTempUsageDetail_20' ) end [2025-04-11 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884896', 'tblTempVendorCDR_20' ) start [2025-04-11 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884896', 'tblTempVendorCDR_20' ) end [2025-04-11 14:40:22] Production.INFO: ProcessCDR(1,14884896,1,1,2) [2025-04-11 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884896', 'tblTempUsageDetail_20' ) start [2025-04-11 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884896', 'tblTempUsageDetail_20' ) end [2025-04-11 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:40:27] Production.INFO: ==19358== Releasing lock... [2025-04-11 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:40:27] Production.INFO: 61 MB #Memory Used# [2025-04-11 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:41:05 [end_date_ymd] => 2025-04-11 14:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:41:05' and `end` < '2025-04-11 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-04-11 14:41:19] Production.INFO: count ==4377 [2025-04-11 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:41:05 - End Time 2025-04-11 14:41:05 [2025-04-11 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884901', 'tblTempUsageDetail_20' ) start [2025-04-11 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884901', 'tblTempUsageDetail_20' ) end [2025-04-11 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884901', 'tblTempVendorCDR_20' ) start [2025-04-11 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884901', 'tblTempVendorCDR_20' ) end [2025-04-11 14:41:21] Production.INFO: ProcessCDR(1,14884901,1,1,2) [2025-04-11 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884901', 'tblTempUsageDetail_20' ) start [2025-04-11 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884901', 'tblTempUsageDetail_20' ) end [2025-04-11 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:41:26] Production.INFO: ==19432== Releasing lock... [2025-04-11 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:41:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:42:05 [end_date_ymd] => 2025-04-11 14:42:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:42:05' and `end` < '2025-04-11 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-04-11 14:42:19] Production.INFO: count ==4352 [2025-04-11 14:42:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:42:05 - End Time 2025-04-11 14:42:05 [2025-04-11 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884906', 'tblTempUsageDetail_20' ) start [2025-04-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884906', 'tblTempUsageDetail_20' ) end [2025-04-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884906', 'tblTempVendorCDR_20' ) start [2025-04-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884906', 'tblTempVendorCDR_20' ) end [2025-04-11 14:42:20] Production.INFO: ProcessCDR(1,14884906,1,1,2) [2025-04-11 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884906', 'tblTempUsageDetail_20' ) start [2025-04-11 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884906', 'tblTempUsageDetail_20' ) end [2025-04-11 14:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:42:24] Production.INFO: ==19501== Releasing lock... [2025-04-11 14:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:42:24] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:43:05 [end_date_ymd] => 2025-04-11 14:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:43:05' and `end` < '2025-04-11 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-04-11 14:43:19] Production.INFO: count ==4350 [2025-04-11 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:43:05 - End Time 2025-04-11 14:43:05 [2025-04-11 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884911', 'tblTempUsageDetail_20' ) start [2025-04-11 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884911', 'tblTempUsageDetail_20' ) end [2025-04-11 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884911', 'tblTempVendorCDR_20' ) start [2025-04-11 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884911', 'tblTempVendorCDR_20' ) end [2025-04-11 14:43:21] Production.INFO: ProcessCDR(1,14884911,1,1,2) [2025-04-11 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884911', 'tblTempUsageDetail_20' ) start [2025-04-11 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884911', 'tblTempUsageDetail_20' ) end [2025-04-11 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:43:26] Production.INFO: ==19572== Releasing lock... [2025-04-11 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:43:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:44:05 [end_date_ymd] => 2025-04-11 14:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:44:05' and `end` < '2025-04-11 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-04-11 14:44:18] Production.INFO: count ==4351 [2025-04-11 14:44:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:44:05 - End Time 2025-04-11 14:44:05 [2025-04-11 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884916', 'tblTempUsageDetail_20' ) start [2025-04-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884916', 'tblTempUsageDetail_20' ) end [2025-04-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884916', 'tblTempVendorCDR_20' ) start [2025-04-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884916', 'tblTempVendorCDR_20' ) end [2025-04-11 14:44:20] Production.INFO: ProcessCDR(1,14884916,1,1,2) [2025-04-11 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884916', 'tblTempUsageDetail_20' ) start [2025-04-11 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884916', 'tblTempUsageDetail_20' ) end [2025-04-11 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:44:26] Production.INFO: ==19643== Releasing lock... [2025-04-11 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:44:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:45:05 [end_date_ymd] => 2025-04-11 14:45:05 [RateCDR] => 1 ) [2025-04-11 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:45:05' and `end` < '2025-04-11 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:45:19] Production.INFO: count ==4329 [2025-04-11 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:45:05 - End Time 2025-04-11 14:45:05 [2025-04-11 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884921', 'tblTempUsageDetail_20' ) start [2025-04-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884921', 'tblTempUsageDetail_20' ) end [2025-04-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884921', 'tblTempVendorCDR_20' ) start [2025-04-11 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884921', 'tblTempVendorCDR_20' ) end [2025-04-11 14:45:21] Production.INFO: ProcessCDR(1,14884921,1,1,2) [2025-04-11 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884921', 'tblTempUsageDetail_20' ) start [2025-04-11 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884921', 'tblTempUsageDetail_20' ) end [2025-04-11 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:45:26] Production.INFO: ==19715== Releasing lock... [2025-04-11 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:45:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:46:05 [end_date_ymd] => 2025-04-11 14:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:46:05' and `end` < '2025-04-11 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-04-11 14:46:19] Production.INFO: count ==4318 [2025-04-11 14:46:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:46:05 - End Time 2025-04-11 14:46:05 [2025-04-11 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884926', 'tblTempUsageDetail_20' ) start [2025-04-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884926', 'tblTempUsageDetail_20' ) end [2025-04-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884926', 'tblTempVendorCDR_20' ) start [2025-04-11 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884926', 'tblTempVendorCDR_20' ) end [2025-04-11 14:46:20] Production.INFO: ProcessCDR(1,14884926,1,1,2) [2025-04-11 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884926', 'tblTempUsageDetail_20' ) start [2025-04-11 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884926', 'tblTempUsageDetail_20' ) end [2025-04-11 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:46:26] Production.INFO: ==19788== Releasing lock... [2025-04-11 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:46:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:47:05 [end_date_ymd] => 2025-04-11 14:47:05 [RateCDR] => 1 ) [2025-04-11 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:47:05' and `end` < '2025-04-11 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:47:19] Production.INFO: count ==4318 [2025-04-11 14:47:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:47:05 - End Time 2025-04-11 14:47:05 [2025-04-11 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884931', 'tblTempUsageDetail_20' ) start [2025-04-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884931', 'tblTempUsageDetail_20' ) end [2025-04-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884931', 'tblTempVendorCDR_20' ) start [2025-04-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884931', 'tblTempVendorCDR_20' ) end [2025-04-11 14:47:21] Production.INFO: ProcessCDR(1,14884931,1,1,2) [2025-04-11 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884931', 'tblTempUsageDetail_20' ) start [2025-04-11 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884931', 'tblTempUsageDetail_20' ) end [2025-04-11 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:47:27] Production.INFO: ==19861== Releasing lock... [2025-04-11 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:47:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:48:05 [end_date_ymd] => 2025-04-11 14:48:05 [RateCDR] => 1 ) [2025-04-11 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:48:05' and `end` < '2025-04-11 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:48:18] Production.INFO: count ==4307 [2025-04-11 14:48:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:48:05 - End Time 2025-04-11 14:48:05 [2025-04-11 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884936', 'tblTempUsageDetail_20' ) start [2025-04-11 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884936', 'tblTempUsageDetail_20' ) end [2025-04-11 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884936', 'tblTempVendorCDR_20' ) start [2025-04-11 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884936', 'tblTempVendorCDR_20' ) end [2025-04-11 14:48:20] Production.INFO: ProcessCDR(1,14884936,1,1,2) [2025-04-11 14:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884936', 'tblTempUsageDetail_20' ) start [2025-04-11 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884936', 'tblTempUsageDetail_20' ) end [2025-04-11 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:48:26] Production.INFO: ==19931== Releasing lock... [2025-04-11 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:48:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:49:05 [end_date_ymd] => 2025-04-11 14:49:05 [RateCDR] => 1 ) [2025-04-11 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:49:05' and `end` < '2025-04-11 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:49:19] Production.INFO: count ==4299 [2025-04-11 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:49:05 - End Time 2025-04-11 14:49:05 [2025-04-11 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884941', 'tblTempUsageDetail_20' ) start [2025-04-11 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884941', 'tblTempUsageDetail_20' ) end [2025-04-11 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884941', 'tblTempVendorCDR_20' ) start [2025-04-11 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884941', 'tblTempVendorCDR_20' ) end [2025-04-11 14:49:21] Production.INFO: ProcessCDR(1,14884941,1,1,2) [2025-04-11 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884941', 'tblTempUsageDetail_20' ) start [2025-04-11 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884941', 'tblTempUsageDetail_20' ) end [2025-04-11 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:49:26] Production.INFO: ==20010== Releasing lock... [2025-04-11 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:49:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:50:05 [end_date_ymd] => 2025-04-11 14:50:05 [RateCDR] => 1 ) [2025-04-11 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:50:05' and `end` < '2025-04-11 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:50:19] Production.INFO: count ==4294 [2025-04-11 14:50:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:50:05 - End Time 2025-04-11 14:50:05 [2025-04-11 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884947', 'tblTempUsageDetail_20' ) start [2025-04-11 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884947', 'tblTempUsageDetail_20' ) end [2025-04-11 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884947', 'tblTempVendorCDR_20' ) start [2025-04-11 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884947', 'tblTempVendorCDR_20' ) end [2025-04-11 14:50:21] Production.INFO: ProcessCDR(1,14884947,1,1,2) [2025-04-11 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884947', 'tblTempUsageDetail_20' ) start [2025-04-11 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884947', 'tblTempUsageDetail_20' ) end [2025-04-11 14:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:50:25] Production.INFO: ==20132== Releasing lock... [2025-04-11 14:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:50:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:51:05 [end_date_ymd] => 2025-04-11 14:51:05 [RateCDR] => 1 ) [2025-04-11 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:51:05' and `end` < '2025-04-11 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:51:19] Production.INFO: count ==4281 [2025-04-11 14:51:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:51:05 - End Time 2025-04-11 14:51:05 [2025-04-11 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884952', 'tblTempUsageDetail_20' ) start [2025-04-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884952', 'tblTempUsageDetail_20' ) end [2025-04-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884952', 'tblTempVendorCDR_20' ) start [2025-04-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884952', 'tblTempVendorCDR_20' ) end [2025-04-11 14:51:21] Production.INFO: ProcessCDR(1,14884952,1,1,2) [2025-04-11 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884952', 'tblTempUsageDetail_20' ) start [2025-04-11 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884952', 'tblTempUsageDetail_20' ) end [2025-04-11 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:51:26] Production.INFO: ==20208== Releasing lock... [2025-04-11 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:51:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:52:05 [end_date_ymd] => 2025-04-11 14:52:05 [RateCDR] => 1 ) [2025-04-11 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:52:05' and `end` < '2025-04-11 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:52:19] Production.INFO: count ==4302 [2025-04-11 14:52:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:52:05 - End Time 2025-04-11 14:52:05 [2025-04-11 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884957', 'tblTempUsageDetail_20' ) start [2025-04-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884957', 'tblTempUsageDetail_20' ) end [2025-04-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884957', 'tblTempVendorCDR_20' ) start [2025-04-11 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884957', 'tblTempVendorCDR_20' ) end [2025-04-11 14:52:21] Production.INFO: ProcessCDR(1,14884957,1,1,2) [2025-04-11 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884957', 'tblTempUsageDetail_20' ) start [2025-04-11 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884957', 'tblTempUsageDetail_20' ) end [2025-04-11 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:52:27] Production.INFO: ==20279== Releasing lock... [2025-04-11 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:52:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:53:05 [end_date_ymd] => 2025-04-11 14:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:53:05' and `end` < '2025-04-11 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-04-11 14:53:19] Production.INFO: count ==4295 [2025-04-11 14:53:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:53:05 - End Time 2025-04-11 14:53:05 [2025-04-11 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884962', 'tblTempUsageDetail_20' ) start [2025-04-11 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884962', 'tblTempUsageDetail_20' ) end [2025-04-11 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884962', 'tblTempVendorCDR_20' ) start [2025-04-11 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884962', 'tblTempVendorCDR_20' ) end [2025-04-11 14:53:20] Production.INFO: ProcessCDR(1,14884962,1,1,2) [2025-04-11 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884962', 'tblTempUsageDetail_20' ) start [2025-04-11 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884962', 'tblTempUsageDetail_20' ) end [2025-04-11 14:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:53:25] Production.INFO: ==20350== Releasing lock... [2025-04-11 14:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:53:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:54:05 [end_date_ymd] => 2025-04-11 14:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:54:05' and `end` < '2025-04-11 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-04-11 14:54:19] Production.INFO: count ==4296 [2025-04-11 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:54:05 - End Time 2025-04-11 14:54:05 [2025-04-11 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884967', 'tblTempUsageDetail_20' ) start [2025-04-11 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884967', 'tblTempUsageDetail_20' ) end [2025-04-11 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884967', 'tblTempVendorCDR_20' ) start [2025-04-11 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884967', 'tblTempVendorCDR_20' ) end [2025-04-11 14:54:21] Production.INFO: ProcessCDR(1,14884967,1,1,2) [2025-04-11 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884967', 'tblTempUsageDetail_20' ) start [2025-04-11 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884967', 'tblTempUsageDetail_20' ) end [2025-04-11 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:54:26] Production.INFO: ==20421== Releasing lock... [2025-04-11 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:54:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:55:05 [end_date_ymd] => 2025-04-11 14:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:55:05' and `end` < '2025-04-11 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-04-11 14:55:19] Production.INFO: count ==4285 [2025-04-11 14:55:20] Production.ERROR: pbx CDR StartTime 2025-04-11 11:55:05 - End Time 2025-04-11 14:55:05 [2025-04-11 14:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884972', 'tblTempUsageDetail_20' ) start [2025-04-11 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884972', 'tblTempUsageDetail_20' ) end [2025-04-11 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884972', 'tblTempVendorCDR_20' ) start [2025-04-11 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884972', 'tblTempVendorCDR_20' ) end [2025-04-11 14:55:21] Production.INFO: ProcessCDR(1,14884972,1,1,2) [2025-04-11 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884972', 'tblTempUsageDetail_20' ) start [2025-04-11 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884972', 'tblTempUsageDetail_20' ) end [2025-04-11 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:55:26] Production.INFO: ==20493== Releasing lock... [2025-04-11 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:55:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:56:06 [end_date_ymd] => 2025-04-11 14:56:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:56:06' and `end` < '2025-04-11 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-04-11 14:56:20] Production.INFO: count ==4279 [2025-04-11 14:56:22] Production.ERROR: pbx CDR StartTime 2025-04-11 11:56:06 - End Time 2025-04-11 14:56:06 [2025-04-11 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884977', 'tblTempUsageDetail_20' ) start [2025-04-11 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884977', 'tblTempUsageDetail_20' ) end [2025-04-11 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884977', 'tblTempVendorCDR_20' ) start [2025-04-11 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884977', 'tblTempVendorCDR_20' ) end [2025-04-11 14:56:22] Production.INFO: ProcessCDR(1,14884977,1,1,2) [2025-04-11 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884977', 'tblTempUsageDetail_20' ) start [2025-04-11 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884977', 'tblTempUsageDetail_20' ) end [2025-04-11 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:56:28] Production.INFO: ==20566== Releasing lock... [2025-04-11 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:56:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:57:05 [end_date_ymd] => 2025-04-11 14:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 11:57:05' and `end` < '2025-04-11 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-04-11 14:57:20] Production.INFO: count ==4281 [2025-04-11 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:57:05 - End Time 2025-04-11 14:57:05 [2025-04-11 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884982', 'tblTempUsageDetail_20' ) start [2025-04-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884982', 'tblTempUsageDetail_20' ) end [2025-04-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884982', 'tblTempVendorCDR_20' ) start [2025-04-11 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884982', 'tblTempVendorCDR_20' ) end [2025-04-11 14:57:21] Production.INFO: ProcessCDR(1,14884982,1,1,2) [2025-04-11 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884982', 'tblTempUsageDetail_20' ) start [2025-04-11 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884982', 'tblTempUsageDetail_20' ) end [2025-04-11 14:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:57:28] Production.INFO: ==20639== Releasing lock... [2025-04-11 14:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:57:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:58:06 [end_date_ymd] => 2025-04-11 14:58:06 [RateCDR] => 1 ) [2025-04-11 14: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-04-11 11:58:06' and `end` < '2025-04-11 14: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-04-11 14:58:20] Production.INFO: count ==4280 [2025-04-11 14:58:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:58:06 - End Time 2025-04-11 14:58:06 [2025-04-11 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884987', 'tblTempUsageDetail_20' ) start [2025-04-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884987', 'tblTempUsageDetail_20' ) end [2025-04-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884987', 'tblTempVendorCDR_20' ) start [2025-04-11 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884987', 'tblTempVendorCDR_20' ) end [2025-04-11 14:58:21] Production.INFO: ProcessCDR(1,14884987,1,1,2) [2025-04-11 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884987', 'tblTempUsageDetail_20' ) start [2025-04-11 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884987', 'tblTempUsageDetail_20' ) end [2025-04-11 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:58:27] Production.INFO: ==20710== Releasing lock... [2025-04-11 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:58:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 11:59:05 [end_date_ymd] => 2025-04-11 14:59:05 [RateCDR] => 1 ) [2025-04-11 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 11:59:05' and `end` < '2025-04-11 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 14:59:19] Production.INFO: count ==4288 [2025-04-11 14:59:21] Production.ERROR: pbx CDR StartTime 2025-04-11 11:59:05 - End Time 2025-04-11 14:59:05 [2025-04-11 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884992', 'tblTempUsageDetail_20' ) start [2025-04-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884992', 'tblTempUsageDetail_20' ) end [2025-04-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884992', 'tblTempVendorCDR_20' ) start [2025-04-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884992', 'tblTempVendorCDR_20' ) end [2025-04-11 14:59:21] Production.INFO: ProcessCDR(1,14884992,1,1,2) [2025-04-11 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884992', 'tblTempUsageDetail_20' ) start [2025-04-11 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884992', 'tblTempUsageDetail_20' ) end [2025-04-11 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 14:59:27] Production.INFO: ==20781== Releasing lock... [2025-04-11 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 14:59:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:00:06 [end_date_ymd] => 2025-04-11 15:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:00:06' and `end` < '2025-04-11 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-04-11 15:00:20] Production.INFO: count ==4276 [2025-04-11 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-11 12:00:06 - End Time 2025-04-11 15:00:06 [2025-04-11 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884998', 'tblTempUsageDetail_20' ) start [2025-04-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14884998', 'tblTempUsageDetail_20' ) end [2025-04-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884998', 'tblTempVendorCDR_20' ) start [2025-04-11 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14884998', 'tblTempVendorCDR_20' ) end [2025-04-11 15:00:22] Production.INFO: ProcessCDR(1,14884998,1,1,2) [2025-04-11 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14884998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14884998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14884998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14884998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884998', 'tblTempUsageDetail_20' ) start [2025-04-11 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14884998', 'tblTempUsageDetail_20' ) end [2025-04-11 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:00:27] Production.INFO: ==20854== Releasing lock... [2025-04-11 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:00:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:01:04 [end_date_ymd] => 2025-04-11 15:01:04 [RateCDR] => 1 ) [2025-04-11 15:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:01:04' and `end` < '2025-04-11 15:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:01:18] Production.INFO: count ==4275 [2025-04-11 15:01:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:01:04 - End Time 2025-04-11 15:01:04 [2025-04-11 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885003', 'tblTempUsageDetail_20' ) start [2025-04-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885003', 'tblTempUsageDetail_20' ) end [2025-04-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885003', 'tblTempVendorCDR_20' ) start [2025-04-11 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885003', 'tblTempVendorCDR_20' ) end [2025-04-11 15:01:20] Production.INFO: ProcessCDR(1,14885003,1,1,2) [2025-04-11 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885003', 'tblTempUsageDetail_20' ) start [2025-04-11 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885003', 'tblTempUsageDetail_20' ) end [2025-04-11 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:01:25] Production.INFO: ==21016== Releasing lock... [2025-04-11 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:01:25] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:02:05 [end_date_ymd] => 2025-04-11 15:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:02:05' and `end` < '2025-04-11 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-04-11 15:02:19] Production.INFO: count ==4270 [2025-04-11 15:02:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:02:05 - End Time 2025-04-11 15:02:05 [2025-04-11 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885008', 'tblTempUsageDetail_20' ) start [2025-04-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885008', 'tblTempUsageDetail_20' ) end [2025-04-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885008', 'tblTempVendorCDR_20' ) start [2025-04-11 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885008', 'tblTempVendorCDR_20' ) end [2025-04-11 15:02:21] Production.INFO: ProcessCDR(1,14885008,1,1,2) [2025-04-11 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885008', 'tblTempUsageDetail_20' ) start [2025-04-11 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885008', 'tblTempUsageDetail_20' ) end [2025-04-11 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:02:27] Production.INFO: ==21094== Releasing lock... [2025-04-11 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:02:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:03:05 [end_date_ymd] => 2025-04-11 15:03:05 [RateCDR] => 1 ) [2025-04-11 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:03:05' and `end` < '2025-04-11 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:03:19] Production.INFO: count ==4276 [2025-04-11 15:03:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:03:05 - End Time 2025-04-11 15:03:05 [2025-04-11 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885013', 'tblTempUsageDetail_20' ) start [2025-04-11 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885013', 'tblTempUsageDetail_20' ) end [2025-04-11 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885013', 'tblTempVendorCDR_20' ) start [2025-04-11 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885013', 'tblTempVendorCDR_20' ) end [2025-04-11 15:03:21] Production.INFO: ProcessCDR(1,14885013,1,1,2) [2025-04-11 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885013', 'tblTempUsageDetail_20' ) start [2025-04-11 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885013', 'tblTempUsageDetail_20' ) end [2025-04-11 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:03:26] Production.INFO: ==21164== Releasing lock... [2025-04-11 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:03:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:04:06 [end_date_ymd] => 2025-04-11 15:04:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:04:06' and `end` < '2025-04-11 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-04-11 15:04:20] Production.INFO: count ==4280 [2025-04-11 15:04:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:04:06 - End Time 2025-04-11 15:04:06 [2025-04-11 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885018', 'tblTempUsageDetail_20' ) start [2025-04-11 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885018', 'tblTempUsageDetail_20' ) end [2025-04-11 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885018', 'tblTempVendorCDR_20' ) start [2025-04-11 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885018', 'tblTempVendorCDR_20' ) end [2025-04-11 15:04:21] Production.INFO: ProcessCDR(1,14885018,1,1,2) [2025-04-11 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885018', 'tblTempUsageDetail_20' ) start [2025-04-11 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885018', 'tblTempUsageDetail_20' ) end [2025-04-11 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:04:27] Production.INFO: ==21239== Releasing lock... [2025-04-11 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:04:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:05:05 [end_date_ymd] => 2025-04-11 15:05:05 [RateCDR] => 1 ) [2025-04-11 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:05:05' and `end` < '2025-04-11 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-04-11 15:05:19] Production.INFO: count ==4277 [2025-04-11 15:05:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:05:05 - End Time 2025-04-11 15:05:05 [2025-04-11 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885023', 'tblTempUsageDetail_20' ) start [2025-04-11 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885023', 'tblTempUsageDetail_20' ) end [2025-04-11 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885023', 'tblTempVendorCDR_20' ) start [2025-04-11 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885023', 'tblTempVendorCDR_20' ) end [2025-04-11 15:05:20] Production.INFO: ProcessCDR(1,14885023,1,1,2) [2025-04-11 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885023', 'tblTempUsageDetail_20' ) start [2025-04-11 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885023', 'tblTempUsageDetail_20' ) end [2025-04-11 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:05:26] Production.INFO: ==21391== Releasing lock... [2025-04-11 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:05:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:06:05 [end_date_ymd] => 2025-04-11 15:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:06:05' and `end` < '2025-04-11 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-04-11 15:06:19] Production.INFO: count ==4273 [2025-04-11 15:06:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:06:05 - End Time 2025-04-11 15:06:05 [2025-04-11 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885028', 'tblTempUsageDetail_20' ) start [2025-04-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885028', 'tblTempUsageDetail_20' ) end [2025-04-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885028', 'tblTempVendorCDR_20' ) start [2025-04-11 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885028', 'tblTempVendorCDR_20' ) end [2025-04-11 15:06:21] Production.INFO: ProcessCDR(1,14885028,1,1,2) [2025-04-11 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885028', 'tblTempUsageDetail_20' ) start [2025-04-11 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885028', 'tblTempUsageDetail_20' ) end [2025-04-11 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:06:26] Production.INFO: ==21516== Releasing lock... [2025-04-11 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:06:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:07:05 [end_date_ymd] => 2025-04-11 15:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:07:05' and `end` < '2025-04-11 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-04-11 15:07:19] Production.INFO: count ==4268 [2025-04-11 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:07:05 - End Time 2025-04-11 15:07:05 [2025-04-11 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885033', 'tblTempUsageDetail_20' ) start [2025-04-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885033', 'tblTempUsageDetail_20' ) end [2025-04-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885033', 'tblTempVendorCDR_20' ) start [2025-04-11 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885033', 'tblTempVendorCDR_20' ) end [2025-04-11 15:07:21] Production.INFO: ProcessCDR(1,14885033,1,1,2) [2025-04-11 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885033', 'tblTempUsageDetail_20' ) start [2025-04-11 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885033', 'tblTempUsageDetail_20' ) end [2025-04-11 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:07:26] Production.INFO: ==21591== Releasing lock... [2025-04-11 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:07:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:08:05 [end_date_ymd] => 2025-04-11 15:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:08:05' and `end` < '2025-04-11 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-04-11 15:08:19] Production.INFO: count ==4275 [2025-04-11 15:08:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:08:05 - End Time 2025-04-11 15:08:05 [2025-04-11 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885038', 'tblTempUsageDetail_20' ) start [2025-04-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885038', 'tblTempUsageDetail_20' ) end [2025-04-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885038', 'tblTempVendorCDR_20' ) start [2025-04-11 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885038', 'tblTempVendorCDR_20' ) end [2025-04-11 15:08:21] Production.INFO: ProcessCDR(1,14885038,1,1,2) [2025-04-11 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885038', 'tblTempUsageDetail_20' ) start [2025-04-11 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885038', 'tblTempUsageDetail_20' ) end [2025-04-11 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:08:26] Production.INFO: ==21741== Releasing lock... [2025-04-11 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:08:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:09:05 [end_date_ymd] => 2025-04-11 15:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:09:05' and `end` < '2025-04-11 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-04-11 15:09:19] Production.INFO: count ==4304 [2025-04-11 15:09:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:09:05 - End Time 2025-04-11 15:09:05 [2025-04-11 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885043', 'tblTempUsageDetail_20' ) start [2025-04-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885043', 'tblTempUsageDetail_20' ) end [2025-04-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885043', 'tblTempVendorCDR_20' ) start [2025-04-11 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885043', 'tblTempVendorCDR_20' ) end [2025-04-11 15:09:21] Production.INFO: ProcessCDR(1,14885043,1,1,2) [2025-04-11 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885043', 'tblTempUsageDetail_20' ) start [2025-04-11 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885043', 'tblTempUsageDetail_20' ) end [2025-04-11 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:09:27] Production.INFO: ==21812== Releasing lock... [2025-04-11 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:09:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:10:06 [end_date_ymd] => 2025-04-11 15:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:10:06' and `end` < '2025-04-11 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-04-11 15:10:20] Production.INFO: count ==4296 [2025-04-11 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-11 12:10:06 - End Time 2025-04-11 15:10:06 [2025-04-11 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885048', 'tblTempUsageDetail_20' ) start [2025-04-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885048', 'tblTempUsageDetail_20' ) end [2025-04-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885048', 'tblTempVendorCDR_20' ) start [2025-04-11 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885048', 'tblTempVendorCDR_20' ) end [2025-04-11 15:10:22] Production.INFO: ProcessCDR(1,14885048,1,1,2) [2025-04-11 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885048', 'tblTempUsageDetail_20' ) start [2025-04-11 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885048', 'tblTempUsageDetail_20' ) end [2025-04-11 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:10:28] Production.INFO: ==21885== Releasing lock... [2025-04-11 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:10:28] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:11:05 [end_date_ymd] => 2025-04-11 15:11:05 [RateCDR] => 1 ) [2025-04-11 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:11:05' and `end` < '2025-04-11 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:11:19] Production.INFO: count ==4315 [2025-04-11 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:11:05 - End Time 2025-04-11 15:11:05 [2025-04-11 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885054', 'tblTempUsageDetail_20' ) start [2025-04-11 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885054', 'tblTempUsageDetail_20' ) end [2025-04-11 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885054', 'tblTempVendorCDR_20' ) start [2025-04-11 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885054', 'tblTempVendorCDR_20' ) end [2025-04-11 15:11:21] Production.INFO: ProcessCDR(1,14885054,1,1,2) [2025-04-11 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885054', 'tblTempUsageDetail_20' ) start [2025-04-11 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885054', 'tblTempUsageDetail_20' ) end [2025-04-11 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:11:26] Production.INFO: ==21957== Releasing lock... [2025-04-11 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:11:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:12:05 [end_date_ymd] => 2025-04-11 15:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:12:05' and `end` < '2025-04-11 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-04-11 15:12:20] Production.INFO: count ==4318 [2025-04-11 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:12:05 - End Time 2025-04-11 15:12:05 [2025-04-11 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885059', 'tblTempUsageDetail_20' ) start [2025-04-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885059', 'tblTempUsageDetail_20' ) end [2025-04-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885059', 'tblTempVendorCDR_20' ) start [2025-04-11 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885059', 'tblTempVendorCDR_20' ) end [2025-04-11 15:12:21] Production.INFO: ProcessCDR(1,14885059,1,1,2) [2025-04-11 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885059', 'tblTempUsageDetail_20' ) start [2025-04-11 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885059', 'tblTempUsageDetail_20' ) end [2025-04-11 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:12:27] Production.INFO: ==22108== Releasing lock... [2025-04-11 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:12:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:13:06 [end_date_ymd] => 2025-04-11 15:13:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:13:06' and `end` < '2025-04-11 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-04-11 15:13:20] Production.INFO: count ==4319 [2025-04-11 15:13:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:13:06 - End Time 2025-04-11 15:13:06 [2025-04-11 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885064', 'tblTempUsageDetail_20' ) start [2025-04-11 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885064', 'tblTempUsageDetail_20' ) end [2025-04-11 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885064', 'tblTempVendorCDR_20' ) start [2025-04-11 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885064', 'tblTempVendorCDR_20' ) end [2025-04-11 15:13:22] Production.INFO: ProcessCDR(1,14885064,1,1,2) [2025-04-11 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885064', 'tblTempUsageDetail_20' ) start [2025-04-11 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885064', 'tblTempUsageDetail_20' ) end [2025-04-11 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:13:27] Production.INFO: ==22182== Releasing lock... [2025-04-11 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:13:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:14:05 [end_date_ymd] => 2025-04-11 15:14:05 [RateCDR] => 1 ) [2025-04-11 15: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-04-11 12:14:05' and `end` < '2025-04-11 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-04-11 15:14:19] Production.INFO: count ==4313 [2025-04-11 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:14:05 - End Time 2025-04-11 15:14:05 [2025-04-11 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885069', 'tblTempUsageDetail_20' ) start [2025-04-11 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885069', 'tblTempUsageDetail_20' ) end [2025-04-11 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885069', 'tblTempVendorCDR_20' ) start [2025-04-11 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885069', 'tblTempVendorCDR_20' ) end [2025-04-11 15:14:21] Production.INFO: ProcessCDR(1,14885069,1,1,2) [2025-04-11 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885069', 'tblTempUsageDetail_20' ) start [2025-04-11 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885069', 'tblTempUsageDetail_20' ) end [2025-04-11 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:14:27] Production.INFO: ==22254== Releasing lock... [2025-04-11 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:14:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:15:05 [end_date_ymd] => 2025-04-11 15:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:15:05' and `end` < '2025-04-11 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-04-11 15:15:18] Production.INFO: count ==4319 [2025-04-11 15:15:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:15:05 - End Time 2025-04-11 15:15:05 [2025-04-11 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885074', 'tblTempUsageDetail_20' ) start [2025-04-11 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885074', 'tblTempUsageDetail_20' ) end [2025-04-11 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885074', 'tblTempVendorCDR_20' ) start [2025-04-11 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885074', 'tblTempVendorCDR_20' ) end [2025-04-11 15:15:20] Production.INFO: ProcessCDR(1,14885074,1,1,2) [2025-04-11 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885074', 'tblTempUsageDetail_20' ) start [2025-04-11 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885074', 'tblTempUsageDetail_20' ) end [2025-04-11 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:15:26] Production.INFO: ==22402== Releasing lock... [2025-04-11 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:15:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:16:05 [end_date_ymd] => 2025-04-11 15:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:16:05' and `end` < '2025-04-11 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-04-11 15:16:19] Production.INFO: count ==4313 [2025-04-11 15:16:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:16:05 - End Time 2025-04-11 15:16:05 [2025-04-11 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885079', 'tblTempUsageDetail_20' ) start [2025-04-11 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885079', 'tblTempUsageDetail_20' ) end [2025-04-11 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885079', 'tblTempVendorCDR_20' ) start [2025-04-11 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885079', 'tblTempVendorCDR_20' ) end [2025-04-11 15:16:20] Production.INFO: ProcessCDR(1,14885079,1,1,2) [2025-04-11 15:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885079', 'tblTempUsageDetail_20' ) start [2025-04-11 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885079', 'tblTempUsageDetail_20' ) end [2025-04-11 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:16:25] Production.INFO: ==22481== Releasing lock... [2025-04-11 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:16:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:17:05 [end_date_ymd] => 2025-04-11 15:17:05 [RateCDR] => 1 ) [2025-04-11 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:17:05' and `end` < '2025-04-11 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:17:20] Production.INFO: count ==4308 [2025-04-11 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:17:05 - End Time 2025-04-11 15:17:05 [2025-04-11 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885084', 'tblTempUsageDetail_20' ) start [2025-04-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885084', 'tblTempUsageDetail_20' ) end [2025-04-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885084', 'tblTempVendorCDR_20' ) start [2025-04-11 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885084', 'tblTempVendorCDR_20' ) end [2025-04-11 15:17:22] Production.INFO: ProcessCDR(1,14885084,1,1,2) [2025-04-11 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885084', 'tblTempUsageDetail_20' ) start [2025-04-11 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885084', 'tblTempUsageDetail_20' ) end [2025-04-11 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:17:27] Production.INFO: ==22551== Releasing lock... [2025-04-11 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:17:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:18:05 [end_date_ymd] => 2025-04-11 15:18:05 [RateCDR] => 1 ) [2025-04-11 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:18:05' and `end` < '2025-04-11 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:18:19] Production.INFO: count ==4300 [2025-04-11 15:18:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:18:05 - End Time 2025-04-11 15:18:05 [2025-04-11 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885089', 'tblTempUsageDetail_20' ) start [2025-04-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885089', 'tblTempUsageDetail_20' ) end [2025-04-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885089', 'tblTempVendorCDR_20' ) start [2025-04-11 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885089', 'tblTempVendorCDR_20' ) end [2025-04-11 15:18:21] Production.INFO: ProcessCDR(1,14885089,1,1,2) [2025-04-11 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885089', 'tblTempUsageDetail_20' ) start [2025-04-11 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885089', 'tblTempUsageDetail_20' ) end [2025-04-11 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:18:26] Production.INFO: ==22623== Releasing lock... [2025-04-11 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:18:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:19:05 [end_date_ymd] => 2025-04-11 15:19:05 [RateCDR] => 1 ) [2025-04-11 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:19:05' and `end` < '2025-04-11 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:19:19] Production.INFO: count ==4301 [2025-04-11 15:19:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:19:05 - End Time 2025-04-11 15:19:05 [2025-04-11 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885094', 'tblTempUsageDetail_20' ) start [2025-04-11 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885094', 'tblTempUsageDetail_20' ) end [2025-04-11 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885094', 'tblTempVendorCDR_20' ) start [2025-04-11 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885094', 'tblTempVendorCDR_20' ) end [2025-04-11 15:19:21] Production.INFO: ProcessCDR(1,14885094,1,1,2) [2025-04-11 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885094', 'tblTempUsageDetail_20' ) start [2025-04-11 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885094', 'tblTempUsageDetail_20' ) end [2025-04-11 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:19:26] Production.INFO: ==22695== Releasing lock... [2025-04-11 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:19:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:20:06 [end_date_ymd] => 2025-04-11 15:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:20:06' and `end` < '2025-04-11 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-04-11 15:20:20] Production.INFO: count ==4313 [2025-04-11 15:20:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:20:06 - End Time 2025-04-11 15:20:06 [2025-04-11 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885100', 'tblTempUsageDetail_20' ) start [2025-04-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885100', 'tblTempUsageDetail_20' ) end [2025-04-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885100', 'tblTempVendorCDR_20' ) start [2025-04-11 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885100', 'tblTempVendorCDR_20' ) end [2025-04-11 15:20:21] Production.INFO: ProcessCDR(1,14885100,1,1,2) [2025-04-11 15:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885100', 'tblTempUsageDetail_20' ) start [2025-04-11 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885100', 'tblTempUsageDetail_20' ) end [2025-04-11 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:20:27] Production.INFO: ==22769== Releasing lock... [2025-04-11 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:20:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:21:06 [end_date_ymd] => 2025-04-11 15:21:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:21:06' and `end` < '2025-04-11 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-04-11 15:21:19] Production.INFO: count ==4268 [2025-04-11 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:21:06 - End Time 2025-04-11 15:21:06 [2025-04-11 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885105', 'tblTempUsageDetail_20' ) start [2025-04-11 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885105', 'tblTempUsageDetail_20' ) end [2025-04-11 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885105', 'tblTempVendorCDR_20' ) start [2025-04-11 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885105', 'tblTempVendorCDR_20' ) end [2025-04-11 15:21:21] Production.INFO: ProcessCDR(1,14885105,1,1,2) [2025-04-11 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885105', 'tblTempUsageDetail_20' ) start [2025-04-11 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885105', 'tblTempUsageDetail_20' ) end [2025-04-11 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:21:26] Production.INFO: ==22881== Releasing lock... [2025-04-11 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:21:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:22:05 [end_date_ymd] => 2025-04-11 15:22:05 [RateCDR] => 1 ) [2025-04-11 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:22:05' and `end` < '2025-04-11 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:22:19] Production.INFO: count ==4255 [2025-04-11 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:22:05 - End Time 2025-04-11 15:22:05 [2025-04-11 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885110', 'tblTempUsageDetail_20' ) start [2025-04-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885110', 'tblTempUsageDetail_20' ) end [2025-04-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885110', 'tblTempVendorCDR_20' ) start [2025-04-11 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885110', 'tblTempVendorCDR_20' ) end [2025-04-11 15:22:21] Production.INFO: ProcessCDR(1,14885110,1,1,2) [2025-04-11 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885110', 'tblTempUsageDetail_20' ) start [2025-04-11 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885110', 'tblTempUsageDetail_20' ) end [2025-04-11 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:22:26] Production.INFO: ==22953== Releasing lock... [2025-04-11 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:22:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:23:06 [end_date_ymd] => 2025-04-11 15:23:06 [RateCDR] => 1 ) [2025-04-11 15:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:23:06' and `end` < '2025-04-11 15:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:23:20] Production.INFO: count ==4251 [2025-04-11 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:23:06 - End Time 2025-04-11 15:23:06 [2025-04-11 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885115', 'tblTempUsageDetail_20' ) start [2025-04-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885115', 'tblTempUsageDetail_20' ) end [2025-04-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885115', 'tblTempVendorCDR_20' ) start [2025-04-11 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885115', 'tblTempVendorCDR_20' ) end [2025-04-11 15:23:21] Production.INFO: ProcessCDR(1,14885115,1,1,2) [2025-04-11 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885115', 'tblTempUsageDetail_20' ) start [2025-04-11 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885115', 'tblTempUsageDetail_20' ) end [2025-04-11 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:23:27] Production.INFO: ==23025== Releasing lock... [2025-04-11 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:23:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:24:05 [end_date_ymd] => 2025-04-11 15:24:05 [RateCDR] => 1 ) [2025-04-11 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:24:05' and `end` < '2025-04-11 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:24:19] Production.INFO: count ==4254 [2025-04-11 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:24:05 - End Time 2025-04-11 15:24:05 [2025-04-11 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885120', 'tblTempUsageDetail_20' ) start [2025-04-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885120', 'tblTempUsageDetail_20' ) end [2025-04-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885120', 'tblTempVendorCDR_20' ) start [2025-04-11 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885120', 'tblTempVendorCDR_20' ) end [2025-04-11 15:24:21] Production.INFO: ProcessCDR(1,14885120,1,1,2) [2025-04-11 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885120', 'tblTempUsageDetail_20' ) start [2025-04-11 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885120', 'tblTempUsageDetail_20' ) end [2025-04-11 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:24:27] Production.INFO: ==23097== Releasing lock... [2025-04-11 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:24:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:25:05 [end_date_ymd] => 2025-04-11 15:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:25:05' and `end` < '2025-04-11 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-04-11 15:25:19] Production.INFO: count ==4246 [2025-04-11 15:25:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:25:05 - End Time 2025-04-11 15:25:05 [2025-04-11 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885125', 'tblTempUsageDetail_20' ) start [2025-04-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885125', 'tblTempUsageDetail_20' ) end [2025-04-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885125', 'tblTempVendorCDR_20' ) start [2025-04-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885125', 'tblTempVendorCDR_20' ) end [2025-04-11 15:25:21] Production.INFO: ProcessCDR(1,14885125,1,1,2) [2025-04-11 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885125', 'tblTempUsageDetail_20' ) start [2025-04-11 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885125', 'tblTempUsageDetail_20' ) end [2025-04-11 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:25:26] Production.INFO: ==23169== Releasing lock... [2025-04-11 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:25:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:26:05 [end_date_ymd] => 2025-04-11 15:26:05 [RateCDR] => 1 ) [2025-04-11 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:26:05' and `end` < '2025-04-11 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:26:19] Production.INFO: count ==4234 [2025-04-11 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:26:05 - End Time 2025-04-11 15:26:05 [2025-04-11 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885130', 'tblTempUsageDetail_20' ) start [2025-04-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885130', 'tblTempUsageDetail_20' ) end [2025-04-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885130', 'tblTempVendorCDR_20' ) start [2025-04-11 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885130', 'tblTempVendorCDR_20' ) end [2025-04-11 15:26:21] Production.INFO: ProcessCDR(1,14885130,1,1,2) [2025-04-11 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885130', 'tblTempUsageDetail_20' ) start [2025-04-11 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885130', 'tblTempUsageDetail_20' ) end [2025-04-11 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:26:26] Production.INFO: ==23241== Releasing lock... [2025-04-11 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:26:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:27:06 [end_date_ymd] => 2025-04-11 15:27:06 [RateCDR] => 1 ) [2025-04-11 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:27:06' and `end` < '2025-04-11 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:27:20] Production.INFO: count ==4241 [2025-04-11 15:27:22] Production.ERROR: pbx CDR StartTime 2025-04-11 12:27:06 - End Time 2025-04-11 15:27:06 [2025-04-11 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885135', 'tblTempUsageDetail_20' ) start [2025-04-11 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885135', 'tblTempUsageDetail_20' ) end [2025-04-11 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885135', 'tblTempVendorCDR_20' ) start [2025-04-11 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885135', 'tblTempVendorCDR_20' ) end [2025-04-11 15:27:22] Production.INFO: ProcessCDR(1,14885135,1,1,2) [2025-04-11 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885135', 'tblTempUsageDetail_20' ) start [2025-04-11 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885135', 'tblTempUsageDetail_20' ) end [2025-04-11 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:27:27] Production.INFO: ==23312== Releasing lock... [2025-04-11 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:27:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:28:05 [end_date_ymd] => 2025-04-11 15:28:05 [RateCDR] => 1 ) [2025-04-11 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:28:05' and `end` < '2025-04-11 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:28:19] Production.INFO: count ==4236 [2025-04-11 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:28:05 - End Time 2025-04-11 15:28:05 [2025-04-11 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885140', 'tblTempUsageDetail_20' ) start [2025-04-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885140', 'tblTempUsageDetail_20' ) end [2025-04-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885140', 'tblTempVendorCDR_20' ) start [2025-04-11 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885140', 'tblTempVendorCDR_20' ) end [2025-04-11 15:28:21] Production.INFO: ProcessCDR(1,14885140,1,1,2) [2025-04-11 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885140', 'tblTempUsageDetail_20' ) start [2025-04-11 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885140', 'tblTempUsageDetail_20' ) end [2025-04-11 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:28:26] Production.INFO: ==23384== Releasing lock... [2025-04-11 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:28:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:29:06 [end_date_ymd] => 2025-04-11 15:29:06 [RateCDR] => 1 ) [2025-04-11 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:29:06' and `end` < '2025-04-11 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:29:20] Production.INFO: count ==4259 [2025-04-11 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:29:06 - End Time 2025-04-11 15:29:06 [2025-04-11 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885145', 'tblTempUsageDetail_20' ) start [2025-04-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885145', 'tblTempUsageDetail_20' ) end [2025-04-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885145', 'tblTempVendorCDR_20' ) start [2025-04-11 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885145', 'tblTempVendorCDR_20' ) end [2025-04-11 15:29:21] Production.INFO: ProcessCDR(1,14885145,1,1,2) [2025-04-11 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885145', 'tblTempUsageDetail_20' ) start [2025-04-11 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885145', 'tblTempUsageDetail_20' ) end [2025-04-11 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:29:26] Production.INFO: ==23461== Releasing lock... [2025-04-11 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:29:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:30:05 [end_date_ymd] => 2025-04-11 15:30:05 [RateCDR] => 1 ) [2025-04-11 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:30:05' and `end` < '2025-04-11 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:30:19] Production.INFO: count ==4252 [2025-04-11 15:30:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:30:05 - End Time 2025-04-11 15:30:05 [2025-04-11 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885150', 'tblTempUsageDetail_20' ) start [2025-04-11 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885150', 'tblTempUsageDetail_20' ) end [2025-04-11 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885150', 'tblTempVendorCDR_20' ) start [2025-04-11 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885150', 'tblTempVendorCDR_20' ) end [2025-04-11 15:30:21] Production.INFO: ProcessCDR(1,14885150,1,1,2) [2025-04-11 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885150', 'tblTempUsageDetail_20' ) start [2025-04-11 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885150', 'tblTempUsageDetail_20' ) end [2025-04-11 15:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:30:26] Production.INFO: ==23534== Releasing lock... [2025-04-11 15:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:30:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:31:06 [end_date_ymd] => 2025-04-11 15:31:06 [RateCDR] => 1 ) [2025-04-11 15: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-04-11 12:31:06' and `end` < '2025-04-11 15: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-04-11 15:31:19] Production.INFO: count ==4263 [2025-04-11 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:31:06 - End Time 2025-04-11 15:31:06 [2025-04-11 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885156', 'tblTempUsageDetail_20' ) start [2025-04-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885156', 'tblTempUsageDetail_20' ) end [2025-04-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885156', 'tblTempVendorCDR_20' ) start [2025-04-11 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885156', 'tblTempVendorCDR_20' ) end [2025-04-11 15:31:21] Production.INFO: ProcessCDR(1,14885156,1,1,2) [2025-04-11 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885156', 'tblTempUsageDetail_20' ) start [2025-04-11 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885156', 'tblTempUsageDetail_20' ) end [2025-04-11 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:31:27] Production.INFO: ==23610== Releasing lock... [2025-04-11 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:31:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:32:05 [end_date_ymd] => 2025-04-11 15:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:32:05' and `end` < '2025-04-11 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-04-11 15:32:19] Production.INFO: count ==4252 [2025-04-11 15:32:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:32:05 - End Time 2025-04-11 15:32:05 [2025-04-11 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885161', 'tblTempUsageDetail_20' ) start [2025-04-11 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885161', 'tblTempUsageDetail_20' ) end [2025-04-11 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885161', 'tblTempVendorCDR_20' ) start [2025-04-11 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885161', 'tblTempVendorCDR_20' ) end [2025-04-11 15:32:21] Production.INFO: ProcessCDR(1,14885161,1,1,2) [2025-04-11 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885161', 'tblTempUsageDetail_20' ) start [2025-04-11 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885161', 'tblTempUsageDetail_20' ) end [2025-04-11 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:32:26] Production.INFO: ==23681== Releasing lock... [2025-04-11 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:32:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:33:05 [end_date_ymd] => 2025-04-11 15:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:33:05' and `end` < '2025-04-11 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-04-11 15:33:19] Production.INFO: count ==4252 [2025-04-11 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:33:05 - End Time 2025-04-11 15:33:05 [2025-04-11 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885166', 'tblTempUsageDetail_20' ) start [2025-04-11 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885166', 'tblTempUsageDetail_20' ) end [2025-04-11 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885166', 'tblTempVendorCDR_20' ) start [2025-04-11 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885166', 'tblTempVendorCDR_20' ) end [2025-04-11 15:33:21] Production.INFO: ProcessCDR(1,14885166,1,1,2) [2025-04-11 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885166', 'tblTempUsageDetail_20' ) start [2025-04-11 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885166', 'tblTempUsageDetail_20' ) end [2025-04-11 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:33:27] Production.INFO: ==23754== Releasing lock... [2025-04-11 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:33:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:34:06 [end_date_ymd] => 2025-04-11 15:34:06 [RateCDR] => 1 ) [2025-04-11 15: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-04-11 12:34:06' and `end` < '2025-04-11 15: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-04-11 15:34:19] Production.INFO: count ==4234 [2025-04-11 15:34:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:34:06 - End Time 2025-04-11 15:34:06 [2025-04-11 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885171', 'tblTempUsageDetail_20' ) start [2025-04-11 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885171', 'tblTempUsageDetail_20' ) end [2025-04-11 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885171', 'tblTempVendorCDR_20' ) start [2025-04-11 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885171', 'tblTempVendorCDR_20' ) end [2025-04-11 15:34:21] Production.INFO: ProcessCDR(1,14885171,1,1,2) [2025-04-11 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885171', 'tblTempUsageDetail_20' ) start [2025-04-11 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885171', 'tblTempUsageDetail_20' ) end [2025-04-11 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:34:26] Production.INFO: ==23825== Releasing lock... [2025-04-11 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:34:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:35:05 [end_date_ymd] => 2025-04-11 15:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:35:05' and `end` < '2025-04-11 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-04-11 15:35:19] Production.INFO: count ==4223 [2025-04-11 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:35:05 - End Time 2025-04-11 15:35:05 [2025-04-11 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885176', 'tblTempUsageDetail_20' ) start [2025-04-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885176', 'tblTempUsageDetail_20' ) end [2025-04-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885176', 'tblTempVendorCDR_20' ) start [2025-04-11 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885176', 'tblTempVendorCDR_20' ) end [2025-04-11 15:35:21] Production.INFO: ProcessCDR(1,14885176,1,1,2) [2025-04-11 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885176', 'tblTempUsageDetail_20' ) start [2025-04-11 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885176', 'tblTempUsageDetail_20' ) end [2025-04-11 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:35:26] Production.INFO: ==23907== Releasing lock... [2025-04-11 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:35:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:36:05 [end_date_ymd] => 2025-04-11 15:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:36:05' and `end` < '2025-04-11 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-04-11 15:36:19] Production.INFO: count ==4221 [2025-04-11 15:36:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:36:05 - End Time 2025-04-11 15:36:05 [2025-04-11 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885180', 'tblTempUsageDetail_20' ) start [2025-04-11 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885180', 'tblTempUsageDetail_20' ) end [2025-04-11 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885180', 'tblTempVendorCDR_20' ) start [2025-04-11 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885180', 'tblTempVendorCDR_20' ) end [2025-04-11 15:36:20] Production.INFO: ProcessCDR(1,14885180,1,1,2) [2025-04-11 15:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885180', 'tblTempUsageDetail_20' ) start [2025-04-11 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885180', 'tblTempUsageDetail_20' ) end [2025-04-11 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:36:26] Production.INFO: ==23982== Releasing lock... [2025-04-11 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:36:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:37:05 [end_date_ymd] => 2025-04-11 15:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:37:05' and `end` < '2025-04-11 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-04-11 15:37:19] Production.INFO: count ==4227 [2025-04-11 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:37:05 - End Time 2025-04-11 15:37:05 [2025-04-11 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885186', 'tblTempUsageDetail_20' ) start [2025-04-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885186', 'tblTempUsageDetail_20' ) end [2025-04-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885186', 'tblTempVendorCDR_20' ) start [2025-04-11 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885186', 'tblTempVendorCDR_20' ) end [2025-04-11 15:37:21] Production.INFO: ProcessCDR(1,14885186,1,1,2) [2025-04-11 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885186', 'tblTempUsageDetail_20' ) start [2025-04-11 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885186', 'tblTempUsageDetail_20' ) end [2025-04-11 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:37:26] Production.INFO: ==24093== Releasing lock... [2025-04-11 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:37:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:38:05 [end_date_ymd] => 2025-04-11 15:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:38:05' and `end` < '2025-04-11 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-04-11 15:38:19] Production.INFO: count ==4220 [2025-04-11 15:38:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:38:05 - End Time 2025-04-11 15:38:05 [2025-04-11 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885191', 'tblTempUsageDetail_20' ) start [2025-04-11 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885191', 'tblTempUsageDetail_20' ) end [2025-04-11 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885191', 'tblTempVendorCDR_20' ) start [2025-04-11 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885191', 'tblTempVendorCDR_20' ) end [2025-04-11 15:38:21] Production.INFO: ProcessCDR(1,14885191,1,1,2) [2025-04-11 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885191', 'tblTempUsageDetail_20' ) start [2025-04-11 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885191', 'tblTempUsageDetail_20' ) end [2025-04-11 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:38:26] Production.INFO: ==24167== Releasing lock... [2025-04-11 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:38:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:39:05 [end_date_ymd] => 2025-04-11 15:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:39:05' and `end` < '2025-04-11 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-04-11 15:39:19] Production.INFO: count ==4221 [2025-04-11 15:39:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:39:05 - End Time 2025-04-11 15:39:05 [2025-04-11 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885196', 'tblTempUsageDetail_20' ) start [2025-04-11 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885196', 'tblTempUsageDetail_20' ) end [2025-04-11 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885196', 'tblTempVendorCDR_20' ) start [2025-04-11 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885196', 'tblTempVendorCDR_20' ) end [2025-04-11 15:39:20] Production.INFO: ProcessCDR(1,14885196,1,1,2) [2025-04-11 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885196', 'tblTempUsageDetail_20' ) start [2025-04-11 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885196', 'tblTempUsageDetail_20' ) end [2025-04-11 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:39:25] Production.INFO: ==24238== Releasing lock... [2025-04-11 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:39:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:40:06 [end_date_ymd] => 2025-04-11 15:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:40:06' and `end` < '2025-04-11 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-04-11 15:40:19] Production.INFO: count ==4212 [2025-04-11 15:40:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:40:06 - End Time 2025-04-11 15:40:06 [2025-04-11 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885202', 'tblTempUsageDetail_20' ) start [2025-04-11 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885202', 'tblTempUsageDetail_20' ) end [2025-04-11 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885202', 'tblTempVendorCDR_20' ) start [2025-04-11 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885202', 'tblTempVendorCDR_20' ) end [2025-04-11 15:40:21] Production.INFO: ProcessCDR(1,14885202,1,1,2) [2025-04-11 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885202', 'tblTempUsageDetail_20' ) start [2025-04-11 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885202', 'tblTempUsageDetail_20' ) end [2025-04-11 15:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:40:26] Production.INFO: ==24310== Releasing lock... [2025-04-11 15:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:40:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:41:05 [end_date_ymd] => 2025-04-11 15:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:41:05' and `end` < '2025-04-11 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-04-11 15:41:19] Production.INFO: count ==4239 [2025-04-11 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:41:05 - End Time 2025-04-11 15:41:05 [2025-04-11 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885207', 'tblTempUsageDetail_20' ) start [2025-04-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885207', 'tblTempUsageDetail_20' ) end [2025-04-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885207', 'tblTempVendorCDR_20' ) start [2025-04-11 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885207', 'tblTempVendorCDR_20' ) end [2025-04-11 15:41:21] Production.INFO: ProcessCDR(1,14885207,1,1,2) [2025-04-11 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885207', 'tblTempUsageDetail_20' ) start [2025-04-11 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885207', 'tblTempUsageDetail_20' ) end [2025-04-11 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:41:26] Production.INFO: ==24383== Releasing lock... [2025-04-11 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:41:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:42:06 [end_date_ymd] => 2025-04-11 15:42:06 [RateCDR] => 1 ) [2025-04-11 15: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-04-11 12:42:06' and `end` < '2025-04-11 15: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-04-11 15:42:20] Production.INFO: count ==4231 [2025-04-11 15:42:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:42:06 - End Time 2025-04-11 15:42:06 [2025-04-11 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885212', 'tblTempUsageDetail_20' ) start [2025-04-11 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885212', 'tblTempUsageDetail_20' ) end [2025-04-11 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885212', 'tblTempVendorCDR_20' ) start [2025-04-11 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885212', 'tblTempVendorCDR_20' ) end [2025-04-11 15:42:22] Production.INFO: ProcessCDR(1,14885212,1,1,2) [2025-04-11 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885212', 'tblTempUsageDetail_20' ) start [2025-04-11 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885212', 'tblTempUsageDetail_20' ) end [2025-04-11 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:42:27] Production.INFO: ==24454== Releasing lock... [2025-04-11 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:42:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:43:05 [end_date_ymd] => 2025-04-11 15:43:05 [RateCDR] => 1 ) [2025-04-11 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:43:05' and `end` < '2025-04-11 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:43:19] Production.INFO: count ==4234 [2025-04-11 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:43:05 - End Time 2025-04-11 15:43:05 [2025-04-11 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885217', 'tblTempUsageDetail_20' ) start [2025-04-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885217', 'tblTempUsageDetail_20' ) end [2025-04-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885217', 'tblTempVendorCDR_20' ) start [2025-04-11 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885217', 'tblTempVendorCDR_20' ) end [2025-04-11 15:43:21] Production.INFO: ProcessCDR(1,14885217,1,1,2) [2025-04-11 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885217', 'tblTempUsageDetail_20' ) start [2025-04-11 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885217', 'tblTempUsageDetail_20' ) end [2025-04-11 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:43:26] Production.INFO: ==24531== Releasing lock... [2025-04-11 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:43:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:44:06 [end_date_ymd] => 2025-04-11 15:44:06 [RateCDR] => 1 ) [2025-04-11 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:44:06' and `end` < '2025-04-11 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:44:19] Production.INFO: count ==4232 [2025-04-11 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:44:06 - End Time 2025-04-11 15:44:06 [2025-04-11 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885222', 'tblTempUsageDetail_20' ) start [2025-04-11 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885222', 'tblTempUsageDetail_20' ) end [2025-04-11 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885222', 'tblTempVendorCDR_20' ) start [2025-04-11 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885222', 'tblTempVendorCDR_20' ) end [2025-04-11 15:44:21] Production.INFO: ProcessCDR(1,14885222,1,1,2) [2025-04-11 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885222', 'tblTempUsageDetail_20' ) start [2025-04-11 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885222', 'tblTempUsageDetail_20' ) end [2025-04-11 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:44:24] Production.INFO: ==24603== Releasing lock... [2025-04-11 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:44:24] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:45:05 [end_date_ymd] => 2025-04-11 15:45:05 [RateCDR] => 1 ) [2025-04-11 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:45:05' and `end` < '2025-04-11 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:45:19] Production.INFO: count ==4212 [2025-04-11 15:45:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:45:05 - End Time 2025-04-11 15:45:05 [2025-04-11 15:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885227', 'tblTempUsageDetail_20' ) start [2025-04-11 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885227', 'tblTempUsageDetail_20' ) end [2025-04-11 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885227', 'tblTempVendorCDR_20' ) start [2025-04-11 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885227', 'tblTempVendorCDR_20' ) end [2025-04-11 15:45:20] Production.INFO: ProcessCDR(1,14885227,1,1,2) [2025-04-11 15:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885227', 'tblTempUsageDetail_20' ) start [2025-04-11 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885227', 'tblTempUsageDetail_20' ) end [2025-04-11 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:45:26] Production.INFO: ==24673== Releasing lock... [2025-04-11 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:45:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:46:06 [end_date_ymd] => 2025-04-11 15:46:06 [RateCDR] => 1 ) [2025-04-11 15: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-04-11 12:46:06' and `end` < '2025-04-11 15: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-04-11 15:46:20] Production.INFO: count ==4196 [2025-04-11 15:46:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:46:06 - End Time 2025-04-11 15:46:06 [2025-04-11 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885232', 'tblTempUsageDetail_20' ) start [2025-04-11 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885232', 'tblTempUsageDetail_20' ) end [2025-04-11 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885232', 'tblTempVendorCDR_20' ) start [2025-04-11 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885232', 'tblTempVendorCDR_20' ) end [2025-04-11 15:46:21] Production.INFO: ProcessCDR(1,14885232,1,1,2) [2025-04-11 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885232', 'tblTempUsageDetail_20' ) start [2025-04-11 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885232', 'tblTempUsageDetail_20' ) end [2025-04-11 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:46:27] Production.INFO: ==24745== Releasing lock... [2025-04-11 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:46:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:47:05 [end_date_ymd] => 2025-04-11 15:47:05 [RateCDR] => 1 ) [2025-04-11 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:47:05' and `end` < '2025-04-11 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:47:19] Production.INFO: count ==4195 [2025-04-11 15:47:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:47:05 - End Time 2025-04-11 15:47:05 [2025-04-11 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885237', 'tblTempUsageDetail_20' ) start [2025-04-11 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885237', 'tblTempUsageDetail_20' ) end [2025-04-11 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885237', 'tblTempVendorCDR_20' ) start [2025-04-11 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885237', 'tblTempVendorCDR_20' ) end [2025-04-11 15:47:20] Production.INFO: ProcessCDR(1,14885237,1,1,2) [2025-04-11 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885237', 'tblTempUsageDetail_20' ) start [2025-04-11 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885237', 'tblTempUsageDetail_20' ) end [2025-04-11 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:47:26] Production.INFO: ==24815== Releasing lock... [2025-04-11 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:47:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:48:05 [end_date_ymd] => 2025-04-11 15:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:48:05' and `end` < '2025-04-11 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-04-11 15:48:19] Production.INFO: count ==4187 [2025-04-11 15:48:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:48:05 - End Time 2025-04-11 15:48:05 [2025-04-11 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885242', 'tblTempUsageDetail_20' ) start [2025-04-11 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885242', 'tblTempUsageDetail_20' ) end [2025-04-11 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885242', 'tblTempVendorCDR_20' ) start [2025-04-11 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885242', 'tblTempVendorCDR_20' ) end [2025-04-11 15:48:21] Production.INFO: ProcessCDR(1,14885242,1,1,2) [2025-04-11 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885242', 'tblTempUsageDetail_20' ) start [2025-04-11 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885242', 'tblTempUsageDetail_20' ) end [2025-04-11 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:48:26] Production.INFO: ==24886== Releasing lock... [2025-04-11 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:48:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:49:05 [end_date_ymd] => 2025-04-11 15:49:05 [RateCDR] => 1 ) [2025-04-11 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:49:05' and `end` < '2025-04-11 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:49:19] Production.INFO: count ==4176 [2025-04-11 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:49:05 - End Time 2025-04-11 15:49:05 [2025-04-11 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885247', 'tblTempUsageDetail_20' ) start [2025-04-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885247', 'tblTempUsageDetail_20' ) end [2025-04-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885247', 'tblTempVendorCDR_20' ) start [2025-04-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885247', 'tblTempVendorCDR_20' ) end [2025-04-11 15:49:21] Production.INFO: ProcessCDR(1,14885247,1,1,2) [2025-04-11 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885247', 'tblTempUsageDetail_20' ) start [2025-04-11 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885247', 'tblTempUsageDetail_20' ) end [2025-04-11 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:49:26] Production.INFO: ==24960== Releasing lock... [2025-04-11 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:49:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-11 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:50:06 [end_date_ymd] => 2025-04-11 15:50:06 [RateCDR] => 1 ) [2025-04-11 15: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-04-11 12:50:06' and `end` < '2025-04-11 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-04-11 15:50:20] Production.INFO: count ==4176 [2025-04-11 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-11 12:50:06 - End Time 2025-04-11 15:50:06 [2025-04-11 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885253', 'tblTempUsageDetail_20' ) start [2025-04-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885253', 'tblTempUsageDetail_20' ) end [2025-04-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885253', 'tblTempVendorCDR_20' ) start [2025-04-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885253', 'tblTempVendorCDR_20' ) end [2025-04-11 15:50:22] Production.INFO: ProcessCDR(1,14885253,1,1,2) [2025-04-11 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885253', 'tblTempUsageDetail_20' ) start [2025-04-11 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885253', 'tblTempUsageDetail_20' ) end [2025-04-11 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:50:27] Production.INFO: ==25032== Releasing lock... [2025-04-11 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:50:27] Production.INFO: 59.25 MB #Memory Used# [2025-04-11 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:51:05 [end_date_ymd] => 2025-04-11 15:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:51:05' and `end` < '2025-04-11 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-04-11 15:51:19] Production.INFO: count ==4210 [2025-04-11 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:51:05 - End Time 2025-04-11 15:51:05 [2025-04-11 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885258', 'tblTempUsageDetail_20' ) start [2025-04-11 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885258', 'tblTempUsageDetail_20' ) end [2025-04-11 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885258', 'tblTempVendorCDR_20' ) start [2025-04-11 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885258', 'tblTempVendorCDR_20' ) end [2025-04-11 15:51:21] Production.INFO: ProcessCDR(1,14885258,1,1,2) [2025-04-11 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885258', 'tblTempUsageDetail_20' ) start [2025-04-11 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885258', 'tblTempUsageDetail_20' ) end [2025-04-11 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:51:26] Production.INFO: ==25107== Releasing lock... [2025-04-11 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:51:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:52:05 [end_date_ymd] => 2025-04-11 15:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:52:05' and `end` < '2025-04-11 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-04-11 15:52:20] Production.INFO: count ==4216 [2025-04-11 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:52:05 - End Time 2025-04-11 15:52:05 [2025-04-11 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885263', 'tblTempUsageDetail_20' ) start [2025-04-11 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885263', 'tblTempUsageDetail_20' ) end [2025-04-11 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885263', 'tblTempVendorCDR_20' ) start [2025-04-11 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885263', 'tblTempVendorCDR_20' ) end [2025-04-11 15:52:21] Production.INFO: ProcessCDR(1,14885263,1,1,2) [2025-04-11 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885263', 'tblTempUsageDetail_20' ) start [2025-04-11 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885263', 'tblTempUsageDetail_20' ) end [2025-04-11 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:52:26] Production.INFO: ==25216== Releasing lock... [2025-04-11 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:52:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:53:05 [end_date_ymd] => 2025-04-11 15:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:53:05' and `end` < '2025-04-11 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-04-11 15:53:19] Production.INFO: count ==4220 [2025-04-11 15:53:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:53:05 - End Time 2025-04-11 15:53:05 [2025-04-11 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885268', 'tblTempUsageDetail_20' ) start [2025-04-11 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885268', 'tblTempUsageDetail_20' ) end [2025-04-11 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885268', 'tblTempVendorCDR_20' ) start [2025-04-11 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885268', 'tblTempVendorCDR_20' ) end [2025-04-11 15:53:20] Production.INFO: ProcessCDR(1,14885268,1,1,2) [2025-04-11 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885268', 'tblTempUsageDetail_20' ) start [2025-04-11 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885268', 'tblTempUsageDetail_20' ) end [2025-04-11 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:53:26] Production.INFO: ==25287== Releasing lock... [2025-04-11 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:53:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:54:06 [end_date_ymd] => 2025-04-11 15:54:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:54:06' and `end` < '2025-04-11 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-04-11 15:54:20] Production.INFO: count ==4222 [2025-04-11 15:54:22] Production.ERROR: pbx CDR StartTime 2025-04-11 12:54:06 - End Time 2025-04-11 15:54:06 [2025-04-11 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885273', 'tblTempUsageDetail_20' ) start [2025-04-11 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885273', 'tblTempUsageDetail_20' ) end [2025-04-11 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885273', 'tblTempVendorCDR_20' ) start [2025-04-11 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885273', 'tblTempVendorCDR_20' ) end [2025-04-11 15:54:22] Production.INFO: ProcessCDR(1,14885273,1,1,2) [2025-04-11 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885273', 'tblTempUsageDetail_20' ) start [2025-04-11 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885273', 'tblTempUsageDetail_20' ) end [2025-04-11 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:54:27] Production.INFO: ==25360== Releasing lock... [2025-04-11 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:54:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:55:05 [end_date_ymd] => 2025-04-11 15:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:55:05' and `end` < '2025-04-11 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-04-11 15:55:19] Production.INFO: count ==4232 [2025-04-11 15:55:20] Production.ERROR: pbx CDR StartTime 2025-04-11 12:55:05 - End Time 2025-04-11 15:55:05 [2025-04-11 15:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885278', 'tblTempUsageDetail_20' ) start [2025-04-11 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885278', 'tblTempUsageDetail_20' ) end [2025-04-11 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885278', 'tblTempVendorCDR_20' ) start [2025-04-11 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885278', 'tblTempVendorCDR_20' ) end [2025-04-11 15:55:20] Production.INFO: ProcessCDR(1,14885278,1,1,2) [2025-04-11 15:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885278', 'tblTempUsageDetail_20' ) start [2025-04-11 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885278', 'tblTempUsageDetail_20' ) end [2025-04-11 15:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:55:25] Production.INFO: ==25429== Releasing lock... [2025-04-11 15:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:55:25] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:56:05 [end_date_ymd] => 2025-04-11 15:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:56:05' and `end` < '2025-04-11 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-04-11 15:56:19] Production.INFO: count ==4232 [2025-04-11 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:56:05 - End Time 2025-04-11 15:56:05 [2025-04-11 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885283', 'tblTempUsageDetail_20' ) start [2025-04-11 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885283', 'tblTempUsageDetail_20' ) end [2025-04-11 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885283', 'tblTempVendorCDR_20' ) start [2025-04-11 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885283', 'tblTempVendorCDR_20' ) end [2025-04-11 15:56:21] Production.INFO: ProcessCDR(1,14885283,1,1,2) [2025-04-11 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885283', 'tblTempUsageDetail_20' ) start [2025-04-11 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885283', 'tblTempUsageDetail_20' ) end [2025-04-11 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:56:26] Production.INFO: ==25503== Releasing lock... [2025-04-11 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:56:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:57:05 [end_date_ymd] => 2025-04-11 15:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 12:57:05' and `end` < '2025-04-11 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-04-11 15:57:19] Production.INFO: count ==4227 [2025-04-11 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:57:05 - End Time 2025-04-11 15:57:05 [2025-04-11 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885288', 'tblTempUsageDetail_20' ) start [2025-04-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885288', 'tblTempUsageDetail_20' ) end [2025-04-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885288', 'tblTempVendorCDR_20' ) start [2025-04-11 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885288', 'tblTempVendorCDR_20' ) end [2025-04-11 15:57:21] Production.INFO: ProcessCDR(1,14885288,1,1,2) [2025-04-11 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885288', 'tblTempUsageDetail_20' ) start [2025-04-11 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885288', 'tblTempUsageDetail_20' ) end [2025-04-11 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:57:27] Production.INFO: ==25579== Releasing lock... [2025-04-11 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:57:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:58:06 [end_date_ymd] => 2025-04-11 15:58:06 [RateCDR] => 1 ) [2025-04-11 15: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-04-11 12:58:06' and `end` < '2025-04-11 15: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-04-11 15:58:20] Production.INFO: count ==4222 [2025-04-11 15:58:22] Production.ERROR: pbx CDR StartTime 2025-04-11 12:58:06 - End Time 2025-04-11 15:58:06 [2025-04-11 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885293', 'tblTempUsageDetail_20' ) start [2025-04-11 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885293', 'tblTempUsageDetail_20' ) end [2025-04-11 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885293', 'tblTempVendorCDR_20' ) start [2025-04-11 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885293', 'tblTempVendorCDR_20' ) end [2025-04-11 15:58:22] Production.INFO: ProcessCDR(1,14885293,1,1,2) [2025-04-11 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885293', 'tblTempUsageDetail_20' ) start [2025-04-11 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885293', 'tblTempUsageDetail_20' ) end [2025-04-11 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:58:28] Production.INFO: ==25650== Releasing lock... [2025-04-11 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:58:28] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 12:59:05 [end_date_ymd] => 2025-04-11 15:59:05 [RateCDR] => 1 ) [2025-04-11 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 12:59:05' and `end` < '2025-04-11 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 15:59:19] Production.INFO: count ==4232 [2025-04-11 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-11 12:59:05 - End Time 2025-04-11 15:59:05 [2025-04-11 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885298', 'tblTempUsageDetail_20' ) start [2025-04-11 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885298', 'tblTempUsageDetail_20' ) end [2025-04-11 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885298', 'tblTempVendorCDR_20' ) start [2025-04-11 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885298', 'tblTempVendorCDR_20' ) end [2025-04-11 15:59:21] Production.INFO: ProcessCDR(1,14885298,1,1,2) [2025-04-11 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885298', 'tblTempUsageDetail_20' ) start [2025-04-11 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885298', 'tblTempUsageDetail_20' ) end [2025-04-11 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 15:59:27] Production.INFO: ==25721== Releasing lock... [2025-04-11 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 15:59:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:00:06 [end_date_ymd] => 2025-04-11 16:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:00:06' and `end` < '2025-04-11 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-04-11 16:00:20] Production.INFO: count ==4231 [2025-04-11 16:00:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:00:06 - End Time 2025-04-11 16:00:06 [2025-04-11 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885303', 'tblTempUsageDetail_20' ) start [2025-04-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885303', 'tblTempUsageDetail_20' ) end [2025-04-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885303', 'tblTempVendorCDR_20' ) start [2025-04-11 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885303', 'tblTempVendorCDR_20' ) end [2025-04-11 16:00:22] Production.INFO: ProcessCDR(1,14885303,1,1,2) [2025-04-11 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885303', 'tblTempUsageDetail_20' ) start [2025-04-11 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885303', 'tblTempUsageDetail_20' ) end [2025-04-11 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:00:28] Production.INFO: ==25795== Releasing lock... [2025-04-11 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:00:28] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:01:05 [end_date_ymd] => 2025-04-11 16:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:01:05' and `end` < '2025-04-11 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-04-11 16:01:20] Production.INFO: count ==4261 [2025-04-11 16:01:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:01:05 - End Time 2025-04-11 16:01:05 [2025-04-11 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885309', 'tblTempUsageDetail_20' ) start [2025-04-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885309', 'tblTempUsageDetail_20' ) end [2025-04-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885309', 'tblTempVendorCDR_20' ) start [2025-04-11 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885309', 'tblTempVendorCDR_20' ) end [2025-04-11 16:01:22] Production.INFO: ProcessCDR(1,14885309,1,1,2) [2025-04-11 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885309', 'tblTempUsageDetail_20' ) start [2025-04-11 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885309', 'tblTempUsageDetail_20' ) end [2025-04-11 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:01:28] Production.INFO: ==25878== Releasing lock... [2025-04-11 16:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:01:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:02:05 [end_date_ymd] => 2025-04-11 16:02:05 [RateCDR] => 1 ) [2025-04-11 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:02:05' and `end` < '2025-04-11 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:02:19] Production.INFO: count ==4256 [2025-04-11 16:02:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:02:05 - End Time 2025-04-11 16:02:05 [2025-04-11 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885314', 'tblTempUsageDetail_20' ) start [2025-04-11 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885314', 'tblTempUsageDetail_20' ) end [2025-04-11 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885314', 'tblTempVendorCDR_20' ) start [2025-04-11 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885314', 'tblTempVendorCDR_20' ) end [2025-04-11 16:02:21] Production.INFO: ProcessCDR(1,14885314,1,1,2) [2025-04-11 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885314', 'tblTempUsageDetail_20' ) start [2025-04-11 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885314', 'tblTempUsageDetail_20' ) end [2025-04-11 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:02:27] Production.INFO: ==25950== Releasing lock... [2025-04-11 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:02:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:03:05 [end_date_ymd] => 2025-04-11 16:03:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:03:05' and `end` < '2025-04-11 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-04-11 16:03:19] Production.INFO: count ==4257 [2025-04-11 16:03:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:03:05 - End Time 2025-04-11 16:03:05 [2025-04-11 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885319', 'tblTempUsageDetail_20' ) start [2025-04-11 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885319', 'tblTempUsageDetail_20' ) end [2025-04-11 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885319', 'tblTempVendorCDR_20' ) start [2025-04-11 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885319', 'tblTempVendorCDR_20' ) end [2025-04-11 16:03:20] Production.INFO: ProcessCDR(1,14885319,1,1,2) [2025-04-11 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885319', 'tblTempUsageDetail_20' ) start [2025-04-11 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885319', 'tblTempUsageDetail_20' ) end [2025-04-11 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:03:26] Production.INFO: ==26023== Releasing lock... [2025-04-11 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:03:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:04:06 [end_date_ymd] => 2025-04-11 16:04:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:04:06' and `end` < '2025-04-11 16: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-04-11 16:04:20] Production.INFO: count ==4255 [2025-04-11 16:04:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:04:06 - End Time 2025-04-11 16:04:06 [2025-04-11 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885324', 'tblTempUsageDetail_20' ) start [2025-04-11 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885324', 'tblTempUsageDetail_20' ) end [2025-04-11 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885324', 'tblTempVendorCDR_20' ) start [2025-04-11 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885324', 'tblTempVendorCDR_20' ) end [2025-04-11 16:04:22] Production.INFO: ProcessCDR(1,14885324,1,1,2) [2025-04-11 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885324', 'tblTempUsageDetail_20' ) start [2025-04-11 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885324', 'tblTempUsageDetail_20' ) end [2025-04-11 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:04:28] Production.INFO: ==26095== Releasing lock... [2025-04-11 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:04:28] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:05:05 [end_date_ymd] => 2025-04-11 16:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:05:05' and `end` < '2025-04-11 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-04-11 16:05:19] Production.INFO: count ==4250 [2025-04-11 16:05:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:05:05 - End Time 2025-04-11 16:05:05 [2025-04-11 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885329', 'tblTempUsageDetail_20' ) start [2025-04-11 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885329', 'tblTempUsageDetail_20' ) end [2025-04-11 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885329', 'tblTempVendorCDR_20' ) start [2025-04-11 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885329', 'tblTempVendorCDR_20' ) end [2025-04-11 16:05:21] Production.INFO: ProcessCDR(1,14885329,1,1,2) [2025-04-11 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885329', 'tblTempUsageDetail_20' ) start [2025-04-11 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885329', 'tblTempUsageDetail_20' ) end [2025-04-11 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:05:27] Production.INFO: ==26165== Releasing lock... [2025-04-11 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:05:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:06:05 [end_date_ymd] => 2025-04-11 16:06:05 [RateCDR] => 1 ) [2025-04-11 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:06:05' and `end` < '2025-04-11 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:06:20] Production.INFO: count ==4257 [2025-04-11 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:06:05 - End Time 2025-04-11 16:06:05 [2025-04-11 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885334', 'tblTempUsageDetail_20' ) start [2025-04-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885334', 'tblTempUsageDetail_20' ) end [2025-04-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885334', 'tblTempVendorCDR_20' ) start [2025-04-11 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885334', 'tblTempVendorCDR_20' ) end [2025-04-11 16:06:21] Production.INFO: ProcessCDR(1,14885334,1,1,2) [2025-04-11 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885334', 'tblTempUsageDetail_20' ) start [2025-04-11 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885334', 'tblTempUsageDetail_20' ) end [2025-04-11 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:06:27] Production.INFO: ==26238== Releasing lock... [2025-04-11 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:06:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:07:06 [end_date_ymd] => 2025-04-11 16:07:06 [RateCDR] => 1 ) [2025-04-11 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:07:06' and `end` < '2025-04-11 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:07:20] Production.INFO: count ==4275 [2025-04-11 16:07:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:07:06 - End Time 2025-04-11 16:07:06 [2025-04-11 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885339', 'tblTempUsageDetail_20' ) start [2025-04-11 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885339', 'tblTempUsageDetail_20' ) end [2025-04-11 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885339', 'tblTempVendorCDR_20' ) start [2025-04-11 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885339', 'tblTempVendorCDR_20' ) end [2025-04-11 16:07:22] Production.INFO: ProcessCDR(1,14885339,1,1,2) [2025-04-11 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885339', 'tblTempUsageDetail_20' ) start [2025-04-11 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885339', 'tblTempUsageDetail_20' ) end [2025-04-11 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:07:28] Production.INFO: ==26311== Releasing lock... [2025-04-11 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:07:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:08:06 [end_date_ymd] => 2025-04-11 16:08:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:08:06' and `end` < '2025-04-11 16: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-04-11 16:08:20] Production.INFO: count ==4285 [2025-04-11 16:08:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:08:06 - End Time 2025-04-11 16:08:06 [2025-04-11 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885344', 'tblTempUsageDetail_20' ) start [2025-04-11 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885344', 'tblTempUsageDetail_20' ) end [2025-04-11 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885344', 'tblTempVendorCDR_20' ) start [2025-04-11 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885344', 'tblTempVendorCDR_20' ) end [2025-04-11 16:08:22] Production.INFO: ProcessCDR(1,14885344,1,1,2) [2025-04-11 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885344', 'tblTempUsageDetail_20' ) start [2025-04-11 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885344', 'tblTempUsageDetail_20' ) end [2025-04-11 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:08:28] Production.INFO: ==26420== Releasing lock... [2025-04-11 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:08:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:09:05 [end_date_ymd] => 2025-04-11 16:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:09:05' and `end` < '2025-04-11 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-04-11 16:09:19] Production.INFO: count ==4284 [2025-04-11 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:09:05 - End Time 2025-04-11 16:09:05 [2025-04-11 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885349', 'tblTempUsageDetail_20' ) start [2025-04-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885349', 'tblTempUsageDetail_20' ) end [2025-04-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885349', 'tblTempVendorCDR_20' ) start [2025-04-11 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885349', 'tblTempVendorCDR_20' ) end [2025-04-11 16:09:21] Production.INFO: ProcessCDR(1,14885349,1,1,2) [2025-04-11 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885349', 'tblTempUsageDetail_20' ) start [2025-04-11 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885349', 'tblTempUsageDetail_20' ) end [2025-04-11 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:09:28] Production.INFO: ==26489== Releasing lock... [2025-04-11 16:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:09:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:10:07 [end_date_ymd] => 2025-04-11 16:10:07 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:10:07' and `end` < '2025-04-11 16: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-04-11 16:10:21] Production.INFO: count ==4282 [2025-04-11 16:10:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:10:07 - End Time 2025-04-11 16:10:07 [2025-04-11 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885355', 'tblTempUsageDetail_20' ) start [2025-04-11 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885355', 'tblTempUsageDetail_20' ) end [2025-04-11 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885355', 'tblTempVendorCDR_20' ) start [2025-04-11 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885355', 'tblTempVendorCDR_20' ) end [2025-04-11 16:10:23] Production.INFO: ProcessCDR(1,14885355,1,1,2) [2025-04-11 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885355', 'tblTempUsageDetail_20' ) start [2025-04-11 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885355', 'tblTempUsageDetail_20' ) end [2025-04-11 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:10:28] Production.INFO: ==26571== Releasing lock... [2025-04-11 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:10:28] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:11:05 [end_date_ymd] => 2025-04-11 16:11:05 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:11:05' and `end` < '2025-04-11 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-04-11 16:11:20] Production.INFO: count ==4303 [2025-04-11 16:11:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:11:05 - End Time 2025-04-11 16:11:05 [2025-04-11 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885360', 'tblTempUsageDetail_20' ) start [2025-04-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885360', 'tblTempUsageDetail_20' ) end [2025-04-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885360', 'tblTempVendorCDR_20' ) start [2025-04-11 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885360', 'tblTempVendorCDR_20' ) end [2025-04-11 16:11:21] Production.INFO: ProcessCDR(1,14885360,1,1,2) [2025-04-11 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885360', 'tblTempUsageDetail_20' ) start [2025-04-11 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885360', 'tblTempUsageDetail_20' ) end [2025-04-11 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:11:27] Production.INFO: ==26643== Releasing lock... [2025-04-11 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:11:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:12:06 [end_date_ymd] => 2025-04-11 16:12:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:12:06' and `end` < '2025-04-11 16: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-04-11 16:12:20] Production.INFO: count ==4291 [2025-04-11 16:12:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:12:06 - End Time 2025-04-11 16:12:06 [2025-04-11 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885365', 'tblTempUsageDetail_20' ) start [2025-04-11 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885365', 'tblTempUsageDetail_20' ) end [2025-04-11 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885365', 'tblTempVendorCDR_20' ) start [2025-04-11 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885365', 'tblTempVendorCDR_20' ) end [2025-04-11 16:12:22] Production.INFO: ProcessCDR(1,14885365,1,1,2) [2025-04-11 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885365', 'tblTempUsageDetail_20' ) start [2025-04-11 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885365', 'tblTempUsageDetail_20' ) end [2025-04-11 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:12:28] Production.INFO: ==26714== Releasing lock... [2025-04-11 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:12:28] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:13:05 [end_date_ymd] => 2025-04-11 16:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:13:05' and `end` < '2025-04-11 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-04-11 16:13:19] Production.INFO: count ==4285 [2025-04-11 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:13:05 - End Time 2025-04-11 16:13:05 [2025-04-11 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885370', 'tblTempUsageDetail_20' ) start [2025-04-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885370', 'tblTempUsageDetail_20' ) end [2025-04-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885370', 'tblTempVendorCDR_20' ) start [2025-04-11 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885370', 'tblTempVendorCDR_20' ) end [2025-04-11 16:13:21] Production.INFO: ProcessCDR(1,14885370,1,1,2) [2025-04-11 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885370', 'tblTempUsageDetail_20' ) start [2025-04-11 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885370', 'tblTempUsageDetail_20' ) end [2025-04-11 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:13:27] Production.INFO: ==26785== Releasing lock... [2025-04-11 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:13:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:14:06 [end_date_ymd] => 2025-04-11 16:14:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:14:06' and `end` < '2025-04-11 16: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-04-11 16:14:20] Production.INFO: count ==4291 [2025-04-11 16:14:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:14:06 - End Time 2025-04-11 16:14:06 [2025-04-11 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885375', 'tblTempUsageDetail_20' ) start [2025-04-11 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885375', 'tblTempUsageDetail_20' ) end [2025-04-11 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885375', 'tblTempVendorCDR_20' ) start [2025-04-11 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885375', 'tblTempVendorCDR_20' ) end [2025-04-11 16:14:22] Production.INFO: ProcessCDR(1,14885375,1,1,2) [2025-04-11 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885375', 'tblTempUsageDetail_20' ) start [2025-04-11 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885375', 'tblTempUsageDetail_20' ) end [2025-04-11 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:14:27] Production.INFO: ==26855== Releasing lock... [2025-04-11 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:14:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:15:06 [end_date_ymd] => 2025-04-11 16:15:06 [RateCDR] => 1 ) [2025-04-11 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:15:06' and `end` < '2025-04-11 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:15:20] Production.INFO: count ==4282 [2025-04-11 16:15:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:15:06 - End Time 2025-04-11 16:15:06 [2025-04-11 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885380', 'tblTempUsageDetail_20' ) start [2025-04-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885380', 'tblTempUsageDetail_20' ) end [2025-04-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885380', 'tblTempVendorCDR_20' ) start [2025-04-11 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885380', 'tblTempVendorCDR_20' ) end [2025-04-11 16:15:21] Production.INFO: ProcessCDR(1,14885380,1,1,2) [2025-04-11 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885380', 'tblTempUsageDetail_20' ) start [2025-04-11 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885380', 'tblTempUsageDetail_20' ) end [2025-04-11 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:15:27] Production.INFO: ==26943== Releasing lock... [2025-04-11 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:15:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:16:06 [end_date_ymd] => 2025-04-11 16:16:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:16:06' and `end` < '2025-04-11 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-04-11 16:16:20] Production.INFO: count ==4308 [2025-04-11 16:16:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:16:06 - End Time 2025-04-11 16:16:06 [2025-04-11 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885385', 'tblTempUsageDetail_20' ) start [2025-04-11 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885385', 'tblTempUsageDetail_20' ) end [2025-04-11 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885385', 'tblTempVendorCDR_20' ) start [2025-04-11 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885385', 'tblTempVendorCDR_20' ) end [2025-04-11 16:16:22] Production.INFO: ProcessCDR(1,14885385,1,1,2) [2025-04-11 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885385', 'tblTempUsageDetail_20' ) start [2025-04-11 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885385', 'tblTempUsageDetail_20' ) end [2025-04-11 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:16:28] Production.INFO: ==27014== Releasing lock... [2025-04-11 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:16:28] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:17:05 [end_date_ymd] => 2025-04-11 16:17:05 [RateCDR] => 1 ) [2025-04-11 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:17:05' and `end` < '2025-04-11 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:17:19] Production.INFO: count ==4304 [2025-04-11 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:17:05 - End Time 2025-04-11 16:17:05 [2025-04-11 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885390', 'tblTempUsageDetail_20' ) start [2025-04-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885390', 'tblTempUsageDetail_20' ) end [2025-04-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885390', 'tblTempVendorCDR_20' ) start [2025-04-11 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885390', 'tblTempVendorCDR_20' ) end [2025-04-11 16:17:21] Production.INFO: ProcessCDR(1,14885390,1,1,2) [2025-04-11 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885390', 'tblTempUsageDetail_20' ) start [2025-04-11 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885390', 'tblTempUsageDetail_20' ) end [2025-04-11 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:17:27] Production.INFO: ==27085== Releasing lock... [2025-04-11 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:17:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:18:05 [end_date_ymd] => 2025-04-11 16:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:18:05' and `end` < '2025-04-11 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-04-11 16:18:19] Production.INFO: count ==4306 [2025-04-11 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:18:05 - End Time 2025-04-11 16:18:05 [2025-04-11 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885395', 'tblTempUsageDetail_20' ) start [2025-04-11 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885395', 'tblTempUsageDetail_20' ) end [2025-04-11 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885395', 'tblTempVendorCDR_20' ) start [2025-04-11 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885395', 'tblTempVendorCDR_20' ) end [2025-04-11 16:18:21] Production.INFO: ProcessCDR(1,14885395,1,1,2) [2025-04-11 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885395', 'tblTempUsageDetail_20' ) start [2025-04-11 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885395', 'tblTempUsageDetail_20' ) end [2025-04-11 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:18:27] Production.INFO: ==27155== Releasing lock... [2025-04-11 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:18:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:19:06 [end_date_ymd] => 2025-04-11 16:19:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:19:06' and `end` < '2025-04-11 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-04-11 16:19:20] Production.INFO: count ==4309 [2025-04-11 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:19:06 - End Time 2025-04-11 16:19:06 [2025-04-11 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885400', 'tblTempUsageDetail_20' ) start [2025-04-11 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885400', 'tblTempUsageDetail_20' ) end [2025-04-11 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885400', 'tblTempVendorCDR_20' ) start [2025-04-11 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885400', 'tblTempVendorCDR_20' ) end [2025-04-11 16:19:22] Production.INFO: ProcessCDR(1,14885400,1,1,2) [2025-04-11 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885400', 'tblTempUsageDetail_20' ) start [2025-04-11 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885400', 'tblTempUsageDetail_20' ) end [2025-04-11 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:19:27] Production.INFO: ==27228== Releasing lock... [2025-04-11 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:19:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:20:06 [end_date_ymd] => 2025-04-11 16:20:06 [RateCDR] => 1 ) [2025-04-11 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:20:06' and `end` < '2025-04-11 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:20:20] Production.INFO: count ==4291 [2025-04-11 16:20:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:20:06 - End Time 2025-04-11 16:20:06 [2025-04-11 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885406', 'tblTempUsageDetail_20' ) start [2025-04-11 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885406', 'tblTempUsageDetail_20' ) end [2025-04-11 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885406', 'tblTempVendorCDR_20' ) start [2025-04-11 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885406', 'tblTempVendorCDR_20' ) end [2025-04-11 16:20:21] Production.INFO: ProcessCDR(1,14885406,1,1,2) [2025-04-11 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885406', 'tblTempUsageDetail_20' ) start [2025-04-11 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885406', 'tblTempUsageDetail_20' ) end [2025-04-11 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:20:27] Production.INFO: ==27308== Releasing lock... [2025-04-11 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:20:27] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:21:05 [end_date_ymd] => 2025-04-11 16:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:21:05' and `end` < '2025-04-11 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-04-11 16:21:19] Production.INFO: count ==4304 [2025-04-11 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:21:05 - End Time 2025-04-11 16:21:05 [2025-04-11 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885411', 'tblTempUsageDetail_20' ) start [2025-04-11 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885411', 'tblTempUsageDetail_20' ) end [2025-04-11 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885411', 'tblTempVendorCDR_20' ) start [2025-04-11 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885411', 'tblTempVendorCDR_20' ) end [2025-04-11 16:21:21] Production.INFO: ProcessCDR(1,14885411,1,1,2) [2025-04-11 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885411', 'tblTempUsageDetail_20' ) start [2025-04-11 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885411', 'tblTempUsageDetail_20' ) end [2025-04-11 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:21:27] Production.INFO: ==27381== Releasing lock... [2025-04-11 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:21:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:22:06 [end_date_ymd] => 2025-04-11 16:22:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:22:06' and `end` < '2025-04-11 16: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-04-11 16:22:20] Production.INFO: count ==4333 [2025-04-11 16:22:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:22:06 - End Time 2025-04-11 16:22:06 [2025-04-11 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885416', 'tblTempUsageDetail_20' ) start [2025-04-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885416', 'tblTempUsageDetail_20' ) end [2025-04-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885416', 'tblTempVendorCDR_20' ) start [2025-04-11 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885416', 'tblTempVendorCDR_20' ) end [2025-04-11 16:22:22] Production.INFO: ProcessCDR(1,14885416,1,1,2) [2025-04-11 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885416', 'tblTempUsageDetail_20' ) start [2025-04-11 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885416', 'tblTempUsageDetail_20' ) end [2025-04-11 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:22:28] Production.INFO: ==27458== Releasing lock... [2025-04-11 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:22:28] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:23:05 [end_date_ymd] => 2025-04-11 16:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:23:05' and `end` < '2025-04-11 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-04-11 16:23:19] Production.INFO: count ==4335 [2025-04-11 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:23:05 - End Time 2025-04-11 16:23:05 [2025-04-11 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885420', 'tblTempUsageDetail_20' ) start [2025-04-11 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885420', 'tblTempUsageDetail_20' ) end [2025-04-11 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885420', 'tblTempVendorCDR_20' ) start [2025-04-11 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885420', 'tblTempVendorCDR_20' ) end [2025-04-11 16:23:21] Production.INFO: ProcessCDR(1,14885420,1,1,2) [2025-04-11 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885420', 'tblTempUsageDetail_20' ) start [2025-04-11 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885420', 'tblTempUsageDetail_20' ) end [2025-04-11 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:23:26] Production.INFO: ==27569== Releasing lock... [2025-04-11 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:23:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:24:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:24:07 [end_date_ymd] => 2025-04-11 16:24:07 [RateCDR] => 1 ) [2025-04-11 16:24: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-04-11 13:24:07' and `end` < '2025-04-11 16:24: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-04-11 16:24:21] Production.INFO: count ==4336 [2025-04-11 16:24:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:24:07 - End Time 2025-04-11 16:24:07 [2025-04-11 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885426', 'tblTempUsageDetail_20' ) start [2025-04-11 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885426', 'tblTempUsageDetail_20' ) end [2025-04-11 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885426', 'tblTempVendorCDR_20' ) start [2025-04-11 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885426', 'tblTempVendorCDR_20' ) end [2025-04-11 16:24:22] Production.INFO: ProcessCDR(1,14885426,1,1,2) [2025-04-11 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885426', 'tblTempUsageDetail_20' ) start [2025-04-11 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885426', 'tblTempUsageDetail_20' ) end [2025-04-11 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:24:28] Production.INFO: ==27647== Releasing lock... [2025-04-11 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:24:28] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:25:06 [end_date_ymd] => 2025-04-11 16:25:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:25:06' and `end` < '2025-04-11 16: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-04-11 16:25:19] Production.INFO: count ==4341 [2025-04-11 16:25:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:25:06 - End Time 2025-04-11 16:25:06 [2025-04-11 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885431', 'tblTempUsageDetail_20' ) start [2025-04-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885431', 'tblTempUsageDetail_20' ) end [2025-04-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885431', 'tblTempVendorCDR_20' ) start [2025-04-11 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885431', 'tblTempVendorCDR_20' ) end [2025-04-11 16:25:21] Production.INFO: ProcessCDR(1,14885431,1,1,2) [2025-04-11 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885431', 'tblTempUsageDetail_20' ) start [2025-04-11 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885431', 'tblTempUsageDetail_20' ) end [2025-04-11 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:25:27] Production.INFO: ==27719== Releasing lock... [2025-04-11 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:25:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:26:05 [end_date_ymd] => 2025-04-11 16:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:26:05' and `end` < '2025-04-11 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-04-11 16:26:19] Production.INFO: count ==4348 [2025-04-11 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:26:05 - End Time 2025-04-11 16:26:05 [2025-04-11 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885436', 'tblTempUsageDetail_20' ) start [2025-04-11 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885436', 'tblTempUsageDetail_20' ) end [2025-04-11 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885436', 'tblTempVendorCDR_20' ) start [2025-04-11 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885436', 'tblTempVendorCDR_20' ) end [2025-04-11 16:26:21] Production.INFO: ProcessCDR(1,14885436,1,1,2) [2025-04-11 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885436', 'tblTempUsageDetail_20' ) start [2025-04-11 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885436', 'tblTempUsageDetail_20' ) end [2025-04-11 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:26:27] Production.INFO: ==27789== Releasing lock... [2025-04-11 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:26:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:27:05 [end_date_ymd] => 2025-04-11 16:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:27:05' and `end` < '2025-04-11 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-04-11 16:27:19] Production.INFO: count ==4340 [2025-04-11 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:27:05 - End Time 2025-04-11 16:27:05 [2025-04-11 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885441', 'tblTempUsageDetail_20' ) start [2025-04-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885441', 'tblTempUsageDetail_20' ) end [2025-04-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885441', 'tblTempVendorCDR_20' ) start [2025-04-11 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885441', 'tblTempVendorCDR_20' ) end [2025-04-11 16:27:21] Production.INFO: ProcessCDR(1,14885441,1,1,2) [2025-04-11 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885441', 'tblTempUsageDetail_20' ) start [2025-04-11 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885441', 'tblTempUsageDetail_20' ) end [2025-04-11 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:27:27] Production.INFO: ==27860== Releasing lock... [2025-04-11 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:27:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:28:05 [end_date_ymd] => 2025-04-11 16:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:28:05' and `end` < '2025-04-11 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-04-11 16:28:19] Production.INFO: count ==4329 [2025-04-11 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:28:05 - End Time 2025-04-11 16:28:05 [2025-04-11 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885446', 'tblTempUsageDetail_20' ) start [2025-04-11 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885446', 'tblTempUsageDetail_20' ) end [2025-04-11 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885446', 'tblTempVendorCDR_20' ) start [2025-04-11 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885446', 'tblTempVendorCDR_20' ) end [2025-04-11 16:28:21] Production.INFO: ProcessCDR(1,14885446,1,1,2) [2025-04-11 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885446', 'tblTempUsageDetail_20' ) start [2025-04-11 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885446', 'tblTempUsageDetail_20' ) end [2025-04-11 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:28:27] Production.INFO: ==27932== Releasing lock... [2025-04-11 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:28:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:29:05 [end_date_ymd] => 2025-04-11 16:29:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:29:05' and `end` < '2025-04-11 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-04-11 16:29:19] Production.INFO: count ==4332 [2025-04-11 16:29:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:29:05 - End Time 2025-04-11 16:29:05 [2025-04-11 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885451', 'tblTempUsageDetail_20' ) start [2025-04-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885451', 'tblTempUsageDetail_20' ) end [2025-04-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885451', 'tblTempVendorCDR_20' ) start [2025-04-11 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885451', 'tblTempVendorCDR_20' ) end [2025-04-11 16:29:21] Production.INFO: ProcessCDR(1,14885451,1,1,2) [2025-04-11 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885451', 'tblTempUsageDetail_20' ) start [2025-04-11 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885451', 'tblTempUsageDetail_20' ) end [2025-04-11 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:29:27] Production.INFO: ==28004== Releasing lock... [2025-04-11 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:29:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:30:06 [end_date_ymd] => 2025-04-11 16:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:30:06' and `end` < '2025-04-11 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-04-11 16:30:20] Production.INFO: count ==4346 [2025-04-11 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:30:06 - End Time 2025-04-11 16:30:06 [2025-04-11 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885456', 'tblTempUsageDetail_20' ) start [2025-04-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885456', 'tblTempUsageDetail_20' ) end [2025-04-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885456', 'tblTempVendorCDR_20' ) start [2025-04-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885456', 'tblTempVendorCDR_20' ) end [2025-04-11 16:30:22] Production.INFO: ProcessCDR(1,14885456,1,1,2) [2025-04-11 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885456', 'tblTempUsageDetail_20' ) start [2025-04-11 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885456', 'tblTempUsageDetail_20' ) end [2025-04-11 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:30:28] Production.INFO: ==28078== Releasing lock... [2025-04-11 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:30:28] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:31:05 [end_date_ymd] => 2025-04-11 16:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:31:05' and `end` < '2025-04-11 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-04-11 16:31:18] Production.INFO: count ==4361 [2025-04-11 16:31:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:31:05 - End Time 2025-04-11 16:31:05 [2025-04-11 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885462', 'tblTempUsageDetail_20' ) start [2025-04-11 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885462', 'tblTempUsageDetail_20' ) end [2025-04-11 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885462', 'tblTempVendorCDR_20' ) start [2025-04-11 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885462', 'tblTempVendorCDR_20' ) end [2025-04-11 16:31:20] Production.INFO: ProcessCDR(1,14885462,1,1,2) [2025-04-11 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885462', 'tblTempUsageDetail_20' ) start [2025-04-11 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885462', 'tblTempUsageDetail_20' ) end [2025-04-11 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:31:27] Production.INFO: ==28152== Releasing lock... [2025-04-11 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:31:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 16:32:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:32:06 [end_date_ymd] => 2025-04-11 16:32:06 [RateCDR] => 1 ) [2025-04-11 16:32: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-04-11 13:32:06' and `end` < '2025-04-11 16: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-04-11 16:32:20] Production.INFO: count ==4360 [2025-04-11 16:32:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:32:06 - End Time 2025-04-11 16:32:06 [2025-04-11 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885467', 'tblTempUsageDetail_20' ) start [2025-04-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885467', 'tblTempUsageDetail_20' ) end [2025-04-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885467', 'tblTempVendorCDR_20' ) start [2025-04-11 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885467', 'tblTempVendorCDR_20' ) end [2025-04-11 16:32:22] Production.INFO: ProcessCDR(1,14885467,1,1,2) [2025-04-11 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885467', 'tblTempUsageDetail_20' ) start [2025-04-11 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885467', 'tblTempUsageDetail_20' ) end [2025-04-11 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:32:28] Production.INFO: ==28223== Releasing lock... [2025-04-11 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:32:28] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:33:06 [end_date_ymd] => 2025-04-11 16:33:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:33:06' and `end` < '2025-04-11 16: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-04-11 16:33:20] Production.INFO: count ==4351 [2025-04-11 16:33:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:33:06 - End Time 2025-04-11 16:33:06 [2025-04-11 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885472', 'tblTempUsageDetail_20' ) start [2025-04-11 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885472', 'tblTempUsageDetail_20' ) end [2025-04-11 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885472', 'tblTempVendorCDR_20' ) start [2025-04-11 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885472', 'tblTempVendorCDR_20' ) end [2025-04-11 16:33:22] Production.INFO: ProcessCDR(1,14885472,1,1,2) [2025-04-11 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885472', 'tblTempUsageDetail_20' ) start [2025-04-11 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885472', 'tblTempUsageDetail_20' ) end [2025-04-11 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:33:27] Production.INFO: ==28293== Releasing lock... [2025-04-11 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:33:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:34:05 [end_date_ymd] => 2025-04-11 16:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:34:05' and `end` < '2025-04-11 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-04-11 16:34:19] Production.INFO: count ==4350 [2025-04-11 16:34:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:34:05 - End Time 2025-04-11 16:34:05 [2025-04-11 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885477', 'tblTempUsageDetail_20' ) start [2025-04-11 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885477', 'tblTempUsageDetail_20' ) end [2025-04-11 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885477', 'tblTempVendorCDR_20' ) start [2025-04-11 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885477', 'tblTempVendorCDR_20' ) end [2025-04-11 16:34:21] Production.INFO: ProcessCDR(1,14885477,1,1,2) [2025-04-11 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885477', 'tblTempUsageDetail_20' ) start [2025-04-11 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885477', 'tblTempUsageDetail_20' ) end [2025-04-11 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:34:27] Production.INFO: ==28362== Releasing lock... [2025-04-11 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:34:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:35:05 [end_date_ymd] => 2025-04-11 16:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:35:05' and `end` < '2025-04-11 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-04-11 16:35:19] Production.INFO: count ==4352 [2025-04-11 16:35:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:35:05 - End Time 2025-04-11 16:35:05 [2025-04-11 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885482', 'tblTempUsageDetail_20' ) start [2025-04-11 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885482', 'tblTempUsageDetail_20' ) end [2025-04-11 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885482', 'tblTempVendorCDR_20' ) start [2025-04-11 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885482', 'tblTempVendorCDR_20' ) end [2025-04-11 16:35:20] Production.INFO: ProcessCDR(1,14885482,1,1,2) [2025-04-11 16:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885482', 'tblTempUsageDetail_20' ) start [2025-04-11 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885482', 'tblTempUsageDetail_20' ) end [2025-04-11 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:35:26] Production.INFO: ==28433== Releasing lock... [2025-04-11 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:35:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:36:05 [end_date_ymd] => 2025-04-11 16:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:36:05' and `end` < '2025-04-11 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-04-11 16:36:20] Production.INFO: count ==4366 [2025-04-11 16:36:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:36:05 - End Time 2025-04-11 16:36:05 [2025-04-11 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885487', 'tblTempUsageDetail_20' ) start [2025-04-11 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885487', 'tblTempUsageDetail_20' ) end [2025-04-11 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885487', 'tblTempVendorCDR_20' ) start [2025-04-11 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885487', 'tblTempVendorCDR_20' ) end [2025-04-11 16:36:21] Production.INFO: ProcessCDR(1,14885487,1,1,2) [2025-04-11 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885487', 'tblTempUsageDetail_20' ) start [2025-04-11 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885487', 'tblTempUsageDetail_20' ) end [2025-04-11 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:36:28] Production.INFO: ==28504== Releasing lock... [2025-04-11 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:36:28] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:37:05 [end_date_ymd] => 2025-04-11 16:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:37:05' and `end` < '2025-04-11 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-04-11 16:37:19] Production.INFO: count ==4366 [2025-04-11 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:37:05 - End Time 2025-04-11 16:37:05 [2025-04-11 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885492', 'tblTempUsageDetail_20' ) start [2025-04-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885492', 'tblTempUsageDetail_20' ) end [2025-04-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885492', 'tblTempVendorCDR_20' ) start [2025-04-11 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885492', 'tblTempVendorCDR_20' ) end [2025-04-11 16:37:21] Production.INFO: ProcessCDR(1,14885492,1,1,2) [2025-04-11 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885492', 'tblTempUsageDetail_20' ) start [2025-04-11 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885492', 'tblTempUsageDetail_20' ) end [2025-04-11 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:37:27] Production.INFO: ==28586== Releasing lock... [2025-04-11 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:37:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:38:06 [end_date_ymd] => 2025-04-11 16:38:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:38:06' and `end` < '2025-04-11 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-04-11 16:38:19] Production.INFO: count ==4354 [2025-04-11 16:38:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:38:06 - End Time 2025-04-11 16:38:06 [2025-04-11 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885497', 'tblTempUsageDetail_20' ) start [2025-04-11 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885497', 'tblTempUsageDetail_20' ) end [2025-04-11 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885497', 'tblTempVendorCDR_20' ) start [2025-04-11 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885497', 'tblTempVendorCDR_20' ) end [2025-04-11 16:38:21] Production.INFO: ProcessCDR(1,14885497,1,1,2) [2025-04-11 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885497', 'tblTempUsageDetail_20' ) start [2025-04-11 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885497', 'tblTempUsageDetail_20' ) end [2025-04-11 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:38:27] Production.INFO: ==28659== Releasing lock... [2025-04-11 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:38:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:39:05 [end_date_ymd] => 2025-04-11 16:39:05 [RateCDR] => 1 ) [2025-04-11 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:39:05' and `end` < '2025-04-11 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:39:19] Production.INFO: count ==4341 [2025-04-11 16:39:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:39:05 - End Time 2025-04-11 16:39:05 [2025-04-11 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885502', 'tblTempUsageDetail_20' ) start [2025-04-11 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885502', 'tblTempUsageDetail_20' ) end [2025-04-11 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885502', 'tblTempVendorCDR_20' ) start [2025-04-11 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885502', 'tblTempVendorCDR_20' ) end [2025-04-11 16:39:20] Production.INFO: ProcessCDR(1,14885502,1,1,2) [2025-04-11 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885502', 'tblTempUsageDetail_20' ) start [2025-04-11 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885502', 'tblTempUsageDetail_20' ) end [2025-04-11 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:39:26] Production.INFO: ==28768== Releasing lock... [2025-04-11 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:39:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:40:07 [end_date_ymd] => 2025-04-11 16:40:07 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:40:07' and `end` < '2025-04-11 16: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-04-11 16:40:21] Production.INFO: count ==4334 [2025-04-11 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:40:07 - End Time 2025-04-11 16:40:07 [2025-04-11 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885508', 'tblTempUsageDetail_20' ) start [2025-04-11 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885508', 'tblTempUsageDetail_20' ) end [2025-04-11 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885508', 'tblTempVendorCDR_20' ) start [2025-04-11 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885508', 'tblTempVendorCDR_20' ) end [2025-04-11 16:40:23] Production.INFO: ProcessCDR(1,14885508,1,1,2) [2025-04-11 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885508', 'tblTempUsageDetail_20' ) start [2025-04-11 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885508', 'tblTempUsageDetail_20' ) end [2025-04-11 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:40:28] Production.INFO: ==28842== Releasing lock... [2025-04-11 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:40:28] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:41:05 [end_date_ymd] => 2025-04-11 16:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:41:05' and `end` < '2025-04-11 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-04-11 16:41:19] Production.INFO: count ==4360 [2025-04-11 16:41:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:41:05 - End Time 2025-04-11 16:41:05 [2025-04-11 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885513', 'tblTempUsageDetail_20' ) start [2025-04-11 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885513', 'tblTempUsageDetail_20' ) end [2025-04-11 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885513', 'tblTempVendorCDR_20' ) start [2025-04-11 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885513', 'tblTempVendorCDR_20' ) end [2025-04-11 16:41:20] Production.INFO: ProcessCDR(1,14885513,1,1,2) [2025-04-11 16:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885513', 'tblTempUsageDetail_20' ) start [2025-04-11 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885513', 'tblTempUsageDetail_20' ) end [2025-04-11 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:41:26] Production.INFO: ==28914== Releasing lock... [2025-04-11 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:41:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-11 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:42:05 [end_date_ymd] => 2025-04-11 16:42:05 [RateCDR] => 1 ) [2025-04-11 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:42:05' and `end` < '2025-04-11 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:42:19] Production.INFO: count ==4355 [2025-04-11 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:42:05 - End Time 2025-04-11 16:42:05 [2025-04-11 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885518', 'tblTempUsageDetail_20' ) start [2025-04-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885518', 'tblTempUsageDetail_20' ) end [2025-04-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885518', 'tblTempVendorCDR_20' ) start [2025-04-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885518', 'tblTempVendorCDR_20' ) end [2025-04-11 16:42:21] Production.INFO: ProcessCDR(1,14885518,1,1,2) [2025-04-11 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885518', 'tblTempUsageDetail_20' ) start [2025-04-11 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885518', 'tblTempUsageDetail_20' ) end [2025-04-11 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:42:26] Production.INFO: ==28984== Releasing lock... [2025-04-11 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:42:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:43:05 [end_date_ymd] => 2025-04-11 16:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:43:05' and `end` < '2025-04-11 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-04-11 16:43:19] Production.INFO: count ==4340 [2025-04-11 16:43:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:43:05 - End Time 2025-04-11 16:43:05 [2025-04-11 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885523', 'tblTempUsageDetail_20' ) start [2025-04-11 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885523', 'tblTempUsageDetail_20' ) end [2025-04-11 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885523', 'tblTempVendorCDR_20' ) start [2025-04-11 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885523', 'tblTempVendorCDR_20' ) end [2025-04-11 16:43:21] Production.INFO: ProcessCDR(1,14885523,1,1,2) [2025-04-11 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885523', 'tblTempUsageDetail_20' ) start [2025-04-11 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885523', 'tblTempUsageDetail_20' ) end [2025-04-11 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:43:26] Production.INFO: ==29054== Releasing lock... [2025-04-11 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:43:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:44:06 [end_date_ymd] => 2025-04-11 16:44:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:44:06' and `end` < '2025-04-11 16: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-04-11 16:44:20] Production.INFO: count ==4343 [2025-04-11 16:44:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:44:06 - End Time 2025-04-11 16:44:06 [2025-04-11 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885528', 'tblTempUsageDetail_20' ) start [2025-04-11 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885528', 'tblTempUsageDetail_20' ) end [2025-04-11 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885528', 'tblTempVendorCDR_20' ) start [2025-04-11 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885528', 'tblTempVendorCDR_20' ) end [2025-04-11 16:44:21] Production.INFO: ProcessCDR(1,14885528,1,1,2) [2025-04-11 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885528', 'tblTempUsageDetail_20' ) start [2025-04-11 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885528', 'tblTempUsageDetail_20' ) end [2025-04-11 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:44:27] Production.INFO: ==29124== Releasing lock... [2025-04-11 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:44:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:45:05 [end_date_ymd] => 2025-04-11 16:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:45:05' and `end` < '2025-04-11 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-04-11 16:45:19] Production.INFO: count ==4332 [2025-04-11 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:45:05 - End Time 2025-04-11 16:45:05 [2025-04-11 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885533', 'tblTempUsageDetail_20' ) start [2025-04-11 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885533', 'tblTempUsageDetail_20' ) end [2025-04-11 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885533', 'tblTempVendorCDR_20' ) start [2025-04-11 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885533', 'tblTempVendorCDR_20' ) end [2025-04-11 16:45:21] Production.INFO: ProcessCDR(1,14885533,1,1,2) [2025-04-11 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885533', 'tblTempUsageDetail_20' ) start [2025-04-11 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885533', 'tblTempUsageDetail_20' ) end [2025-04-11 16:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:45:25] Production.INFO: ==29196== Releasing lock... [2025-04-11 16:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:45:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-11 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:46:06 [end_date_ymd] => 2025-04-11 16:46:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:46:06' and `end` < '2025-04-11 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-04-11 16:46:19] Production.INFO: count ==4308 [2025-04-11 16:46:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:46:06 - End Time 2025-04-11 16:46:06 [2025-04-11 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885538', 'tblTempUsageDetail_20' ) start [2025-04-11 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885538', 'tblTempUsageDetail_20' ) end [2025-04-11 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885538', 'tblTempVendorCDR_20' ) start [2025-04-11 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885538', 'tblTempVendorCDR_20' ) end [2025-04-11 16:46:21] Production.INFO: ProcessCDR(1,14885538,1,1,2) [2025-04-11 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885538', 'tblTempUsageDetail_20' ) start [2025-04-11 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885538', 'tblTempUsageDetail_20' ) end [2025-04-11 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:46:26] Production.INFO: ==29267== Releasing lock... [2025-04-11 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:46:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:47:05 [end_date_ymd] => 2025-04-11 16:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:47:05' and `end` < '2025-04-11 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-04-11 16:47:19] Production.INFO: count ==4314 [2025-04-11 16:47:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:47:05 - End Time 2025-04-11 16:47:05 [2025-04-11 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885543', 'tblTempUsageDetail_20' ) start [2025-04-11 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885543', 'tblTempUsageDetail_20' ) end [2025-04-11 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885543', 'tblTempVendorCDR_20' ) start [2025-04-11 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885543', 'tblTempVendorCDR_20' ) end [2025-04-11 16:47:20] Production.INFO: ProcessCDR(1,14885543,1,1,2) [2025-04-11 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885543', 'tblTempUsageDetail_20' ) start [2025-04-11 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885543', 'tblTempUsageDetail_20' ) end [2025-04-11 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:47:25] Production.INFO: ==29336== Releasing lock... [2025-04-11 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:47:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:48:05 [end_date_ymd] => 2025-04-11 16:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:48:05' and `end` < '2025-04-11 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-04-11 16:48:19] Production.INFO: count ==4314 [2025-04-11 16:48:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:48:05 - End Time 2025-04-11 16:48:05 [2025-04-11 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885548', 'tblTempUsageDetail_20' ) start [2025-04-11 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885548', 'tblTempUsageDetail_20' ) end [2025-04-11 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885548', 'tblTempVendorCDR_20' ) start [2025-04-11 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885548', 'tblTempVendorCDR_20' ) end [2025-04-11 16:48:21] Production.INFO: ProcessCDR(1,14885548,1,1,2) [2025-04-11 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885548', 'tblTempUsageDetail_20' ) start [2025-04-11 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885548', 'tblTempUsageDetail_20' ) end [2025-04-11 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:48:26] Production.INFO: ==29410== Releasing lock... [2025-04-11 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:48:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:49:05 [end_date_ymd] => 2025-04-11 16:49:05 [RateCDR] => 1 ) [2025-04-11 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:49:05' and `end` < '2025-04-11 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:49:19] Production.INFO: count ==4304 [2025-04-11 16:49:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:49:05 - End Time 2025-04-11 16:49:05 [2025-04-11 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885553', 'tblTempUsageDetail_20' ) start [2025-04-11 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885553', 'tblTempUsageDetail_20' ) end [2025-04-11 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885553', 'tblTempVendorCDR_20' ) start [2025-04-11 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885553', 'tblTempVendorCDR_20' ) end [2025-04-11 16:49:20] Production.INFO: ProcessCDR(1,14885553,1,1,2) [2025-04-11 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885553', 'tblTempUsageDetail_20' ) start [2025-04-11 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885553', 'tblTempUsageDetail_20' ) end [2025-04-11 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:49:26] Production.INFO: ==29480== Releasing lock... [2025-04-11 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:49:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:50:07 [end_date_ymd] => 2025-04-11 16:50:07 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:50:07' and `end` < '2025-04-11 16: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-04-11 16:50:20] Production.INFO: count ==4309 [2025-04-11 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-11 13:50:07 - End Time 2025-04-11 16:50:07 [2025-04-11 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885559', 'tblTempUsageDetail_20' ) start [2025-04-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885559', 'tblTempUsageDetail_20' ) end [2025-04-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885559', 'tblTempVendorCDR_20' ) start [2025-04-11 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885559', 'tblTempVendorCDR_20' ) end [2025-04-11 16:50:22] Production.INFO: ProcessCDR(1,14885559,1,1,2) [2025-04-11 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885559', 'tblTempUsageDetail_20' ) start [2025-04-11 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885559', 'tblTempUsageDetail_20' ) end [2025-04-11 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:50:27] Production.INFO: ==29554== Releasing lock... [2025-04-11 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:50:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-11 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:51:05 [end_date_ymd] => 2025-04-11 16:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:51:05' and `end` < '2025-04-11 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-04-11 16:51:19] Production.INFO: count ==4287 [2025-04-11 16:51:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:51:05 - End Time 2025-04-11 16:51:05 [2025-04-11 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885564', 'tblTempUsageDetail_20' ) start [2025-04-11 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885564', 'tblTempUsageDetail_20' ) end [2025-04-11 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885564', 'tblTempVendorCDR_20' ) start [2025-04-11 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885564', 'tblTempVendorCDR_20' ) end [2025-04-11 16:51:21] Production.INFO: ProcessCDR(1,14885564,1,1,2) [2025-04-11 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885564', 'tblTempUsageDetail_20' ) start [2025-04-11 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885564', 'tblTempUsageDetail_20' ) end [2025-04-11 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:51:26] Production.INFO: ==29630== Releasing lock... [2025-04-11 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:51:26] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:52:06 [end_date_ymd] => 2025-04-11 16:52:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:52:06' and `end` < '2025-04-11 16: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-04-11 16:52:19] Production.INFO: count ==4273 [2025-04-11 16:52:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:52:06 - End Time 2025-04-11 16:52:06 [2025-04-11 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885569', 'tblTempUsageDetail_20' ) start [2025-04-11 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885569', 'tblTempUsageDetail_20' ) end [2025-04-11 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885569', 'tblTempVendorCDR_20' ) start [2025-04-11 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885569', 'tblTempVendorCDR_20' ) end [2025-04-11 16:52:21] Production.INFO: ProcessCDR(1,14885569,1,1,2) [2025-04-11 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885569', 'tblTempUsageDetail_20' ) start [2025-04-11 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885569', 'tblTempUsageDetail_20' ) end [2025-04-11 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:52:25] Production.INFO: ==29705== Releasing lock... [2025-04-11 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:52:25] Production.INFO: 60 MB #Memory Used# [2025-04-11 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:53:05 [end_date_ymd] => 2025-04-11 16:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:53:05' and `end` < '2025-04-11 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-04-11 16:53:19] Production.INFO: count ==4241 [2025-04-11 16:53:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:53:05 - End Time 2025-04-11 16:53:05 [2025-04-11 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885574', 'tblTempUsageDetail_20' ) start [2025-04-11 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885574', 'tblTempUsageDetail_20' ) end [2025-04-11 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885574', 'tblTempVendorCDR_20' ) start [2025-04-11 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885574', 'tblTempVendorCDR_20' ) end [2025-04-11 16:53:21] Production.INFO: ProcessCDR(1,14885574,1,1,2) [2025-04-11 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885574', 'tblTempUsageDetail_20' ) start [2025-04-11 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885574', 'tblTempUsageDetail_20' ) end [2025-04-11 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:53:26] Production.INFO: ==29778== Releasing lock... [2025-04-11 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:53:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:54:06 [end_date_ymd] => 2025-04-11 16:54:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:54:06' and `end` < '2025-04-11 16: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-04-11 16:54:20] Production.INFO: count ==4249 [2025-04-11 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:54:06 - End Time 2025-04-11 16:54:06 [2025-04-11 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885579', 'tblTempUsageDetail_20' ) start [2025-04-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885579', 'tblTempUsageDetail_20' ) end [2025-04-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885579', 'tblTempVendorCDR_20' ) start [2025-04-11 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885579', 'tblTempVendorCDR_20' ) end [2025-04-11 16:54:21] Production.INFO: ProcessCDR(1,14885579,1,1,2) [2025-04-11 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885579', 'tblTempUsageDetail_20' ) start [2025-04-11 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885579', 'tblTempUsageDetail_20' ) end [2025-04-11 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:54:27] Production.INFO: ==29887== Releasing lock... [2025-04-11 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:54:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:55:05 [end_date_ymd] => 2025-04-11 16:55:05 [RateCDR] => 1 ) [2025-04-11 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:55:05' and `end` < '2025-04-11 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:55:19] Production.INFO: count ==4234 [2025-04-11 16:55:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:55:05 - End Time 2025-04-11 16:55:05 [2025-04-11 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885584', 'tblTempUsageDetail_20' ) start [2025-04-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885584', 'tblTempUsageDetail_20' ) end [2025-04-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885584', 'tblTempVendorCDR_20' ) start [2025-04-11 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885584', 'tblTempVendorCDR_20' ) end [2025-04-11 16:55:21] Production.INFO: ProcessCDR(1,14885584,1,1,2) [2025-04-11 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885584', 'tblTempUsageDetail_20' ) start [2025-04-11 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885584', 'tblTempUsageDetail_20' ) end [2025-04-11 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:55:26] Production.INFO: ==29959== Releasing lock... [2025-04-11 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:55:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:56:06 [end_date_ymd] => 2025-04-11 16:56:06 [RateCDR] => 1 ) [2025-04-11 16: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-04-11 13:56:06' and `end` < '2025-04-11 16: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-04-11 16:56:20] Production.INFO: count ==4196 [2025-04-11 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:56:06 - End Time 2025-04-11 16:56:06 [2025-04-11 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885589', 'tblTempUsageDetail_20' ) start [2025-04-11 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885589', 'tblTempUsageDetail_20' ) end [2025-04-11 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885589', 'tblTempVendorCDR_20' ) start [2025-04-11 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885589', 'tblTempVendorCDR_20' ) end [2025-04-11 16:56:21] Production.INFO: ProcessCDR(1,14885589,1,1,2) [2025-04-11 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885589', 'tblTempUsageDetail_20' ) start [2025-04-11 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885589', 'tblTempUsageDetail_20' ) end [2025-04-11 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:56:27] Production.INFO: ==30029== Releasing lock... [2025-04-11 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:56:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:57:05 [end_date_ymd] => 2025-04-11 16:57:05 [RateCDR] => 1 ) [2025-04-11 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 13:57:05' and `end` < '2025-04-11 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 16:57:19] Production.INFO: count ==4201 [2025-04-11 16:57:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:57:05 - End Time 2025-04-11 16:57:05 [2025-04-11 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885594', 'tblTempUsageDetail_20' ) start [2025-04-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885594', 'tblTempUsageDetail_20' ) end [2025-04-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885594', 'tblTempVendorCDR_20' ) start [2025-04-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885594', 'tblTempVendorCDR_20' ) end [2025-04-11 16:57:21] Production.INFO: ProcessCDR(1,14885594,1,1,2) [2025-04-11 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885594', 'tblTempUsageDetail_20' ) start [2025-04-11 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885594', 'tblTempUsageDetail_20' ) end [2025-04-11 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:57:26] Production.INFO: ==30100== Releasing lock... [2025-04-11 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:57:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-11 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:58:05 [end_date_ymd] => 2025-04-11 16:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:58:05' and `end` < '2025-04-11 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-04-11 16:58:19] Production.INFO: count ==4185 [2025-04-11 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-11 13:58:05 - End Time 2025-04-11 16:58:05 [2025-04-11 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885599', 'tblTempUsageDetail_20' ) start [2025-04-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885599', 'tblTempUsageDetail_20' ) end [2025-04-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885599', 'tblTempVendorCDR_20' ) start [2025-04-11 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885599', 'tblTempVendorCDR_20' ) end [2025-04-11 16:58:21] Production.INFO: ProcessCDR(1,14885599,1,1,2) [2025-04-11 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885599', 'tblTempUsageDetail_20' ) start [2025-04-11 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885599', 'tblTempUsageDetail_20' ) end [2025-04-11 16:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:58:25] Production.INFO: ==30173== Releasing lock... [2025-04-11 16:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:58:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-11 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 13:59:05 [end_date_ymd] => 2025-04-11 16:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 13:59:05' and `end` < '2025-04-11 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-04-11 16:59:18] Production.INFO: count ==4200 [2025-04-11 16:59:20] Production.ERROR: pbx CDR StartTime 2025-04-11 13:59:05 - End Time 2025-04-11 16:59:05 [2025-04-11 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885604', 'tblTempUsageDetail_20' ) start [2025-04-11 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885604', 'tblTempUsageDetail_20' ) end [2025-04-11 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885604', 'tblTempVendorCDR_20' ) start [2025-04-11 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885604', 'tblTempVendorCDR_20' ) end [2025-04-11 16:59:20] Production.INFO: ProcessCDR(1,14885604,1,1,2) [2025-04-11 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885604', 'tblTempUsageDetail_20' ) start [2025-04-11 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885604', 'tblTempUsageDetail_20' ) end [2025-04-11 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 16:59:26] Production.INFO: ==30245== Releasing lock... [2025-04-11 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 16:59:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-11 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:00:06 [end_date_ymd] => 2025-04-11 17:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:00:06' and `end` < '2025-04-11 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-04-11 17:00:19] Production.INFO: count ==4159 [2025-04-11 17:00:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:00:06 - End Time 2025-04-11 17:00:06 [2025-04-11 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885609', 'tblTempUsageDetail_20' ) start [2025-04-11 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885609', 'tblTempUsageDetail_20' ) end [2025-04-11 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885609', 'tblTempVendorCDR_20' ) start [2025-04-11 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885609', 'tblTempVendorCDR_20' ) end [2025-04-11 17:00:21] Production.INFO: ProcessCDR(1,14885609,1,1,2) [2025-04-11 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885609', 'tblTempUsageDetail_20' ) start [2025-04-11 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885609', 'tblTempUsageDetail_20' ) end [2025-04-11 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:00:26] Production.INFO: ==30319== Releasing lock... [2025-04-11 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:00:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-11 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:01:05 [end_date_ymd] => 2025-04-11 17:01:05 [RateCDR] => 1 ) [2025-04-11 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:01:05' and `end` < '2025-04-11 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:01:19] Production.INFO: count ==4142 [2025-04-11 17:01:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:01:05 - End Time 2025-04-11 17:01:05 [2025-04-11 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885615', 'tblTempUsageDetail_20' ) start [2025-04-11 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885615', 'tblTempUsageDetail_20' ) end [2025-04-11 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885615', 'tblTempVendorCDR_20' ) start [2025-04-11 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885615', 'tblTempVendorCDR_20' ) end [2025-04-11 17:01:20] Production.INFO: ProcessCDR(1,14885615,1,1,2) [2025-04-11 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885615', 'tblTempUsageDetail_20' ) start [2025-04-11 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885615', 'tblTempUsageDetail_20' ) end [2025-04-11 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:01:24] Production.INFO: ==30405== Releasing lock... [2025-04-11 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:01:24] Production.INFO: 59 MB #Memory Used# [2025-04-11 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:02:06 [end_date_ymd] => 2025-04-11 17:02:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:02:06' and `end` < '2025-04-11 17: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-04-11 17:02:20] Production.INFO: count ==4139 [2025-04-11 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:02:06 - End Time 2025-04-11 17:02:06 [2025-04-11 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885620', 'tblTempUsageDetail_20' ) start [2025-04-11 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885620', 'tblTempUsageDetail_20' ) end [2025-04-11 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885620', 'tblTempVendorCDR_20' ) start [2025-04-11 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885620', 'tblTempVendorCDR_20' ) end [2025-04-11 17:02:21] Production.INFO: ProcessCDR(1,14885620,1,1,2) [2025-04-11 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885620', 'tblTempUsageDetail_20' ) start [2025-04-11 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885620', 'tblTempUsageDetail_20' ) end [2025-04-11 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:02:26] Production.INFO: ==30478== Releasing lock... [2025-04-11 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:02:26] Production.INFO: 59 MB #Memory Used# [2025-04-11 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:03:05 [end_date_ymd] => 2025-04-11 17:03:05 [RateCDR] => 1 ) [2025-04-11 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:03:05' and `end` < '2025-04-11 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:03:18] Production.INFO: count ==4149 [2025-04-11 17:03:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:03:05 - End Time 2025-04-11 17:03:05 [2025-04-11 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885625', 'tblTempUsageDetail_20' ) start [2025-04-11 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885625', 'tblTempUsageDetail_20' ) end [2025-04-11 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885625', 'tblTempVendorCDR_20' ) start [2025-04-11 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885625', 'tblTempVendorCDR_20' ) end [2025-04-11 17:03:20] Production.INFO: ProcessCDR(1,14885625,1,1,2) [2025-04-11 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885625', 'tblTempUsageDetail_20' ) start [2025-04-11 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885625', 'tblTempUsageDetail_20' ) end [2025-04-11 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:03:25] Production.INFO: ==30549== Releasing lock... [2025-04-11 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:03:25] Production.INFO: 59 MB #Memory Used# [2025-04-11 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:04:06 [end_date_ymd] => 2025-04-11 17:04:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:04:06' and `end` < '2025-04-11 17: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-04-11 17:04:20] Production.INFO: count ==4148 [2025-04-11 17:04:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:04:06 - End Time 2025-04-11 17:04:06 [2025-04-11 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885630', 'tblTempUsageDetail_20' ) start [2025-04-11 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885630', 'tblTempUsageDetail_20' ) end [2025-04-11 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885630', 'tblTempVendorCDR_20' ) start [2025-04-11 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885630', 'tblTempVendorCDR_20' ) end [2025-04-11 17:04:22] Production.INFO: ProcessCDR(1,14885630,1,1,2) [2025-04-11 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885630', 'tblTempUsageDetail_20' ) start [2025-04-11 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885630', 'tblTempUsageDetail_20' ) end [2025-04-11 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:04:27] Production.INFO: ==30621== Releasing lock... [2025-04-11 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:04:27] Production.INFO: 59 MB #Memory Used# [2025-04-11 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:05:05 [end_date_ymd] => 2025-04-11 17:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:05:05' and `end` < '2025-04-11 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-04-11 17:05:18] Production.INFO: count ==4147 [2025-04-11 17:05:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:05:05 - End Time 2025-04-11 17:05:05 [2025-04-11 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885634', 'tblTempUsageDetail_20' ) start [2025-04-11 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885634', 'tblTempUsageDetail_20' ) end [2025-04-11 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885634', 'tblTempVendorCDR_20' ) start [2025-04-11 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885634', 'tblTempVendorCDR_20' ) end [2025-04-11 17:05:20] Production.INFO: ProcessCDR(1,14885634,1,1,2) [2025-04-11 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885634', 'tblTempUsageDetail_20' ) start [2025-04-11 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885634', 'tblTempUsageDetail_20' ) end [2025-04-11 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:05:23] Production.INFO: ==30698== Releasing lock... [2025-04-11 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:05:23] Production.INFO: 59 MB #Memory Used# [2025-04-11 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:06:05 [end_date_ymd] => 2025-04-11 17:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:06:05' and `end` < '2025-04-11 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-04-11 17:06:19] Production.INFO: count ==4138 [2025-04-11 17:06:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:06:05 - End Time 2025-04-11 17:06:05 [2025-04-11 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885640', 'tblTempUsageDetail_20' ) start [2025-04-11 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885640', 'tblTempUsageDetail_20' ) end [2025-04-11 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885640', 'tblTempVendorCDR_20' ) start [2025-04-11 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885640', 'tblTempVendorCDR_20' ) end [2025-04-11 17:06:21] Production.INFO: ProcessCDR(1,14885640,1,1,2) [2025-04-11 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885640', 'tblTempUsageDetail_20' ) start [2025-04-11 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885640', 'tblTempUsageDetail_20' ) end [2025-04-11 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:06:25] Production.INFO: ==30769== Releasing lock... [2025-04-11 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:06:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-11 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:07:05 [end_date_ymd] => 2025-04-11 17:07:05 [RateCDR] => 1 ) [2025-04-11 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:07:05' and `end` < '2025-04-11 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:07:18] Production.INFO: count ==4122 [2025-04-11 17:07:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:07:05 - End Time 2025-04-11 17:07:05 [2025-04-11 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885645', 'tblTempUsageDetail_20' ) start [2025-04-11 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885645', 'tblTempUsageDetail_20' ) end [2025-04-11 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885645', 'tblTempVendorCDR_20' ) start [2025-04-11 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885645', 'tblTempVendorCDR_20' ) end [2025-04-11 17:07:20] Production.INFO: ProcessCDR(1,14885645,1,1,2) [2025-04-11 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885645', 'tblTempUsageDetail_20' ) start [2025-04-11 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885645', 'tblTempUsageDetail_20' ) end [2025-04-11 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:07:25] Production.INFO: ==30838== Releasing lock... [2025-04-11 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:07:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-11 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:08:06 [end_date_ymd] => 2025-04-11 17:08:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:08:06' and `end` < '2025-04-11 17: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-04-11 17:08:19] Production.INFO: count ==4107 [2025-04-11 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:08:06 - End Time 2025-04-11 17:08:06 [2025-04-11 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885650', 'tblTempUsageDetail_20' ) start [2025-04-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885650', 'tblTempUsageDetail_20' ) end [2025-04-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885650', 'tblTempVendorCDR_20' ) start [2025-04-11 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885650', 'tblTempVendorCDR_20' ) end [2025-04-11 17:08:21] Production.INFO: ProcessCDR(1,14885650,1,1,2) [2025-04-11 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885650', 'tblTempUsageDetail_20' ) start [2025-04-11 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885650', 'tblTempUsageDetail_20' ) end [2025-04-11 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:08:26] Production.INFO: ==30911== Releasing lock... [2025-04-11 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:08:26] Production.INFO: 59 MB #Memory Used# [2025-04-11 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:09:05 [end_date_ymd] => 2025-04-11 17:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:09:05' and `end` < '2025-04-11 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-04-11 17:09:19] Production.INFO: count ==4103 [2025-04-11 17:09:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:09:05 - End Time 2025-04-11 17:09:05 [2025-04-11 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885655', 'tblTempUsageDetail_20' ) start [2025-04-11 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885655', 'tblTempUsageDetail_20' ) end [2025-04-11 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885655', 'tblTempVendorCDR_20' ) start [2025-04-11 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885655', 'tblTempVendorCDR_20' ) end [2025-04-11 17:09:20] Production.INFO: ProcessCDR(1,14885655,1,1,2) [2025-04-11 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885655', 'tblTempUsageDetail_20' ) start [2025-04-11 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885655', 'tblTempUsageDetail_20' ) end [2025-04-11 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:09:25] Production.INFO: ==30984== Releasing lock... [2025-04-11 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:09:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-11 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:10:06 [end_date_ymd] => 2025-04-11 17:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:10:06' and `end` < '2025-04-11 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-04-11 17:10:20] Production.INFO: count ==4103 [2025-04-11 17:10:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:10:06 - End Time 2025-04-11 17:10:06 [2025-04-11 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885661', 'tblTempUsageDetail_20' ) start [2025-04-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885661', 'tblTempUsageDetail_20' ) end [2025-04-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885661', 'tblTempVendorCDR_20' ) start [2025-04-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885661', 'tblTempVendorCDR_20' ) end [2025-04-11 17:10:22] Production.INFO: ProcessCDR(1,14885661,1,1,2) [2025-04-11 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885661', 'tblTempUsageDetail_20' ) start [2025-04-11 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885661', 'tblTempUsageDetail_20' ) end [2025-04-11 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:10:27] Production.INFO: ==31093== Releasing lock... [2025-04-11 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:10:27] Production.INFO: 58.75 MB #Memory Used# [2025-04-11 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:11:05 [end_date_ymd] => 2025-04-11 17:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:11:05' and `end` < '2025-04-11 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-04-11 17:11:19] Production.INFO: count ==4107 [2025-04-11 17:11:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:11:05 - End Time 2025-04-11 17:11:05 [2025-04-11 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885666', 'tblTempUsageDetail_20' ) start [2025-04-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885666', 'tblTempUsageDetail_20' ) end [2025-04-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885666', 'tblTempVendorCDR_20' ) start [2025-04-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885666', 'tblTempVendorCDR_20' ) end [2025-04-11 17:11:21] Production.INFO: ProcessCDR(1,14885666,1,1,2) [2025-04-11 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885666', 'tblTempUsageDetail_20' ) start [2025-04-11 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885666', 'tblTempUsageDetail_20' ) end [2025-04-11 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:11:26] Production.INFO: ==31166== Releasing lock... [2025-04-11 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:11:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-11 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:12:05 [end_date_ymd] => 2025-04-11 17:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:12:05' and `end` < '2025-04-11 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-04-11 17:12:19] Production.INFO: count ==4092 [2025-04-11 17:12:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:12:05 - End Time 2025-04-11 17:12:05 [2025-04-11 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885671', 'tblTempUsageDetail_20' ) start [2025-04-11 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885671', 'tblTempUsageDetail_20' ) end [2025-04-11 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885671', 'tblTempVendorCDR_20' ) start [2025-04-11 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885671', 'tblTempVendorCDR_20' ) end [2025-04-11 17:12:20] Production.INFO: ProcessCDR(1,14885671,1,1,2) [2025-04-11 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885671', 'tblTempUsageDetail_20' ) start [2025-04-11 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885671', 'tblTempUsageDetail_20' ) end [2025-04-11 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:12:24] Production.INFO: ==31236== Releasing lock... [2025-04-11 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:12:24] Production.INFO: 58.75 MB #Memory Used# [2025-04-11 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:13:05 [end_date_ymd] => 2025-04-11 17:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:13:05' and `end` < '2025-04-11 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-04-11 17:13:19] Production.INFO: count ==4085 [2025-04-11 17:13:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:13:05 - End Time 2025-04-11 17:13:05 [2025-04-11 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885676', 'tblTempUsageDetail_20' ) start [2025-04-11 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885676', 'tblTempUsageDetail_20' ) end [2025-04-11 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885676', 'tblTempVendorCDR_20' ) start [2025-04-11 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885676', 'tblTempVendorCDR_20' ) end [2025-04-11 17:13:20] Production.INFO: ProcessCDR(1,14885676,1,1,2) [2025-04-11 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885676', 'tblTempUsageDetail_20' ) start [2025-04-11 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885676', 'tblTempUsageDetail_20' ) end [2025-04-11 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:13:26] Production.INFO: ==31306== Releasing lock... [2025-04-11 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:13:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:14:05 [end_date_ymd] => 2025-04-11 17:14:05 [RateCDR] => 1 ) [2025-04-11 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:14:05' and `end` < '2025-04-11 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:14:19] Production.INFO: count ==4086 [2025-04-11 17:14:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:14:05 - End Time 2025-04-11 17:14:05 [2025-04-11 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885681', 'tblTempUsageDetail_20' ) start [2025-04-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885681', 'tblTempUsageDetail_20' ) end [2025-04-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885681', 'tblTempVendorCDR_20' ) start [2025-04-11 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885681', 'tblTempVendorCDR_20' ) end [2025-04-11 17:14:21] Production.INFO: ProcessCDR(1,14885681,1,1,2) [2025-04-11 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885681', 'tblTempUsageDetail_20' ) start [2025-04-11 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885681', 'tblTempUsageDetail_20' ) end [2025-04-11 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:14:26] Production.INFO: ==31378== Releasing lock... [2025-04-11 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:14:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:15:06 [end_date_ymd] => 2025-04-11 17:15:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:15:06' and `end` < '2025-04-11 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-04-11 17:15:19] Production.INFO: count ==4088 [2025-04-11 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:15:06 - End Time 2025-04-11 17:15:06 [2025-04-11 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885686', 'tblTempUsageDetail_20' ) start [2025-04-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885686', 'tblTempUsageDetail_20' ) end [2025-04-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885686', 'tblTempVendorCDR_20' ) start [2025-04-11 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885686', 'tblTempVendorCDR_20' ) end [2025-04-11 17:15:21] Production.INFO: ProcessCDR(1,14885686,1,1,2) [2025-04-11 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885686', 'tblTempUsageDetail_20' ) start [2025-04-11 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885686', 'tblTempUsageDetail_20' ) end [2025-04-11 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:15:26] Production.INFO: ==31449== Releasing lock... [2025-04-11 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:15:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:16:05 [end_date_ymd] => 2025-04-11 17:16:05 [RateCDR] => 1 ) [2025-04-11 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:16:05' and `end` < '2025-04-11 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:16:19] Production.INFO: count ==4084 [2025-04-11 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:16:05 - End Time 2025-04-11 17:16:05 [2025-04-11 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885691', 'tblTempUsageDetail_20' ) start [2025-04-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885691', 'tblTempUsageDetail_20' ) end [2025-04-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885691', 'tblTempVendorCDR_20' ) start [2025-04-11 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885691', 'tblTempVendorCDR_20' ) end [2025-04-11 17:16:21] Production.INFO: ProcessCDR(1,14885691,1,1,2) [2025-04-11 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885691', 'tblTempUsageDetail_20' ) start [2025-04-11 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885691', 'tblTempUsageDetail_20' ) end [2025-04-11 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:16:24] Production.INFO: ==31524== Releasing lock... [2025-04-11 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:16:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:17:06 [end_date_ymd] => 2025-04-11 17:17:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:17:06' and `end` < '2025-04-11 17: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-04-11 17:17:19] Production.INFO: count ==4072 [2025-04-11 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:17:06 - End Time 2025-04-11 17:17:06 [2025-04-11 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885696', 'tblTempUsageDetail_20' ) start [2025-04-11 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885696', 'tblTempUsageDetail_20' ) end [2025-04-11 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885696', 'tblTempVendorCDR_20' ) start [2025-04-11 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885696', 'tblTempVendorCDR_20' ) end [2025-04-11 17:17:21] Production.INFO: ProcessCDR(1,14885696,1,1,2) [2025-04-11 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885696', 'tblTempUsageDetail_20' ) start [2025-04-11 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885696', 'tblTempUsageDetail_20' ) end [2025-04-11 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:17:26] Production.INFO: ==31595== Releasing lock... [2025-04-11 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:17:26] Production.INFO: 59 MB #Memory Used# [2025-04-11 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:18:05 [end_date_ymd] => 2025-04-11 17:18:05 [RateCDR] => 1 ) [2025-04-11 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:18:05' and `end` < '2025-04-11 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:18:19] Production.INFO: count ==4081 [2025-04-11 17:18:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:18:05 - End Time 2025-04-11 17:18:05 [2025-04-11 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885701', 'tblTempUsageDetail_20' ) start [2025-04-11 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885701', 'tblTempUsageDetail_20' ) end [2025-04-11 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885701', 'tblTempVendorCDR_20' ) start [2025-04-11 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885701', 'tblTempVendorCDR_20' ) end [2025-04-11 17:18:20] Production.INFO: ProcessCDR(1,14885701,1,1,2) [2025-04-11 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885701', 'tblTempUsageDetail_20' ) start [2025-04-11 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885701', 'tblTempUsageDetail_20' ) end [2025-04-11 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:18:26] Production.INFO: ==31682== Releasing lock... [2025-04-11 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:18:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:19:06 [end_date_ymd] => 2025-04-11 17:19:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:19:06' and `end` < '2025-04-11 17: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-04-11 17:19:19] Production.INFO: count ==4075 [2025-04-11 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:19:06 - End Time 2025-04-11 17:19:06 [2025-04-11 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885706', 'tblTempUsageDetail_20' ) start [2025-04-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885706', 'tblTempUsageDetail_20' ) end [2025-04-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885706', 'tblTempVendorCDR_20' ) start [2025-04-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885706', 'tblTempVendorCDR_20' ) end [2025-04-11 17:19:21] Production.INFO: ProcessCDR(1,14885706,1,1,2) [2025-04-11 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885706', 'tblTempUsageDetail_20' ) start [2025-04-11 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885706', 'tblTempUsageDetail_20' ) end [2025-04-11 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:19:24] Production.INFO: ==31755== Releasing lock... [2025-04-11 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:19:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:20:06 [end_date_ymd] => 2025-04-11 17:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:20:06' and `end` < '2025-04-11 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-04-11 17:20:20] Production.INFO: count ==4074 [2025-04-11 17:20:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:20:06 - End Time 2025-04-11 17:20:06 [2025-04-11 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885711', 'tblTempUsageDetail_20' ) start [2025-04-11 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885711', 'tblTempUsageDetail_20' ) end [2025-04-11 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885711', 'tblTempVendorCDR_20' ) start [2025-04-11 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885711', 'tblTempVendorCDR_20' ) end [2025-04-11 17:20:21] Production.INFO: ProcessCDR(1,14885711,1,1,2) [2025-04-11 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885711', 'tblTempUsageDetail_20' ) start [2025-04-11 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885711', 'tblTempUsageDetail_20' ) end [2025-04-11 17:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:20:25] Production.INFO: ==31837== Releasing lock... [2025-04-11 17:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:20:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:21:05 [end_date_ymd] => 2025-04-11 17:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:21:05' and `end` < '2025-04-11 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-04-11 17:21:19] Production.INFO: count ==4064 [2025-04-11 17:21:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:21:05 - End Time 2025-04-11 17:21:05 [2025-04-11 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885717', 'tblTempUsageDetail_20' ) start [2025-04-11 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885717', 'tblTempUsageDetail_20' ) end [2025-04-11 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885717', 'tblTempVendorCDR_20' ) start [2025-04-11 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885717', 'tblTempVendorCDR_20' ) end [2025-04-11 17:21:20] Production.INFO: ProcessCDR(1,14885717,1,1,2) [2025-04-11 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885717', 'tblTempUsageDetail_20' ) start [2025-04-11 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885717', 'tblTempUsageDetail_20' ) end [2025-04-11 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:21:26] Production.INFO: ==31910== Releasing lock... [2025-04-11 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:21:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-11 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:22:05 [end_date_ymd] => 2025-04-11 17:22:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:22:05' and `end` < '2025-04-11 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-04-11 17:22:19] Production.INFO: count ==4058 [2025-04-11 17:22:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:22:05 - End Time 2025-04-11 17:22:05 [2025-04-11 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885722', 'tblTempUsageDetail_20' ) start [2025-04-11 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885722', 'tblTempUsageDetail_20' ) end [2025-04-11 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885722', 'tblTempVendorCDR_20' ) start [2025-04-11 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885722', 'tblTempVendorCDR_20' ) end [2025-04-11 17:22:21] Production.INFO: ProcessCDR(1,14885722,1,1,2) [2025-04-11 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885722', 'tblTempUsageDetail_20' ) start [2025-04-11 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885722', 'tblTempUsageDetail_20' ) end [2025-04-11 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:22:26] Production.INFO: ==31983== Releasing lock... [2025-04-11 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:22:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-11 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:23:05 [end_date_ymd] => 2025-04-11 17:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:23:05' and `end` < '2025-04-11 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-04-11 17:23:20] Production.INFO: count ==4055 [2025-04-11 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:23:05 - End Time 2025-04-11 17:23:05 [2025-04-11 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885727', 'tblTempUsageDetail_20' ) start [2025-04-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885727', 'tblTempUsageDetail_20' ) end [2025-04-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885727', 'tblTempVendorCDR_20' ) start [2025-04-11 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885727', 'tblTempVendorCDR_20' ) end [2025-04-11 17:23:21] Production.INFO: ProcessCDR(1,14885727,1,1,2) [2025-04-11 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885727', 'tblTempUsageDetail_20' ) start [2025-04-11 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885727', 'tblTempUsageDetail_20' ) end [2025-04-11 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:23:26] Production.INFO: ==32059== Releasing lock... [2025-04-11 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:23:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-11 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:24:05 [end_date_ymd] => 2025-04-11 17:24:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:24:05' and `end` < '2025-04-11 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-04-11 17:24:19] Production.INFO: count ==4031 [2025-04-11 17:24:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:24:05 - End Time 2025-04-11 17:24:05 [2025-04-11 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885732', 'tblTempUsageDetail_20' ) start [2025-04-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885732', 'tblTempUsageDetail_20' ) end [2025-04-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885732', 'tblTempVendorCDR_20' ) start [2025-04-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885732', 'tblTempVendorCDR_20' ) end [2025-04-11 17:24:20] Production.INFO: ProcessCDR(1,14885732,1,1,2) [2025-04-11 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885732', 'tblTempUsageDetail_20' ) start [2025-04-11 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885732', 'tblTempUsageDetail_20' ) end [2025-04-11 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:24:24] Production.INFO: ==32131== Releasing lock... [2025-04-11 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:24:24] Production.INFO: 58 MB #Memory Used# [2025-04-11 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:25:06 [end_date_ymd] => 2025-04-11 17:25:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:25:06' and `end` < '2025-04-11 17: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-04-11 17:25:20] Production.INFO: count ==4029 [2025-04-11 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:25:06 - End Time 2025-04-11 17:25:06 [2025-04-11 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885737', 'tblTempUsageDetail_20' ) start [2025-04-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885737', 'tblTempUsageDetail_20' ) end [2025-04-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885737', 'tblTempVendorCDR_20' ) start [2025-04-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885737', 'tblTempVendorCDR_20' ) end [2025-04-11 17:25:21] Production.INFO: ProcessCDR(1,14885737,1,1,2) [2025-04-11 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885737', 'tblTempUsageDetail_20' ) start [2025-04-11 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885737', 'tblTempUsageDetail_20' ) end [2025-04-11 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:25:26] Production.INFO: ==32244== Releasing lock... [2025-04-11 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:25:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-11 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:26:05 [end_date_ymd] => 2025-04-11 17:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:26:05' and `end` < '2025-04-11 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-04-11 17:26:19] Production.INFO: count ==4015 [2025-04-11 17:26:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:26:05 - End Time 2025-04-11 17:26:05 [2025-04-11 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885742', 'tblTempUsageDetail_20' ) start [2025-04-11 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885742', 'tblTempUsageDetail_20' ) end [2025-04-11 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885742', 'tblTempVendorCDR_20' ) start [2025-04-11 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885742', 'tblTempVendorCDR_20' ) end [2025-04-11 17:26:20] Production.INFO: ProcessCDR(1,14885742,1,1,2) [2025-04-11 17:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885742', 'tblTempUsageDetail_20' ) start [2025-04-11 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885742', 'tblTempUsageDetail_20' ) end [2025-04-11 17:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:26:25] Production.INFO: ==32313== Releasing lock... [2025-04-11 17:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:26:25] Production.INFO: 58 MB #Memory Used# [2025-04-11 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:27:05 [end_date_ymd] => 2025-04-11 17:27:05 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:27:05' and `end` < '2025-04-11 17: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-04-11 17:27:19] Production.INFO: count ==3983 [2025-04-11 17:27:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:27:05 - End Time 2025-04-11 17:27:05 [2025-04-11 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885747', 'tblTempUsageDetail_20' ) start [2025-04-11 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885747', 'tblTempUsageDetail_20' ) end [2025-04-11 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885747', 'tblTempVendorCDR_20' ) start [2025-04-11 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885747', 'tblTempVendorCDR_20' ) end [2025-04-11 17:27:20] Production.INFO: ProcessCDR(1,14885747,1,1,2) [2025-04-11 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885747', 'tblTempUsageDetail_20' ) start [2025-04-11 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885747', 'tblTempUsageDetail_20' ) end [2025-04-11 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:27:25] Production.INFO: ==32385== Releasing lock... [2025-04-11 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:27:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-11 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:28:05 [end_date_ymd] => 2025-04-11 17:28:05 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:28:05' and `end` < '2025-04-11 17: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-04-11 17:28:19] Production.INFO: count ==3972 [2025-04-11 17:28:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:28:05 - End Time 2025-04-11 17:28:05 [2025-04-11 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885752', 'tblTempUsageDetail_20' ) start [2025-04-11 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885752', 'tblTempUsageDetail_20' ) end [2025-04-11 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885752', 'tblTempVendorCDR_20' ) start [2025-04-11 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885752', 'tblTempVendorCDR_20' ) end [2025-04-11 17:28:20] Production.INFO: ProcessCDR(1,14885752,1,1,2) [2025-04-11 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885752', 'tblTempUsageDetail_20' ) start [2025-04-11 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885752', 'tblTempUsageDetail_20' ) end [2025-04-11 17:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:28:24] Production.INFO: ==32472== Releasing lock... [2025-04-11 17:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:28:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-11 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:29:06 [end_date_ymd] => 2025-04-11 17:29:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:29:06' and `end` < '2025-04-11 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-04-11 17:29:20] Production.INFO: count ==3970 [2025-04-11 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:29:06 - End Time 2025-04-11 17:29:06 [2025-04-11 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885757', 'tblTempUsageDetail_20' ) start [2025-04-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885757', 'tblTempUsageDetail_20' ) end [2025-04-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885757', 'tblTempVendorCDR_20' ) start [2025-04-11 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885757', 'tblTempVendorCDR_20' ) end [2025-04-11 17:29:21] Production.INFO: ProcessCDR(1,14885757,1,1,2) [2025-04-11 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885757', 'tblTempUsageDetail_20' ) start [2025-04-11 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885757', 'tblTempUsageDetail_20' ) end [2025-04-11 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:29:26] Production.INFO: ==32563== Releasing lock... [2025-04-11 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:29:26] Production.INFO: 58 MB #Memory Used# [2025-04-11 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:30:06 [end_date_ymd] => 2025-04-11 17:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:30:06' and `end` < '2025-04-11 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-04-11 17:30:20] Production.INFO: count ==3950 [2025-04-11 17:30:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:30:06 - End Time 2025-04-11 17:30:06 [2025-04-11 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885763', 'tblTempUsageDetail_20' ) start [2025-04-11 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885763', 'tblTempUsageDetail_20' ) end [2025-04-11 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885763', 'tblTempVendorCDR_20' ) start [2025-04-11 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885763', 'tblTempVendorCDR_20' ) end [2025-04-11 17:30:21] Production.INFO: ProcessCDR(1,14885763,1,1,2) [2025-04-11 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885763', 'tblTempUsageDetail_20' ) start [2025-04-11 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885763', 'tblTempUsageDetail_20' ) end [2025-04-11 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:30:26] Production.INFO: ==32652== Releasing lock... [2025-04-11 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:30:26] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:31:05 [end_date_ymd] => 2025-04-11 17:31:05 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:31:05' and `end` < '2025-04-11 17: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-04-11 17:31:19] Production.INFO: count ==3962 [2025-04-11 17:31:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:31:05 - End Time 2025-04-11 17:31:05 [2025-04-11 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885768', 'tblTempUsageDetail_20' ) start [2025-04-11 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885768', 'tblTempUsageDetail_20' ) end [2025-04-11 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885768', 'tblTempVendorCDR_20' ) start [2025-04-11 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885768', 'tblTempVendorCDR_20' ) end [2025-04-11 17:31:21] Production.INFO: ProcessCDR(1,14885768,1,1,2) [2025-04-11 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885768', 'tblTempUsageDetail_20' ) start [2025-04-11 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885768', 'tblTempUsageDetail_20' ) end [2025-04-11 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:31:24] Production.INFO: ==32753== Releasing lock... [2025-04-11 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:31:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-11 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:32:05 [end_date_ymd] => 2025-04-11 17:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:32:05' and `end` < '2025-04-11 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-04-11 17:32:18] Production.INFO: count ==3954 [2025-04-11 17:32:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:32:05 - End Time 2025-04-11 17:32:05 [2025-04-11 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885773', 'tblTempUsageDetail_20' ) start [2025-04-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885773', 'tblTempUsageDetail_20' ) end [2025-04-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885773', 'tblTempVendorCDR_20' ) start [2025-04-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885773', 'tblTempVendorCDR_20' ) end [2025-04-11 17:32:20] Production.INFO: ProcessCDR(1,14885773,1,1,2) [2025-04-11 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885773', 'tblTempUsageDetail_20' ) start [2025-04-11 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885773', 'tblTempUsageDetail_20' ) end [2025-04-11 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:32:25] Production.INFO: ==385== Releasing lock... [2025-04-11 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:32:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:33:05 [end_date_ymd] => 2025-04-11 17:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:33:05' and `end` < '2025-04-11 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-04-11 17:33:19] Production.INFO: count ==3935 [2025-04-11 17:33:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:33:05 - End Time 2025-04-11 17:33:05 [2025-04-11 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885778', 'tblTempUsageDetail_20' ) start [2025-04-11 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885778', 'tblTempUsageDetail_20' ) end [2025-04-11 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885778', 'tblTempVendorCDR_20' ) start [2025-04-11 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885778', 'tblTempVendorCDR_20' ) end [2025-04-11 17:33:20] Production.INFO: ProcessCDR(1,14885778,1,1,2) [2025-04-11 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885778', 'tblTempUsageDetail_20' ) start [2025-04-11 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885778', 'tblTempUsageDetail_20' ) end [2025-04-11 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:33:25] Production.INFO: ==457== Releasing lock... [2025-04-11 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:33:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:34:05 [end_date_ymd] => 2025-04-11 17:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:34:05' and `end` < '2025-04-11 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-04-11 17:34:19] Production.INFO: count ==3922 [2025-04-11 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:34:05 - End Time 2025-04-11 17:34:05 [2025-04-11 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885783', 'tblTempUsageDetail_20' ) start [2025-04-11 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885783', 'tblTempUsageDetail_20' ) end [2025-04-11 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885783', 'tblTempVendorCDR_20' ) start [2025-04-11 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885783', 'tblTempVendorCDR_20' ) end [2025-04-11 17:34:21] Production.INFO: ProcessCDR(1,14885783,1,1,2) [2025-04-11 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885783', 'tblTempUsageDetail_20' ) start [2025-04-11 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885783', 'tblTempUsageDetail_20' ) end [2025-04-11 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:34:26] Production.INFO: ==530== Releasing lock... [2025-04-11 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:34:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:35:05 [end_date_ymd] => 2025-04-11 17:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:35:05' and `end` < '2025-04-11 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-04-11 17:35:19] Production.INFO: count ==3910 [2025-04-11 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:35:05 - End Time 2025-04-11 17:35:05 [2025-04-11 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885788', 'tblTempUsageDetail_20' ) start [2025-04-11 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885788', 'tblTempUsageDetail_20' ) end [2025-04-11 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885788', 'tblTempVendorCDR_20' ) start [2025-04-11 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885788', 'tblTempVendorCDR_20' ) end [2025-04-11 17:35:20] Production.INFO: ProcessCDR(1,14885788,1,1,2) [2025-04-11 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885788', 'tblTempUsageDetail_20' ) start [2025-04-11 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885788', 'tblTempUsageDetail_20' ) end [2025-04-11 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:35:25] Production.INFO: ==606== Releasing lock... [2025-04-11 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:35:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-11 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:36:05 [end_date_ymd] => 2025-04-11 17:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:36:05' and `end` < '2025-04-11 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-04-11 17:36:18] Production.INFO: count ==3904 [2025-04-11 17:36:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:36:05 - End Time 2025-04-11 17:36:05 [2025-04-11 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885792', 'tblTempUsageDetail_20' ) start [2025-04-11 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885792', 'tblTempUsageDetail_20' ) end [2025-04-11 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885792', 'tblTempVendorCDR_20' ) start [2025-04-11 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885792', 'tblTempVendorCDR_20' ) end [2025-04-11 17:36:20] Production.INFO: ProcessCDR(1,14885792,1,1,2) [2025-04-11 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885792', 'tblTempUsageDetail_20' ) start [2025-04-11 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885792', 'tblTempUsageDetail_20' ) end [2025-04-11 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:36:25] Production.INFO: ==705== Releasing lock... [2025-04-11 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:36:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:37:05 [end_date_ymd] => 2025-04-11 17:37:05 [RateCDR] => 1 ) [2025-04-11 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:37:05' and `end` < '2025-04-11 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:37:18] Production.INFO: count ==3912 [2025-04-11 17:37:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:37:05 - End Time 2025-04-11 17:37:05 [2025-04-11 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885798', 'tblTempUsageDetail_20' ) start [2025-04-11 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885798', 'tblTempUsageDetail_20' ) end [2025-04-11 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885798', 'tblTempVendorCDR_20' ) start [2025-04-11 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885798', 'tblTempVendorCDR_20' ) end [2025-04-11 17:37:20] Production.INFO: ProcessCDR(1,14885798,1,1,2) [2025-04-11 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885798', 'tblTempUsageDetail_20' ) start [2025-04-11 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885798', 'tblTempUsageDetail_20' ) end [2025-04-11 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:37:25] Production.INFO: ==779== Releasing lock... [2025-04-11 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:37:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:38:05 [end_date_ymd] => 2025-04-11 17:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:38:05' and `end` < '2025-04-11 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-04-11 17:38:19] Production.INFO: count ==3902 [2025-04-11 17:38:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:38:05 - End Time 2025-04-11 17:38:05 [2025-04-11 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885803', 'tblTempUsageDetail_20' ) start [2025-04-11 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885803', 'tblTempUsageDetail_20' ) end [2025-04-11 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885803', 'tblTempVendorCDR_20' ) start [2025-04-11 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885803', 'tblTempVendorCDR_20' ) end [2025-04-11 17:38:20] Production.INFO: ProcessCDR(1,14885803,1,1,2) [2025-04-11 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885803', 'tblTempUsageDetail_20' ) start [2025-04-11 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885803', 'tblTempUsageDetail_20' ) end [2025-04-11 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:38:26] Production.INFO: ==855== Releasing lock... [2025-04-11 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:38:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:39:05 [end_date_ymd] => 2025-04-11 17:39:05 [RateCDR] => 1 ) [2025-04-11 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:39:05' and `end` < '2025-04-11 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:39:19] Production.INFO: count ==3912 [2025-04-11 17:39:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:39:05 - End Time 2025-04-11 17:39:05 [2025-04-11 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885808', 'tblTempUsageDetail_20' ) start [2025-04-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885808', 'tblTempUsageDetail_20' ) end [2025-04-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885808', 'tblTempVendorCDR_20' ) start [2025-04-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885808', 'tblTempVendorCDR_20' ) end [2025-04-11 17:39:20] Production.INFO: ProcessCDR(1,14885808,1,1,2) [2025-04-11 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885808', 'tblTempUsageDetail_20' ) start [2025-04-11 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885808', 'tblTempUsageDetail_20' ) end [2025-04-11 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:39:25] Production.INFO: ==925== Releasing lock... [2025-04-11 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:39:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:40:06 [end_date_ymd] => 2025-04-11 17:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:40:06' and `end` < '2025-04-11 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-04-11 17:40:20] Production.INFO: count ==3911 [2025-04-11 17:40:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:40:06 - End Time 2025-04-11 17:40:06 [2025-04-11 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885814', 'tblTempUsageDetail_20' ) start [2025-04-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885814', 'tblTempUsageDetail_20' ) end [2025-04-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885814', 'tblTempVendorCDR_20' ) start [2025-04-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885814', 'tblTempVendorCDR_20' ) end [2025-04-11 17:40:21] Production.INFO: ProcessCDR(1,14885814,1,1,2) [2025-04-11 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885814', 'tblTempUsageDetail_20' ) start [2025-04-11 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885814', 'tblTempUsageDetail_20' ) end [2025-04-11 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:40:25] Production.INFO: ==1037== Releasing lock... [2025-04-11 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:40:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:41:05 [end_date_ymd] => 2025-04-11 17:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:41:05' and `end` < '2025-04-11 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-04-11 17:41:19] Production.INFO: count ==3921 [2025-04-11 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:41:05 - End Time 2025-04-11 17:41:05 [2025-04-11 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885819', 'tblTempUsageDetail_20' ) start [2025-04-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885819', 'tblTempUsageDetail_20' ) end [2025-04-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885819', 'tblTempVendorCDR_20' ) start [2025-04-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885819', 'tblTempVendorCDR_20' ) end [2025-04-11 17:41:20] Production.INFO: ProcessCDR(1,14885819,1,1,2) [2025-04-11 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885819', 'tblTempUsageDetail_20' ) start [2025-04-11 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885819', 'tblTempUsageDetail_20' ) end [2025-04-11 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:41:24] Production.INFO: ==1111== Releasing lock... [2025-04-11 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:41:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-11 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:42:06 [end_date_ymd] => 2025-04-11 17:42:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:42:06' and `end` < '2025-04-11 17: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-04-11 17:42:19] Production.INFO: count ==3919 [2025-04-11 17:42:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:42:06 - End Time 2025-04-11 17:42:06 [2025-04-11 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885824', 'tblTempUsageDetail_20' ) start [2025-04-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885824', 'tblTempUsageDetail_20' ) end [2025-04-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885824', 'tblTempVendorCDR_20' ) start [2025-04-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885824', 'tblTempVendorCDR_20' ) end [2025-04-11 17:42:20] Production.INFO: ProcessCDR(1,14885824,1,1,2) [2025-04-11 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885824', 'tblTempUsageDetail_20' ) start [2025-04-11 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885824', 'tblTempUsageDetail_20' ) end [2025-04-11 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:42:25] Production.INFO: ==1189== Releasing lock... [2025-04-11 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:42:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-11 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:43:05 [end_date_ymd] => 2025-04-11 17:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:43:05' and `end` < '2025-04-11 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-04-11 17:43:18] Production.INFO: count ==3914 [2025-04-11 17:43:19] Production.ERROR: pbx CDR StartTime 2025-04-11 14:43:05 - End Time 2025-04-11 17:43:05 [2025-04-11 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885829', 'tblTempUsageDetail_20' ) start [2025-04-11 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885829', 'tblTempUsageDetail_20' ) end [2025-04-11 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885829', 'tblTempVendorCDR_20' ) start [2025-04-11 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885829', 'tblTempVendorCDR_20' ) end [2025-04-11 17:43:20] Production.INFO: ProcessCDR(1,14885829,1,1,2) [2025-04-11 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885829', 'tblTempUsageDetail_20' ) start [2025-04-11 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885829', 'tblTempUsageDetail_20' ) end [2025-04-11 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:43:23] Production.INFO: ==1273== Releasing lock... [2025-04-11 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:43:23] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:44:05 [end_date_ymd] => 2025-04-11 17:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:44:05' and `end` < '2025-04-11 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-04-11 17:44:19] Production.INFO: count ==3902 [2025-04-11 17:44:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:44:05 - End Time 2025-04-11 17:44:05 [2025-04-11 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885834', 'tblTempUsageDetail_20' ) start [2025-04-11 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885834', 'tblTempUsageDetail_20' ) end [2025-04-11 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885834', 'tblTempVendorCDR_20' ) start [2025-04-11 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885834', 'tblTempVendorCDR_20' ) end [2025-04-11 17:44:20] Production.INFO: ProcessCDR(1,14885834,1,1,2) [2025-04-11 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885834', 'tblTempUsageDetail_20' ) start [2025-04-11 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885834', 'tblTempUsageDetail_20' ) end [2025-04-11 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:44:24] Production.INFO: ==1344== Releasing lock... [2025-04-11 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:44:24] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:45:05 [end_date_ymd] => 2025-04-11 17:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:45:05' and `end` < '2025-04-11 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-04-11 17:45:18] Production.INFO: count ==3894 [2025-04-11 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:45:05 - End Time 2025-04-11 17:45:05 [2025-04-11 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885839', 'tblTempUsageDetail_20' ) start [2025-04-11 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885839', 'tblTempUsageDetail_20' ) end [2025-04-11 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885839', 'tblTempVendorCDR_20' ) start [2025-04-11 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885839', 'tblTempVendorCDR_20' ) end [2025-04-11 17:45:20] Production.INFO: ProcessCDR(1,14885839,1,1,2) [2025-04-11 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885839', 'tblTempUsageDetail_20' ) start [2025-04-11 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885839', 'tblTempUsageDetail_20' ) end [2025-04-11 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:45:23] Production.INFO: ==1415== Releasing lock... [2025-04-11 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:45:23] Production.INFO: 57.25 MB #Memory Used# [2025-04-11 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:46:05 [end_date_ymd] => 2025-04-11 17:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:46:05' and `end` < '2025-04-11 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-04-11 17:46:19] Production.INFO: count ==3881 [2025-04-11 17:46:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:46:05 - End Time 2025-04-11 17:46:05 [2025-04-11 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885844', 'tblTempUsageDetail_20' ) start [2025-04-11 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885844', 'tblTempUsageDetail_20' ) end [2025-04-11 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885844', 'tblTempVendorCDR_20' ) start [2025-04-11 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885844', 'tblTempVendorCDR_20' ) end [2025-04-11 17:46:20] Production.INFO: ProcessCDR(1,14885844,1,1,2) [2025-04-11 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885844', 'tblTempUsageDetail_20' ) start [2025-04-11 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885844', 'tblTempUsageDetail_20' ) end [2025-04-11 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:46:24] Production.INFO: ==1492== Releasing lock... [2025-04-11 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:46:24] Production.INFO: 57 MB #Memory Used# [2025-04-11 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:47:05 [end_date_ymd] => 2025-04-11 17:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:47:05' and `end` < '2025-04-11 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-04-11 17:47:19] Production.INFO: count ==3886 [2025-04-11 17:47:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:47:05 - End Time 2025-04-11 17:47:05 [2025-04-11 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885849', 'tblTempUsageDetail_20' ) start [2025-04-11 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885849', 'tblTempUsageDetail_20' ) end [2025-04-11 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885849', 'tblTempVendorCDR_20' ) start [2025-04-11 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885849', 'tblTempVendorCDR_20' ) end [2025-04-11 17:47:20] Production.INFO: ProcessCDR(1,14885849,1,1,2) [2025-04-11 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885849', 'tblTempUsageDetail_20' ) start [2025-04-11 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885849', 'tblTempUsageDetail_20' ) end [2025-04-11 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:47:25] Production.INFO: ==1598== Releasing lock... [2025-04-11 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:47:25] Production.INFO: 57 MB #Memory Used# [2025-04-11 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:48:05 [end_date_ymd] => 2025-04-11 17:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:48:05' and `end` < '2025-04-11 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-04-11 17:48:18] Production.INFO: count ==3875 [2025-04-11 17:48:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:48:05 - End Time 2025-04-11 17:48:05 [2025-04-11 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885854', 'tblTempUsageDetail_20' ) start [2025-04-11 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885854', 'tblTempUsageDetail_20' ) end [2025-04-11 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885854', 'tblTempVendorCDR_20' ) start [2025-04-11 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885854', 'tblTempVendorCDR_20' ) end [2025-04-11 17:48:20] Production.INFO: ProcessCDR(1,14885854,1,1,2) [2025-04-11 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885854', 'tblTempUsageDetail_20' ) start [2025-04-11 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885854', 'tblTempUsageDetail_20' ) end [2025-04-11 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:48:25] Production.INFO: ==1669== Releasing lock... [2025-04-11 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:48:25] Production.INFO: 57 MB #Memory Used# [2025-04-11 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:49:06 [end_date_ymd] => 2025-04-11 17:49:06 [RateCDR] => 1 ) [2025-04-11 17: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-04-11 14:49:06' and `end` < '2025-04-11 17: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-04-11 17:49:20] Production.INFO: count ==3866 [2025-04-11 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:49:06 - End Time 2025-04-11 17:49:06 [2025-04-11 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885859', 'tblTempUsageDetail_20' ) start [2025-04-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885859', 'tblTempUsageDetail_20' ) end [2025-04-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885859', 'tblTempVendorCDR_20' ) start [2025-04-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885859', 'tblTempVendorCDR_20' ) end [2025-04-11 17:49:21] Production.INFO: ProcessCDR(1,14885859,1,1,2) [2025-04-11 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885859', 'tblTempUsageDetail_20' ) start [2025-04-11 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885859', 'tblTempUsageDetail_20' ) end [2025-04-11 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:49:26] Production.INFO: ==1739== Releasing lock... [2025-04-11 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:49:26] Production.INFO: 57.5 MB #Memory Used# [2025-04-11 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:50:06 [end_date_ymd] => 2025-04-11 17:50:06 [RateCDR] => 1 ) [2025-04-11 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:50:06' and `end` < '2025-04-11 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 17:50:19] Production.INFO: count ==3866 [2025-04-11 17:50:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:50:06 - End Time 2025-04-11 17:50:06 [2025-04-11 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885864', 'tblTempUsageDetail_20' ) start [2025-04-11 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885864', 'tblTempUsageDetail_20' ) end [2025-04-11 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885864', 'tblTempVendorCDR_20' ) start [2025-04-11 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885864', 'tblTempVendorCDR_20' ) end [2025-04-11 17:50:20] Production.INFO: ProcessCDR(1,14885864,1,1,2) [2025-04-11 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885864', 'tblTempUsageDetail_20' ) start [2025-04-11 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885864', 'tblTempUsageDetail_20' ) end [2025-04-11 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:50:25] Production.INFO: ==1812== Releasing lock... [2025-04-11 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:50:25] Production.INFO: 57 MB #Memory Used# [2025-04-11 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:51:05 [end_date_ymd] => 2025-04-11 17:51:05 [RateCDR] => 1 ) [2025-04-11 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 14:51:05' and `end` < '2025-04-11 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-04-11 17:51:19] Production.INFO: count ==3814 [2025-04-11 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:51:05 - End Time 2025-04-11 17:51:05 [2025-04-11 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885870', 'tblTempUsageDetail_20' ) start [2025-04-11 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885870', 'tblTempUsageDetail_20' ) end [2025-04-11 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885870', 'tblTempVendorCDR_20' ) start [2025-04-11 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885870', 'tblTempVendorCDR_20' ) end [2025-04-11 17:51:20] Production.INFO: ProcessCDR(1,14885870,1,1,2) [2025-04-11 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885870', 'tblTempUsageDetail_20' ) start [2025-04-11 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885870', 'tblTempUsageDetail_20' ) end [2025-04-11 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:51:24] Production.INFO: ==1887== Releasing lock... [2025-04-11 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:51:24] Production.INFO: 56.75 MB #Memory Used# [2025-04-11 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:52:05 [end_date_ymd] => 2025-04-11 17:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:52:05' and `end` < '2025-04-11 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-04-11 17:52:18] Production.INFO: count ==3778 [2025-04-11 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:52:05 - End Time 2025-04-11 17:52:05 [2025-04-11 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885875', 'tblTempUsageDetail_20' ) start [2025-04-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885875', 'tblTempUsageDetail_20' ) end [2025-04-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885875', 'tblTempVendorCDR_20' ) start [2025-04-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885875', 'tblTempVendorCDR_20' ) end [2025-04-11 17:52:20] Production.INFO: ProcessCDR(1,14885875,1,1,2) [2025-04-11 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885875', 'tblTempUsageDetail_20' ) start [2025-04-11 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885875', 'tblTempUsageDetail_20' ) end [2025-04-11 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:52:25] Production.INFO: ==1957== Releasing lock... [2025-04-11 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:52:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-11 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:53:05 [end_date_ymd] => 2025-04-11 17:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:53:05' and `end` < '2025-04-11 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-04-11 17:53:19] Production.INFO: count ==3780 [2025-04-11 17:53:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:53:05 - End Time 2025-04-11 17:53:05 [2025-04-11 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885880', 'tblTempUsageDetail_20' ) start [2025-04-11 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885880', 'tblTempUsageDetail_20' ) end [2025-04-11 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885880', 'tblTempVendorCDR_20' ) start [2025-04-11 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885880', 'tblTempVendorCDR_20' ) end [2025-04-11 17:53:20] Production.INFO: ProcessCDR(1,14885880,1,1,2) [2025-04-11 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885880', 'tblTempUsageDetail_20' ) start [2025-04-11 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885880', 'tblTempUsageDetail_20' ) end [2025-04-11 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:53:24] Production.INFO: ==2034== Releasing lock... [2025-04-11 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:53:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-11 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:54:05 [end_date_ymd] => 2025-04-11 17:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:54:05' and `end` < '2025-04-11 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-04-11 17:54:18] Production.INFO: count ==3764 [2025-04-11 17:54:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:54:05 - End Time 2025-04-11 17:54:05 [2025-04-11 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885885', 'tblTempUsageDetail_20' ) start [2025-04-11 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885885', 'tblTempUsageDetail_20' ) end [2025-04-11 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885885', 'tblTempVendorCDR_20' ) start [2025-04-11 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885885', 'tblTempVendorCDR_20' ) end [2025-04-11 17:54:20] Production.INFO: ProcessCDR(1,14885885,1,1,2) [2025-04-11 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885885', 'tblTempUsageDetail_20' ) start [2025-04-11 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885885', 'tblTempUsageDetail_20' ) end [2025-04-11 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:54:23] Production.INFO: ==2104== Releasing lock... [2025-04-11 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:54:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-11 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:55:05 [end_date_ymd] => 2025-04-11 17:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:55:05' and `end` < '2025-04-11 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-04-11 17:55:19] Production.INFO: count ==3746 [2025-04-11 17:55:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:55:05 - End Time 2025-04-11 17:55:05 [2025-04-11 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885890', 'tblTempUsageDetail_20' ) start [2025-04-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885890', 'tblTempUsageDetail_20' ) end [2025-04-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885890', 'tblTempVendorCDR_20' ) start [2025-04-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885890', 'tblTempVendorCDR_20' ) end [2025-04-11 17:55:20] Production.INFO: ProcessCDR(1,14885890,1,1,2) [2025-04-11 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885890', 'tblTempUsageDetail_20' ) start [2025-04-11 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885890', 'tblTempUsageDetail_20' ) end [2025-04-11 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:55:26] Production.INFO: ==2176== Releasing lock... [2025-04-11 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:55:26] Production.INFO: 56 MB #Memory Used# [2025-04-11 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:56:05 [end_date_ymd] => 2025-04-11 17:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:56:05' and `end` < '2025-04-11 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-04-11 17:56:18] Production.INFO: count ==3736 [2025-04-11 17:56:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:56:05 - End Time 2025-04-11 17:56:05 [2025-04-11 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885895', 'tblTempUsageDetail_20' ) start [2025-04-11 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885895', 'tblTempUsageDetail_20' ) end [2025-04-11 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885895', 'tblTempVendorCDR_20' ) start [2025-04-11 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885895', 'tblTempVendorCDR_20' ) end [2025-04-11 17:56:20] Production.INFO: ProcessCDR(1,14885895,1,1,2) [2025-04-11 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885895', 'tblTempUsageDetail_20' ) start [2025-04-11 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885895', 'tblTempUsageDetail_20' ) end [2025-04-11 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:56:25] Production.INFO: ==2289== Releasing lock... [2025-04-11 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:56:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-11 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:57:05 [end_date_ymd] => 2025-04-11 17:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:57:05' and `end` < '2025-04-11 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-04-11 17:57:19] Production.INFO: count ==3722 [2025-04-11 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:57:05 - End Time 2025-04-11 17:57:05 [2025-04-11 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885900', 'tblTempUsageDetail_20' ) start [2025-04-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885900', 'tblTempUsageDetail_20' ) end [2025-04-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885900', 'tblTempVendorCDR_20' ) start [2025-04-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885900', 'tblTempVendorCDR_20' ) end [2025-04-11 17:57:20] Production.INFO: ProcessCDR(1,14885900,1,1,2) [2025-04-11 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885900', 'tblTempUsageDetail_20' ) start [2025-04-11 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885900', 'tblTempUsageDetail_20' ) end [2025-04-11 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:57:25] Production.INFO: ==2362== Releasing lock... [2025-04-11 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:57:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-11 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:58:06 [end_date_ymd] => 2025-04-11 17:58:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:58:06' and `end` < '2025-04-11 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-04-11 17:58:20] Production.INFO: count ==3718 [2025-04-11 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-11 14:58:06 - End Time 2025-04-11 17:58:06 [2025-04-11 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885905', 'tblTempUsageDetail_20' ) start [2025-04-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885905', 'tblTempUsageDetail_20' ) end [2025-04-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885905', 'tblTempVendorCDR_20' ) start [2025-04-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885905', 'tblTempVendorCDR_20' ) end [2025-04-11 17:58:21] Production.INFO: ProcessCDR(1,14885905,1,1,2) [2025-04-11 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885905', 'tblTempUsageDetail_20' ) start [2025-04-11 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885905', 'tblTempUsageDetail_20' ) end [2025-04-11 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:58:26] Production.INFO: ==2434== Releasing lock... [2025-04-11 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:58:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-11 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 14:59:05 [end_date_ymd] => 2025-04-11 17:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 14:59:05' and `end` < '2025-04-11 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-04-11 17:59:19] Production.INFO: count ==3701 [2025-04-11 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-11 14:59:05 - End Time 2025-04-11 17:59:05 [2025-04-11 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885910', 'tblTempUsageDetail_20' ) start [2025-04-11 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885910', 'tblTempUsageDetail_20' ) end [2025-04-11 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885910', 'tblTempVendorCDR_20' ) start [2025-04-11 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885910', 'tblTempVendorCDR_20' ) end [2025-04-11 17:59:20] Production.INFO: ProcessCDR(1,14885910,1,1,2) [2025-04-11 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885910', 'tblTempUsageDetail_20' ) start [2025-04-11 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885910', 'tblTempUsageDetail_20' ) end [2025-04-11 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 17:59:25] Production.INFO: ==2510== Releasing lock... [2025-04-11 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 17:59:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-11 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:00:06 [end_date_ymd] => 2025-04-11 18:00:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:00:06' and `end` < '2025-04-11 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:00:20] Production.INFO: count ==3676 [2025-04-11 18:00:21] Production.ERROR: pbx CDR StartTime 2025-04-11 15:00:06 - End Time 2025-04-11 18:00:06 [2025-04-11 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885916', 'tblTempUsageDetail_20' ) start [2025-04-11 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885916', 'tblTempUsageDetail_20' ) end [2025-04-11 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885916', 'tblTempVendorCDR_20' ) start [2025-04-11 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885916', 'tblTempVendorCDR_20' ) end [2025-04-11 18:00:21] Production.INFO: ProcessCDR(1,14885916,1,1,2) [2025-04-11 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885916', 'tblTempUsageDetail_20' ) start [2025-04-11 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885916', 'tblTempUsageDetail_20' ) end [2025-04-11 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:00:26] Production.INFO: ==2582== Releasing lock... [2025-04-11 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:00:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-11 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:01:05 [end_date_ymd] => 2025-04-11 18:01:05 [RateCDR] => 1 ) [2025-04-11 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:01:05' and `end` < '2025-04-11 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:01:19] Production.INFO: count ==3662 [2025-04-11 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:01:05 - End Time 2025-04-11 18:01:05 [2025-04-11 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885921', 'tblTempUsageDetail_20' ) start [2025-04-11 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885921', 'tblTempUsageDetail_20' ) end [2025-04-11 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885921', 'tblTempVendorCDR_20' ) start [2025-04-11 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885921', 'tblTempVendorCDR_20' ) end [2025-04-11 18:01:20] Production.INFO: ProcessCDR(1,14885921,1,1,2) [2025-04-11 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885921', 'tblTempUsageDetail_20' ) start [2025-04-11 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885921', 'tblTempUsageDetail_20' ) end [2025-04-11 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:01:25] Production.INFO: ==2668== Releasing lock... [2025-04-11 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:01:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:02:06 [end_date_ymd] => 2025-04-11 18:02:06 [RateCDR] => 1 ) [2025-04-11 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:02:06' and `end` < '2025-04-11 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:02:19] Production.INFO: count ==3672 [2025-04-11 18:02:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:02:06 - End Time 2025-04-11 18:02:06 [2025-04-11 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885926', 'tblTempUsageDetail_20' ) start [2025-04-11 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885926', 'tblTempUsageDetail_20' ) end [2025-04-11 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885926', 'tblTempVendorCDR_20' ) start [2025-04-11 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885926', 'tblTempVendorCDR_20' ) end [2025-04-11 18:02:21] Production.INFO: ProcessCDR(1,14885926,1,1,2) [2025-04-11 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885926', 'tblTempUsageDetail_20' ) start [2025-04-11 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885926', 'tblTempUsageDetail_20' ) end [2025-04-11 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:02:26] Production.INFO: ==2740== Releasing lock... [2025-04-11 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:02:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-11 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:03:05 [end_date_ymd] => 2025-04-11 18:03:05 [RateCDR] => 1 ) [2025-04-11 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:03:05' and `end` < '2025-04-11 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:03:19] Production.INFO: count ==3670 [2025-04-11 18:03:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:03:05 - End Time 2025-04-11 18:03:05 [2025-04-11 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885931', 'tblTempUsageDetail_20' ) start [2025-04-11 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885931', 'tblTempUsageDetail_20' ) end [2025-04-11 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885931', 'tblTempVendorCDR_20' ) start [2025-04-11 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885931', 'tblTempVendorCDR_20' ) end [2025-04-11 18:03:20] Production.INFO: ProcessCDR(1,14885931,1,1,2) [2025-04-11 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885931', 'tblTempUsageDetail_20' ) start [2025-04-11 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885931', 'tblTempUsageDetail_20' ) end [2025-04-11 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:03:25] Production.INFO: ==2811== Releasing lock... [2025-04-11 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:03:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:04:05 [end_date_ymd] => 2025-04-11 18:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:04:05' and `end` < '2025-04-11 18: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-04-11 18:04:19] Production.INFO: count ==3657 [2025-04-11 18:04:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:04:05 - End Time 2025-04-11 18:04:05 [2025-04-11 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885936', 'tblTempUsageDetail_20' ) start [2025-04-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885936', 'tblTempUsageDetail_20' ) end [2025-04-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885936', 'tblTempVendorCDR_20' ) start [2025-04-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885936', 'tblTempVendorCDR_20' ) end [2025-04-11 18:04:20] Production.INFO: ProcessCDR(1,14885936,1,1,2) [2025-04-11 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885936', 'tblTempUsageDetail_20' ) start [2025-04-11 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885936', 'tblTempUsageDetail_20' ) end [2025-04-11 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:04:25] Production.INFO: ==2881== Releasing lock... [2025-04-11 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:04:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:05:04 [end_date_ymd] => 2025-04-11 18:05:04 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:05:04' and `end` < '2025-04-11 18:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:05:18] Production.INFO: count ==3653 [2025-04-11 18:05:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:05:04 - End Time 2025-04-11 18:05:04 [2025-04-11 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885941', 'tblTempUsageDetail_20' ) start [2025-04-11 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885941', 'tblTempUsageDetail_20' ) end [2025-04-11 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885941', 'tblTempVendorCDR_20' ) start [2025-04-11 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885941', 'tblTempVendorCDR_20' ) end [2025-04-11 18:05:19] Production.INFO: ProcessCDR(1,14885941,1,1,2) [2025-04-11 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885941', 'tblTempUsageDetail_20' ) start [2025-04-11 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885941', 'tblTempUsageDetail_20' ) end [2025-04-11 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:05:25] Production.INFO: ==2956== Releasing lock... [2025-04-11 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:05:25] Production.INFO: 56 MB #Memory Used# [2025-04-11 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:06:05 [end_date_ymd] => 2025-04-11 18:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:06:05' and `end` < '2025-04-11 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-04-11 18:06:19] Production.INFO: count ==3638 [2025-04-11 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:06:05 - End Time 2025-04-11 18:06:05 [2025-04-11 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885946', 'tblTempUsageDetail_20' ) start [2025-04-11 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885946', 'tblTempUsageDetail_20' ) end [2025-04-11 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885946', 'tblTempVendorCDR_20' ) start [2025-04-11 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885946', 'tblTempVendorCDR_20' ) end [2025-04-11 18:06:20] Production.INFO: ProcessCDR(1,14885946,1,1,2) [2025-04-11 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885946', 'tblTempUsageDetail_20' ) start [2025-04-11 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885946', 'tblTempUsageDetail_20' ) end [2025-04-11 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:06:24] Production.INFO: ==3026== Releasing lock... [2025-04-11 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:06:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:07:04 [end_date_ymd] => 2025-04-11 18:07:04 [RateCDR] => 1 ) [2025-04-11 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:07:04' and `end` < '2025-04-11 18:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:07:18] Production.INFO: count ==3619 [2025-04-11 18:07:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:07:04 - End Time 2025-04-11 18:07:04 [2025-04-11 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885951', 'tblTempUsageDetail_20' ) start [2025-04-11 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885951', 'tblTempUsageDetail_20' ) end [2025-04-11 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885951', 'tblTempVendorCDR_20' ) start [2025-04-11 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885951', 'tblTempVendorCDR_20' ) end [2025-04-11 18:07:19] Production.INFO: ProcessCDR(1,14885951,1,1,2) [2025-04-11 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885951', 'tblTempUsageDetail_20' ) start [2025-04-11 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885951', 'tblTempUsageDetail_20' ) end [2025-04-11 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:07:25] Production.INFO: ==3098== Releasing lock... [2025-04-11 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:07:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:08:05 [end_date_ymd] => 2025-04-11 18:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:08:05' and `end` < '2025-04-11 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-04-11 18:08:19] Production.INFO: count ==3610 [2025-04-11 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:08:05 - End Time 2025-04-11 18:08:05 [2025-04-11 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885956', 'tblTempUsageDetail_20' ) start [2025-04-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885956', 'tblTempUsageDetail_20' ) end [2025-04-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885956', 'tblTempVendorCDR_20' ) start [2025-04-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885956', 'tblTempVendorCDR_20' ) end [2025-04-11 18:08:20] Production.INFO: ProcessCDR(1,14885956,1,1,2) [2025-04-11 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885956', 'tblTempUsageDetail_20' ) start [2025-04-11 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885956', 'tblTempUsageDetail_20' ) end [2025-04-11 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:08:24] Production.INFO: ==3175== Releasing lock... [2025-04-11 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:08:24] Production.INFO: 56 MB #Memory Used# [2025-04-11 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:09:05 [end_date_ymd] => 2025-04-11 18:09:05 [RateCDR] => 1 ) [2025-04-11 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:09:05' and `end` < '2025-04-11 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:09:19] Production.INFO: count ==3605 [2025-04-11 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:09:05 - End Time 2025-04-11 18:09:05 [2025-04-11 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885961', 'tblTempUsageDetail_20' ) start [2025-04-11 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885961', 'tblTempUsageDetail_20' ) end [2025-04-11 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885961', 'tblTempVendorCDR_20' ) start [2025-04-11 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885961', 'tblTempVendorCDR_20' ) end [2025-04-11 18:09:20] Production.INFO: ProcessCDR(1,14885961,1,1,2) [2025-04-11 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885961', 'tblTempUsageDetail_20' ) start [2025-04-11 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885961', 'tblTempUsageDetail_20' ) end [2025-04-11 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:09:25] Production.INFO: ==3246== Releasing lock... [2025-04-11 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:09:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:10:06 [end_date_ymd] => 2025-04-11 18:10:06 [RateCDR] => 1 ) [2025-04-11 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:10:06' and `end` < '2025-04-11 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:10:19] Production.INFO: count ==3591 [2025-04-11 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:10:06 - End Time 2025-04-11 18:10:06 [2025-04-11 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885967', 'tblTempUsageDetail_20' ) start [2025-04-11 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885967', 'tblTempUsageDetail_20' ) end [2025-04-11 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885967', 'tblTempVendorCDR_20' ) start [2025-04-11 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885967', 'tblTempVendorCDR_20' ) end [2025-04-11 18:10:21] Production.INFO: ProcessCDR(1,14885967,1,1,2) [2025-04-11 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885967', 'tblTempUsageDetail_20' ) start [2025-04-11 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885967', 'tblTempUsageDetail_20' ) end [2025-04-11 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:10:26] Production.INFO: ==3319== Releasing lock... [2025-04-11 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:10:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-11 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:11:05 [end_date_ymd] => 2025-04-11 18:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:11:05' and `end` < '2025-04-11 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-04-11 18:11:19] Production.INFO: count ==3582 [2025-04-11 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:11:05 - End Time 2025-04-11 18:11:05 [2025-04-11 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885972', 'tblTempUsageDetail_20' ) start [2025-04-11 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885972', 'tblTempUsageDetail_20' ) end [2025-04-11 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885972', 'tblTempVendorCDR_20' ) start [2025-04-11 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885972', 'tblTempVendorCDR_20' ) end [2025-04-11 18:11:20] Production.INFO: ProcessCDR(1,14885972,1,1,2) [2025-04-11 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885972', 'tblTempUsageDetail_20' ) start [2025-04-11 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885972', 'tblTempUsageDetail_20' ) end [2025-04-11 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:11:25] Production.INFO: ==3431== Releasing lock... [2025-04-11 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:11:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-11 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:12:05 [end_date_ymd] => 2025-04-11 18:12:05 [RateCDR] => 1 ) [2025-04-11 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:12:05' and `end` < '2025-04-11 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:12:18] Production.INFO: count ==3577 [2025-04-11 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:12:05 - End Time 2025-04-11 18:12:05 [2025-04-11 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885977', 'tblTempUsageDetail_20' ) start [2025-04-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885977', 'tblTempUsageDetail_20' ) end [2025-04-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885977', 'tblTempVendorCDR_20' ) start [2025-04-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885977', 'tblTempVendorCDR_20' ) end [2025-04-11 18:12:19] Production.INFO: ProcessCDR(1,14885977,1,1,2) [2025-04-11 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885977', 'tblTempUsageDetail_20' ) start [2025-04-11 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885977', 'tblTempUsageDetail_20' ) end [2025-04-11 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:12:24] Production.INFO: ==3501== Releasing lock... [2025-04-11 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:12:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:13:05 [end_date_ymd] => 2025-04-11 18:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:13:05' and `end` < '2025-04-11 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-04-11 18:13:19] Production.INFO: count ==3576 [2025-04-11 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:13:05 - End Time 2025-04-11 18:13:05 [2025-04-11 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885982', 'tblTempUsageDetail_20' ) start [2025-04-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885982', 'tblTempUsageDetail_20' ) end [2025-04-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885982', 'tblTempVendorCDR_20' ) start [2025-04-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885982', 'tblTempVendorCDR_20' ) end [2025-04-11 18:13:20] Production.INFO: ProcessCDR(1,14885982,1,1,2) [2025-04-11 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885982', 'tblTempUsageDetail_20' ) start [2025-04-11 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885982', 'tblTempUsageDetail_20' ) end [2025-04-11 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:13:24] Production.INFO: ==3577== Releasing lock... [2025-04-11 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:13:24] Production.INFO: 56 MB #Memory Used# [2025-04-11 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:14:05 [end_date_ymd] => 2025-04-11 18:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:14:05' and `end` < '2025-04-11 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-04-11 18:14:18] Production.INFO: count ==3573 [2025-04-11 18:14:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:14:05 - End Time 2025-04-11 18:14:05 [2025-04-11 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885987', 'tblTempUsageDetail_20' ) start [2025-04-11 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885987', 'tblTempUsageDetail_20' ) end [2025-04-11 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885987', 'tblTempVendorCDR_20' ) start [2025-04-11 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885987', 'tblTempVendorCDR_20' ) end [2025-04-11 18:14:20] Production.INFO: ProcessCDR(1,14885987,1,1,2) [2025-04-11 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885987', 'tblTempUsageDetail_20' ) start [2025-04-11 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885987', 'tblTempUsageDetail_20' ) end [2025-04-11 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:14:25] Production.INFO: ==3653== Releasing lock... [2025-04-11 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:14:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:15:05 [end_date_ymd] => 2025-04-11 18:15:05 [RateCDR] => 1 ) [2025-04-11 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:15:05' and `end` < '2025-04-11 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:15:19] Production.INFO: count ==3574 [2025-04-11 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:15:05 - End Time 2025-04-11 18:15:05 [2025-04-11 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885992', 'tblTempUsageDetail_20' ) start [2025-04-11 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885992', 'tblTempUsageDetail_20' ) end [2025-04-11 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885992', 'tblTempVendorCDR_20' ) start [2025-04-11 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885992', 'tblTempVendorCDR_20' ) end [2025-04-11 18:15:20] Production.INFO: ProcessCDR(1,14885992,1,1,2) [2025-04-11 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885992', 'tblTempUsageDetail_20' ) start [2025-04-11 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885992', 'tblTempUsageDetail_20' ) end [2025-04-11 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:15:25] Production.INFO: ==3725== Releasing lock... [2025-04-11 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:15:25] Production.INFO: 55 MB #Memory Used# [2025-04-11 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:16:05 [end_date_ymd] => 2025-04-11 18:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:16:05' and `end` < '2025-04-11 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-04-11 18:16:19] Production.INFO: count ==3551 [2025-04-11 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:16:05 - End Time 2025-04-11 18:16:05 [2025-04-11 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885997', 'tblTempUsageDetail_20' ) start [2025-04-11 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14885997', 'tblTempUsageDetail_20' ) end [2025-04-11 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885997', 'tblTempVendorCDR_20' ) start [2025-04-11 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14885997', 'tblTempVendorCDR_20' ) end [2025-04-11 18:16:20] Production.INFO: ProcessCDR(1,14885997,1,1,2) [2025-04-11 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14885997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14885997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14885997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14885997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885997', 'tblTempUsageDetail_20' ) start [2025-04-11 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14885997', 'tblTempUsageDetail_20' ) end [2025-04-11 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:16:25] Production.INFO: ==3797== Releasing lock... [2025-04-11 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:16:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-11 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:17:06 [end_date_ymd] => 2025-04-11 18:17:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:17:06' and `end` < '2025-04-11 18: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-04-11 18:17:19] Production.INFO: count ==3547 [2025-04-11 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:17:06 - End Time 2025-04-11 18:17:06 [2025-04-11 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886002', 'tblTempUsageDetail_20' ) start [2025-04-11 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886002', 'tblTempUsageDetail_20' ) end [2025-04-11 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886002', 'tblTempVendorCDR_20' ) start [2025-04-11 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886002', 'tblTempVendorCDR_20' ) end [2025-04-11 18:17:20] Production.INFO: ProcessCDR(1,14886002,1,1,2) [2025-04-11 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886002', 'tblTempUsageDetail_20' ) start [2025-04-11 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886002', 'tblTempUsageDetail_20' ) end [2025-04-11 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:17:26] Production.INFO: ==3867== Releasing lock... [2025-04-11 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:17:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-11 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:18:06 [end_date_ymd] => 2025-04-11 18:18:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:18:06' and `end` < '2025-04-11 18: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-04-11 18:18:20] Production.INFO: count ==3542 [2025-04-11 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-11 15:18:06 - End Time 2025-04-11 18:18:06 [2025-04-11 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886007', 'tblTempUsageDetail_20' ) start [2025-04-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886007', 'tblTempUsageDetail_20' ) end [2025-04-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886007', 'tblTempVendorCDR_20' ) start [2025-04-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886007', 'tblTempVendorCDR_20' ) end [2025-04-11 18:18:21] Production.INFO: ProcessCDR(1,14886007,1,1,2) [2025-04-11 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886007', 'tblTempUsageDetail_20' ) start [2025-04-11 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886007', 'tblTempUsageDetail_20' ) end [2025-04-11 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:18:25] Production.INFO: ==3941== Releasing lock... [2025-04-11 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:18:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:19:06 [end_date_ymd] => 2025-04-11 18:19:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:19:06' and `end` < '2025-04-11 18: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-04-11 18:19:19] Production.INFO: count ==3548 [2025-04-11 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:19:06 - End Time 2025-04-11 18:19:06 [2025-04-11 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886012', 'tblTempUsageDetail_20' ) start [2025-04-11 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886012', 'tblTempUsageDetail_20' ) end [2025-04-11 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886012', 'tblTempVendorCDR_20' ) start [2025-04-11 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886012', 'tblTempVendorCDR_20' ) end [2025-04-11 18:19:20] Production.INFO: ProcessCDR(1,14886012,1,1,2) [2025-04-11 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886012', 'tblTempUsageDetail_20' ) start [2025-04-11 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886012', 'tblTempUsageDetail_20' ) end [2025-04-11 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:19:26] Production.INFO: ==4026== Releasing lock... [2025-04-11 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:19:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-11 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:20:06 [end_date_ymd] => 2025-04-11 18:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:20:06' and `end` < '2025-04-11 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-04-11 18:20:19] Production.INFO: count ==3542 [2025-04-11 18:20:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:20:06 - End Time 2025-04-11 18:20:06 [2025-04-11 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886017', 'tblTempUsageDetail_20' ) start [2025-04-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886017', 'tblTempUsageDetail_20' ) end [2025-04-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886017', 'tblTempVendorCDR_20' ) start [2025-04-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886017', 'tblTempVendorCDR_20' ) end [2025-04-11 18:20:21] Production.INFO: ProcessCDR(1,14886017,1,1,2) [2025-04-11 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886017', 'tblTempUsageDetail_20' ) start [2025-04-11 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886017', 'tblTempUsageDetail_20' ) end [2025-04-11 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:20:26] Production.INFO: ==4118== Releasing lock... [2025-04-11 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:20:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-11 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:21:06 [end_date_ymd] => 2025-04-11 18:21:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:21:06' and `end` < '2025-04-11 18: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-04-11 18:21:19] Production.INFO: count ==3536 [2025-04-11 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:21:06 - End Time 2025-04-11 18:21:06 [2025-04-11 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886023', 'tblTempUsageDetail_20' ) start [2025-04-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886023', 'tblTempUsageDetail_20' ) end [2025-04-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886023', 'tblTempVendorCDR_20' ) start [2025-04-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886023', 'tblTempVendorCDR_20' ) end [2025-04-11 18:21:20] Production.INFO: ProcessCDR(1,14886023,1,1,2) [2025-04-11 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886023', 'tblTempUsageDetail_20' ) start [2025-04-11 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886023', 'tblTempUsageDetail_20' ) end [2025-04-11 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:21:26] Production.INFO: ==4204== Releasing lock... [2025-04-11 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:21:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:22:06 [end_date_ymd] => 2025-04-11 18:22:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:22:06' and `end` < '2025-04-11 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-04-11 18:22:20] Production.INFO: count ==3530 [2025-04-11 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-11 15:22:06 - End Time 2025-04-11 18:22:06 [2025-04-11 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886028', 'tblTempUsageDetail_20' ) start [2025-04-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886028', 'tblTempUsageDetail_20' ) end [2025-04-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886028', 'tblTempVendorCDR_20' ) start [2025-04-11 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886028', 'tblTempVendorCDR_20' ) end [2025-04-11 18:22:21] Production.INFO: ProcessCDR(1,14886028,1,1,2) [2025-04-11 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886028', 'tblTempUsageDetail_20' ) start [2025-04-11 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886028', 'tblTempUsageDetail_20' ) end [2025-04-11 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:22:27] Production.INFO: ==4282== Releasing lock... [2025-04-11 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:22:27] Production.INFO: 55.25 MB #Memory Used# [2025-04-11 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:23:05 [end_date_ymd] => 2025-04-11 18:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:23:05' and `end` < '2025-04-11 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-04-11 18:23:19] Production.INFO: count ==3523 [2025-04-11 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:23:05 - End Time 2025-04-11 18:23:05 [2025-04-11 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886033', 'tblTempUsageDetail_20' ) start [2025-04-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886033', 'tblTempUsageDetail_20' ) end [2025-04-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886033', 'tblTempVendorCDR_20' ) start [2025-04-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886033', 'tblTempVendorCDR_20' ) end [2025-04-11 18:23:20] Production.INFO: ProcessCDR(1,14886033,1,1,2) [2025-04-11 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886033', 'tblTempUsageDetail_20' ) start [2025-04-11 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886033', 'tblTempUsageDetail_20' ) end [2025-04-11 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:23:24] Production.INFO: ==4367== Releasing lock... [2025-04-11 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:23:24] Production.INFO: 55 MB #Memory Used# [2025-04-11 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:24:06 [end_date_ymd] => 2025-04-11 18:24:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:24:06' and `end` < '2025-04-11 18: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-04-11 18:24:20] Production.INFO: count ==3514 [2025-04-11 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-11 15:24:06 - End Time 2025-04-11 18:24:06 [2025-04-11 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886038', 'tblTempUsageDetail_20' ) start [2025-04-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886038', 'tblTempUsageDetail_20' ) end [2025-04-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886038', 'tblTempVendorCDR_20' ) start [2025-04-11 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886038', 'tblTempVendorCDR_20' ) end [2025-04-11 18:24:21] Production.INFO: ProcessCDR(1,14886038,1,1,2) [2025-04-11 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886038', 'tblTempUsageDetail_20' ) start [2025-04-11 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886038', 'tblTempUsageDetail_20' ) end [2025-04-11 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:24:25] Production.INFO: ==4446== Releasing lock... [2025-04-11 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:24:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-11 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:25:05 [end_date_ymd] => 2025-04-11 18:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:25:05' and `end` < '2025-04-11 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-04-11 18:25:19] Production.INFO: count ==3507 [2025-04-11 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:25:05 - End Time 2025-04-11 18:25:05 [2025-04-11 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886043', 'tblTempUsageDetail_20' ) start [2025-04-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886043', 'tblTempUsageDetail_20' ) end [2025-04-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886043', 'tblTempVendorCDR_20' ) start [2025-04-11 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886043', 'tblTempVendorCDR_20' ) end [2025-04-11 18:25:20] Production.INFO: ProcessCDR(1,14886043,1,1,2) [2025-04-11 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886043', 'tblTempUsageDetail_20' ) start [2025-04-11 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886043', 'tblTempUsageDetail_20' ) end [2025-04-11 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:25:24] Production.INFO: ==4525== Releasing lock... [2025-04-11 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:25:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-11 18:26:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:26:18 [end_date_ymd] => 2025-04-11 18:26:18 [RateCDR] => 1 ) [2025-04-11 18:26:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:26:18' and `end` < '2025-04-11 18:26:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:26:31] Production.INFO: count ==3496 [2025-04-11 18:26:56] Production.ERROR: pbx CDR StartTime 2025-04-11 15:26:18 - End Time 2025-04-11 18:26:18 [2025-04-11 18:26:56] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:26:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886048', 'tblTempUsageDetail_20' ) start [2025-04-11 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886048', 'tblTempUsageDetail_20' ) end [2025-04-11 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886048', 'tblTempVendorCDR_20' ) start [2025-04-11 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886048', 'tblTempVendorCDR_20' ) end [2025-04-11 18:27:20] Production.INFO: ProcessCDR(1,14886048,1,1,2) [2025-04-11 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:28:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:28:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886048', 'tblTempUsageDetail_20' ) start [2025-04-11 18:28:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886048', 'tblTempUsageDetail_20' ) end [2025-04-11 18:28:08] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:28:08] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:28:16] Production.INFO: ==4612== Releasing lock... [2025-04-11 18:28:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:28:16] Production.INFO: 54 MB #Memory Used# [2025-04-11 18:29:17] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:29:17 [end_date_ymd] => 2025-04-11 18:29:17 [RateCDR] => 1 ) [2025-04-11 18:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:29:17' and `end` < '2025-04-11 18:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:29:30] Production.INFO: count ==3454 [2025-04-11 18:29:50] Production.ERROR: pbx CDR StartTime 2025-04-11 15:29:17 - End Time 2025-04-11 18:29:17 [2025-04-11 18:29:50] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:29:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886059', 'tblTempUsageDetail_20' ) start [2025-04-11 18:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886059', 'tblTempUsageDetail_20' ) end [2025-04-11 18:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886059', 'tblTempVendorCDR_20' ) start [2025-04-11 18:29:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886059', 'tblTempVendorCDR_20' ) end [2025-04-11 18:29:57] Production.INFO: ProcessCDR(1,14886059,1,1,2) [2025-04-11 18:29:57] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:30:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:30:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:30:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:30:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886059', 'tblTempUsageDetail_20' ) start [2025-04-11 18:31:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886059', 'tblTempUsageDetail_20' ) end [2025-04-11 18:31:06] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:31:07] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:31:12] Production.INFO: ==4850== Releasing lock... [2025-04-11 18:31:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:31:12] Production.INFO: 54 MB #Memory Used# [2025-04-11 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:32:06 [end_date_ymd] => 2025-04-11 18:32:06 [RateCDR] => 1 ) [2025-04-11 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:32:06' and `end` < '2025-04-11 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:32:19] Production.INFO: count ==3391 [2025-04-11 18:32:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:32:06 - End Time 2025-04-11 18:32:06 [2025-04-11 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886071', 'tblTempUsageDetail_20' ) start [2025-04-11 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886071', 'tblTempUsageDetail_20' ) end [2025-04-11 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886071', 'tblTempVendorCDR_20' ) start [2025-04-11 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886071', 'tblTempVendorCDR_20' ) end [2025-04-11 18:32:20] Production.INFO: ProcessCDR(1,14886071,1,1,2) [2025-04-11 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886071', 'tblTempUsageDetail_20' ) start [2025-04-11 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886071', 'tblTempUsageDetail_20' ) end [2025-04-11 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:32:25] Production.INFO: ==5057== Releasing lock... [2025-04-11 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:32:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-11 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:33:05 [end_date_ymd] => 2025-04-11 18:33:05 [RateCDR] => 1 ) [2025-04-11 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:33:05' and `end` < '2025-04-11 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:33:18] Production.INFO: count ==3380 [2025-04-11 18:33:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:33:05 - End Time 2025-04-11 18:33:05 [2025-04-11 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886076', 'tblTempUsageDetail_20' ) start [2025-04-11 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886076', 'tblTempUsageDetail_20' ) end [2025-04-11 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886076', 'tblTempVendorCDR_20' ) start [2025-04-11 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886076', 'tblTempVendorCDR_20' ) end [2025-04-11 18:33:19] Production.INFO: ProcessCDR(1,14886076,1,1,2) [2025-04-11 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886076', 'tblTempUsageDetail_20' ) start [2025-04-11 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886076', 'tblTempUsageDetail_20' ) end [2025-04-11 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:33:25] Production.INFO: ==5129== Releasing lock... [2025-04-11 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:33:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-11 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:34:05 [end_date_ymd] => 2025-04-11 18:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:34:05' and `end` < '2025-04-11 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-04-11 18:34:18] Production.INFO: count ==3374 [2025-04-11 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:34:05 - End Time 2025-04-11 18:34:05 [2025-04-11 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886081', 'tblTempUsageDetail_20' ) start [2025-04-11 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886081', 'tblTempUsageDetail_20' ) end [2025-04-11 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886081', 'tblTempVendorCDR_20' ) start [2025-04-11 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886081', 'tblTempVendorCDR_20' ) end [2025-04-11 18:34:19] Production.INFO: ProcessCDR(1,14886081,1,1,2) [2025-04-11 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886081', 'tblTempUsageDetail_20' ) start [2025-04-11 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886081', 'tblTempUsageDetail_20' ) end [2025-04-11 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:34:25] Production.INFO: ==5200== Releasing lock... [2025-04-11 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:34:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-11 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:35:05 [end_date_ymd] => 2025-04-11 18:35:05 [RateCDR] => 1 ) [2025-04-11 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:35:05' and `end` < '2025-04-11 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:35:19] Production.INFO: count ==3366 [2025-04-11 18:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:35:05 - End Time 2025-04-11 18:35:05 [2025-04-11 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886086', 'tblTempUsageDetail_20' ) start [2025-04-11 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886086', 'tblTempUsageDetail_20' ) end [2025-04-11 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886086', 'tblTempVendorCDR_20' ) start [2025-04-11 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886086', 'tblTempVendorCDR_20' ) end [2025-04-11 18:35:19] Production.INFO: ProcessCDR(1,14886086,1,1,2) [2025-04-11 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886086', 'tblTempUsageDetail_20' ) start [2025-04-11 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886086', 'tblTempUsageDetail_20' ) end [2025-04-11 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:35:25] Production.INFO: ==5271== Releasing lock... [2025-04-11 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:35:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-11 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:36:05 [end_date_ymd] => 2025-04-11 18:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:36:05' and `end` < '2025-04-11 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-04-11 18:36:18] Production.INFO: count ==3358 [2025-04-11 18:36:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:36:05 - End Time 2025-04-11 18:36:05 [2025-04-11 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886091', 'tblTempUsageDetail_20' ) start [2025-04-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886091', 'tblTempUsageDetail_20' ) end [2025-04-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886091', 'tblTempVendorCDR_20' ) start [2025-04-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886091', 'tblTempVendorCDR_20' ) end [2025-04-11 18:36:19] Production.INFO: ProcessCDR(1,14886091,1,1,2) [2025-04-11 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886091', 'tblTempUsageDetail_20' ) start [2025-04-11 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886091', 'tblTempUsageDetail_20' ) end [2025-04-11 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:36:25] Production.INFO: ==5343== Releasing lock... [2025-04-11 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:36:25] Production.INFO: 53 MB #Memory Used# [2025-04-11 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:37:06 [end_date_ymd] => 2025-04-11 18:37:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:37:06' and `end` < '2025-04-11 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-04-11 18:37:19] Production.INFO: count ==3340 [2025-04-11 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:37:06 - End Time 2025-04-11 18:37:06 [2025-04-11 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886096', 'tblTempUsageDetail_20' ) start [2025-04-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886096', 'tblTempUsageDetail_20' ) end [2025-04-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886096', 'tblTempVendorCDR_20' ) start [2025-04-11 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886096', 'tblTempVendorCDR_20' ) end [2025-04-11 18:37:20] Production.INFO: ProcessCDR(1,14886096,1,1,2) [2025-04-11 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886096', 'tblTempUsageDetail_20' ) start [2025-04-11 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886096', 'tblTempUsageDetail_20' ) end [2025-04-11 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:37:23] Production.INFO: ==5414== Releasing lock... [2025-04-11 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:37:23] Production.INFO: 54 MB #Memory Used# [2025-04-11 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:38:05 [end_date_ymd] => 2025-04-11 18:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:38:05' and `end` < '2025-04-11 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-04-11 18:38:19] Production.INFO: count ==3332 [2025-04-11 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:38:05 - End Time 2025-04-11 18:38:05 [2025-04-11 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886101', 'tblTempUsageDetail_20' ) start [2025-04-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886101', 'tblTempUsageDetail_20' ) end [2025-04-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886101', 'tblTempVendorCDR_20' ) start [2025-04-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886101', 'tblTempVendorCDR_20' ) end [2025-04-11 18:38:20] Production.INFO: ProcessCDR(1,14886101,1,1,2) [2025-04-11 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886101', 'tblTempUsageDetail_20' ) start [2025-04-11 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886101', 'tblTempUsageDetail_20' ) end [2025-04-11 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:38:25] Production.INFO: ==5493== Releasing lock... [2025-04-11 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:38:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:39:05 [end_date_ymd] => 2025-04-11 18:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:39:05' and `end` < '2025-04-11 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-04-11 18:39:19] Production.INFO: count ==3324 [2025-04-11 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:39:05 - End Time 2025-04-11 18:39:05 [2025-04-11 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886106', 'tblTempUsageDetail_20' ) start [2025-04-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886106', 'tblTempUsageDetail_20' ) end [2025-04-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886106', 'tblTempVendorCDR_20' ) start [2025-04-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886106', 'tblTempVendorCDR_20' ) end [2025-04-11 18:39:20] Production.INFO: ProcessCDR(1,14886106,1,1,2) [2025-04-11 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886106', 'tblTempUsageDetail_20' ) start [2025-04-11 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886106', 'tblTempUsageDetail_20' ) end [2025-04-11 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:39:25] Production.INFO: ==5566== Releasing lock... [2025-04-11 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:39:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-11 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:40:06 [end_date_ymd] => 2025-04-11 18:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:40:06' and `end` < '2025-04-11 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-04-11 18:40:20] Production.INFO: count ==3310 [2025-04-11 18:40:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:40:06 - End Time 2025-04-11 18:40:06 [2025-04-11 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886112', 'tblTempUsageDetail_20' ) start [2025-04-11 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886112', 'tblTempUsageDetail_20' ) end [2025-04-11 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886112', 'tblTempVendorCDR_20' ) start [2025-04-11 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886112', 'tblTempVendorCDR_20' ) end [2025-04-11 18:40:20] Production.INFO: ProcessCDR(1,14886112,1,1,2) [2025-04-11 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886112', 'tblTempUsageDetail_20' ) start [2025-04-11 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886112', 'tblTempUsageDetail_20' ) end [2025-04-11 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:40:24] Production.INFO: ==5644== Releasing lock... [2025-04-11 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:40:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-11 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:41:05 [end_date_ymd] => 2025-04-11 18:41:05 [RateCDR] => 1 ) [2025-04-11 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:41:05' and `end` < '2025-04-11 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:41:19] Production.INFO: count ==3285 [2025-04-11 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:41:05 - End Time 2025-04-11 18:41:05 [2025-04-11 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886117', 'tblTempUsageDetail_20' ) start [2025-04-11 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886117', 'tblTempUsageDetail_20' ) end [2025-04-11 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886117', 'tblTempVendorCDR_20' ) start [2025-04-11 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886117', 'tblTempVendorCDR_20' ) end [2025-04-11 18:41:20] Production.INFO: ProcessCDR(1,14886117,1,1,2) [2025-04-11 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886117', 'tblTempUsageDetail_20' ) start [2025-04-11 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886117', 'tblTempUsageDetail_20' ) end [2025-04-11 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:41:23] Production.INFO: ==5717== Releasing lock... [2025-04-11 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:41:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-11 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:42:05 [end_date_ymd] => 2025-04-11 18:42:05 [RateCDR] => 1 ) [2025-04-11 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:42:05' and `end` < '2025-04-11 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:42:18] Production.INFO: count ==3272 [2025-04-11 18:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:42:05 - End Time 2025-04-11 18:42:05 [2025-04-11 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886122', 'tblTempUsageDetail_20' ) start [2025-04-11 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886122', 'tblTempUsageDetail_20' ) end [2025-04-11 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886122', 'tblTempVendorCDR_20' ) start [2025-04-11 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886122', 'tblTempVendorCDR_20' ) end [2025-04-11 18:42:19] Production.INFO: ProcessCDR(1,14886122,1,1,2) [2025-04-11 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886122', 'tblTempUsageDetail_20' ) start [2025-04-11 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886122', 'tblTempUsageDetail_20' ) end [2025-04-11 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:42:23] Production.INFO: ==5826== Releasing lock... [2025-04-11 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:42:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-11 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:43:05 [end_date_ymd] => 2025-04-11 18:43:05 [RateCDR] => 1 ) [2025-04-11 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:43:05' and `end` < '2025-04-11 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:43:19] Production.INFO: count ==3260 [2025-04-11 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:43:05 - End Time 2025-04-11 18:43:05 [2025-04-11 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886127', 'tblTempUsageDetail_20' ) start [2025-04-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886127', 'tblTempUsageDetail_20' ) end [2025-04-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886127', 'tblTempVendorCDR_20' ) start [2025-04-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886127', 'tblTempVendorCDR_20' ) end [2025-04-11 18:43:20] Production.INFO: ProcessCDR(1,14886127,1,1,2) [2025-04-11 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886127', 'tblTempUsageDetail_20' ) start [2025-04-11 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886127', 'tblTempUsageDetail_20' ) end [2025-04-11 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:43:23] Production.INFO: ==5899== Releasing lock... [2025-04-11 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:43:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-11 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:44:05 [end_date_ymd] => 2025-04-11 18:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:44:05' and `end` < '2025-04-11 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-04-11 18:44:19] Production.INFO: count ==3257 [2025-04-11 18:44:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:44:05 - End Time 2025-04-11 18:44:05 [2025-04-11 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886132', 'tblTempUsageDetail_20' ) start [2025-04-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886132', 'tblTempUsageDetail_20' ) end [2025-04-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886132', 'tblTempVendorCDR_20' ) start [2025-04-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886132', 'tblTempVendorCDR_20' ) end [2025-04-11 18:44:19] Production.INFO: ProcessCDR(1,14886132,1,1,2) [2025-04-11 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886132', 'tblTempUsageDetail_20' ) start [2025-04-11 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886132', 'tblTempUsageDetail_20' ) end [2025-04-11 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:44:25] Production.INFO: ==5968== Releasing lock... [2025-04-11 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:44:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-11 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:45:06 [end_date_ymd] => 2025-04-11 18:45:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:45:06' and `end` < '2025-04-11 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-04-11 18:45:19] Production.INFO: count ==3236 [2025-04-11 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:45:06 - End Time 2025-04-11 18:45:06 [2025-04-11 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886137', 'tblTempUsageDetail_20' ) start [2025-04-11 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886137', 'tblTempUsageDetail_20' ) end [2025-04-11 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886137', 'tblTempVendorCDR_20' ) start [2025-04-11 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886137', 'tblTempVendorCDR_20' ) end [2025-04-11 18:45:20] Production.INFO: ProcessCDR(1,14886137,1,1,2) [2025-04-11 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886137', 'tblTempUsageDetail_20' ) start [2025-04-11 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886137', 'tblTempUsageDetail_20' ) end [2025-04-11 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:45:25] Production.INFO: ==6038== Releasing lock... [2025-04-11 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:45:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-11 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:46:06 [end_date_ymd] => 2025-04-11 18:46:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:46:06' and `end` < '2025-04-11 18: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-04-11 18:46:19] Production.INFO: count ==3231 [2025-04-11 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:46:06 - End Time 2025-04-11 18:46:06 [2025-04-11 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886142', 'tblTempUsageDetail_20' ) start [2025-04-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886142', 'tblTempUsageDetail_20' ) end [2025-04-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886142', 'tblTempVendorCDR_20' ) start [2025-04-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886142', 'tblTempVendorCDR_20' ) end [2025-04-11 18:46:20] Production.INFO: ProcessCDR(1,14886142,1,1,2) [2025-04-11 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886142', 'tblTempUsageDetail_20' ) start [2025-04-11 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886142', 'tblTempUsageDetail_20' ) end [2025-04-11 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:46:24] Production.INFO: ==6113== Releasing lock... [2025-04-11 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:46:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-11 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:47:05 [end_date_ymd] => 2025-04-11 18:47:05 [RateCDR] => 1 ) [2025-04-11 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 15:47:05' and `end` < '2025-04-11 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:47:19] Production.INFO: count ==3220 [2025-04-11 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:47:05 - End Time 2025-04-11 18:47:05 [2025-04-11 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886147', 'tblTempUsageDetail_20' ) start [2025-04-11 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886147', 'tblTempUsageDetail_20' ) end [2025-04-11 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886147', 'tblTempVendorCDR_20' ) start [2025-04-11 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886147', 'tblTempVendorCDR_20' ) end [2025-04-11 18:47:20] Production.INFO: ProcessCDR(1,14886147,1,1,2) [2025-04-11 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886147', 'tblTempUsageDetail_20' ) start [2025-04-11 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886147', 'tblTempUsageDetail_20' ) end [2025-04-11 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:47:25] Production.INFO: ==6183== Releasing lock... [2025-04-11 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:47:25] Production.INFO: 52 MB #Memory Used# [2025-04-11 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:48:05 [end_date_ymd] => 2025-04-11 18:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:48:05' and `end` < '2025-04-11 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-04-11 18:48:19] Production.INFO: count ==3210 [2025-04-11 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:48:05 - End Time 2025-04-11 18:48:05 [2025-04-11 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886152', 'tblTempUsageDetail_20' ) start [2025-04-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886152', 'tblTempUsageDetail_20' ) end [2025-04-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886152', 'tblTempVendorCDR_20' ) start [2025-04-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886152', 'tblTempVendorCDR_20' ) end [2025-04-11 18:48:20] Production.INFO: ProcessCDR(1,14886152,1,1,2) [2025-04-11 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886152', 'tblTempUsageDetail_20' ) start [2025-04-11 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886152', 'tblTempUsageDetail_20' ) end [2025-04-11 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:48:23] Production.INFO: ==6254== Releasing lock... [2025-04-11 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:48:23] Production.INFO: 52 MB #Memory Used# [2025-04-11 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:49:05 [end_date_ymd] => 2025-04-11 18:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:49:05' and `end` < '2025-04-11 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-04-11 18:49:18] Production.INFO: count ==3206 [2025-04-11 18:49:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:49:05 - End Time 2025-04-11 18:49:05 [2025-04-11 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886157', 'tblTempUsageDetail_20' ) start [2025-04-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886157', 'tblTempUsageDetail_20' ) end [2025-04-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886157', 'tblTempVendorCDR_20' ) start [2025-04-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886157', 'tblTempVendorCDR_20' ) end [2025-04-11 18:49:19] Production.INFO: ProcessCDR(1,14886157,1,1,2) [2025-04-11 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886157', 'tblTempUsageDetail_20' ) start [2025-04-11 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886157', 'tblTempUsageDetail_20' ) end [2025-04-11 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:49:24] Production.INFO: ==6325== Releasing lock... [2025-04-11 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:49:24] Production.INFO: 52 MB #Memory Used# [2025-04-11 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:50:05 [end_date_ymd] => 2025-04-11 18:50:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:50:05' and `end` < '2025-04-11 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-04-11 18:50:19] Production.INFO: count ==3182 [2025-04-11 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:50:05 - End Time 2025-04-11 18:50:05 [2025-04-11 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886162', 'tblTempUsageDetail_20' ) start [2025-04-11 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886162', 'tblTempUsageDetail_20' ) end [2025-04-11 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886162', 'tblTempVendorCDR_20' ) start [2025-04-11 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886162', 'tblTempVendorCDR_20' ) end [2025-04-11 18:50:20] Production.INFO: ProcessCDR(1,14886162,1,1,2) [2025-04-11 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886162', 'tblTempUsageDetail_20' ) start [2025-04-11 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886162', 'tblTempUsageDetail_20' ) end [2025-04-11 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:50:23] Production.INFO: ==6399== Releasing lock... [2025-04-11 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:50:23] Production.INFO: 51.75 MB #Memory Used# [2025-04-11 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:51:05 [end_date_ymd] => 2025-04-11 18:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:51:05' and `end` < '2025-04-11 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-04-11 18:51:19] Production.INFO: count ==3152 [2025-04-11 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:51:05 - End Time 2025-04-11 18:51:05 [2025-04-11 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886168', 'tblTempUsageDetail_20' ) start [2025-04-11 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886168', 'tblTempUsageDetail_20' ) end [2025-04-11 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886168', 'tblTempVendorCDR_20' ) start [2025-04-11 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886168', 'tblTempVendorCDR_20' ) end [2025-04-11 18:51:19] Production.INFO: ProcessCDR(1,14886168,1,1,2) [2025-04-11 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886168', 'tblTempUsageDetail_20' ) start [2025-04-11 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886168', 'tblTempUsageDetail_20' ) end [2025-04-11 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:51:23] Production.INFO: ==6473== Releasing lock... [2025-04-11 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:51:23] Production.INFO: 51.75 MB #Memory Used# [2025-04-11 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:52:05 [end_date_ymd] => 2025-04-11 18:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:52:05' and `end` < '2025-04-11 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-04-11 18:52:19] Production.INFO: count ==3128 [2025-04-11 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:52:05 - End Time 2025-04-11 18:52:05 [2025-04-11 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886173', 'tblTempUsageDetail_20' ) start [2025-04-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886173', 'tblTempUsageDetail_20' ) end [2025-04-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886173', 'tblTempVendorCDR_20' ) start [2025-04-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886173', 'tblTempVendorCDR_20' ) end [2025-04-11 18:52:20] Production.INFO: ProcessCDR(1,14886173,1,1,2) [2025-04-11 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886173', 'tblTempUsageDetail_20' ) start [2025-04-11 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886173', 'tblTempUsageDetail_20' ) end [2025-04-11 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:52:25] Production.INFO: ==6550== Releasing lock... [2025-04-11 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:52:25] Production.INFO: 51.5 MB #Memory Used# [2025-04-11 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:53:06 [end_date_ymd] => 2025-04-11 18:53:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:53:06' and `end` < '2025-04-11 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-04-11 18:53:19] Production.INFO: count ==3142 [2025-04-11 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:53:06 - End Time 2025-04-11 18:53:06 [2025-04-11 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886178', 'tblTempUsageDetail_20' ) start [2025-04-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886178', 'tblTempUsageDetail_20' ) end [2025-04-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886178', 'tblTempVendorCDR_20' ) start [2025-04-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886178', 'tblTempVendorCDR_20' ) end [2025-04-11 18:53:20] Production.INFO: ProcessCDR(1,14886178,1,1,2) [2025-04-11 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886178', 'tblTempUsageDetail_20' ) start [2025-04-11 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886178', 'tblTempUsageDetail_20' ) end [2025-04-11 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:53:25] Production.INFO: ==6621== Releasing lock... [2025-04-11 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:53:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-11 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:54:06 [end_date_ymd] => 2025-04-11 18:54:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:54:06' and `end` < '2025-04-11 18: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-04-11 18:54:19] Production.INFO: count ==3132 [2025-04-11 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:54:06 - End Time 2025-04-11 18:54:06 [2025-04-11 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886183', 'tblTempUsageDetail_20' ) start [2025-04-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886183', 'tblTempUsageDetail_20' ) end [2025-04-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886183', 'tblTempVendorCDR_20' ) start [2025-04-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886183', 'tblTempVendorCDR_20' ) end [2025-04-11 18:54:20] Production.INFO: ProcessCDR(1,14886183,1,1,2) [2025-04-11 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886183', 'tblTempUsageDetail_20' ) start [2025-04-11 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886183', 'tblTempUsageDetail_20' ) end [2025-04-11 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:54:25] Production.INFO: ==6696== Releasing lock... [2025-04-11 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:54:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-11 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:55:05 [end_date_ymd] => 2025-04-11 18:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:55:05' and `end` < '2025-04-11 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-04-11 18:55:19] Production.INFO: count ==3120 [2025-04-11 18:55:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:55:05 - End Time 2025-04-11 18:55:05 [2025-04-11 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886188', 'tblTempUsageDetail_20' ) start [2025-04-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886188', 'tblTempUsageDetail_20' ) end [2025-04-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886188', 'tblTempVendorCDR_20' ) start [2025-04-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886188', 'tblTempVendorCDR_20' ) end [2025-04-11 18:55:19] Production.INFO: ProcessCDR(1,14886188,1,1,2) [2025-04-11 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886188', 'tblTempUsageDetail_20' ) start [2025-04-11 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886188', 'tblTempUsageDetail_20' ) end [2025-04-11 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:55:25] Production.INFO: ==6767== Releasing lock... [2025-04-11 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:55:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-11 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:56:06 [end_date_ymd] => 2025-04-11 18:56:06 [RateCDR] => 1 ) [2025-04-11 18: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-04-11 15:56:06' and `end` < '2025-04-11 18: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-04-11 18:56:19] Production.INFO: count ==3115 [2025-04-11 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-11 15:56:06 - End Time 2025-04-11 18:56:06 [2025-04-11 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886193', 'tblTempUsageDetail_20' ) start [2025-04-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886193', 'tblTempUsageDetail_20' ) end [2025-04-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886193', 'tblTempVendorCDR_20' ) start [2025-04-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886193', 'tblTempVendorCDR_20' ) end [2025-04-11 18:56:20] Production.INFO: ProcessCDR(1,14886193,1,1,2) [2025-04-11 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886193', 'tblTempUsageDetail_20' ) start [2025-04-11 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886193', 'tblTempUsageDetail_20' ) end [2025-04-11 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:56:24] Production.INFO: ==6837== Releasing lock... [2025-04-11 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:56:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-11 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:57:05 [end_date_ymd] => 2025-04-11 18:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:57:05' and `end` < '2025-04-11 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-04-11 18:57:18] Production.INFO: count ==3110 [2025-04-11 18:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:57:05 - End Time 2025-04-11 18:57:05 [2025-04-11 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886198', 'tblTempUsageDetail_20' ) start [2025-04-11 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886198', 'tblTempUsageDetail_20' ) end [2025-04-11 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886198', 'tblTempVendorCDR_20' ) start [2025-04-11 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886198', 'tblTempVendorCDR_20' ) end [2025-04-11 18:57:19] Production.INFO: ProcessCDR(1,14886198,1,1,2) [2025-04-11 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886198', 'tblTempUsageDetail_20' ) start [2025-04-11 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886198', 'tblTempUsageDetail_20' ) end [2025-04-11 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:57:23] Production.INFO: ==6908== Releasing lock... [2025-04-11 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:57:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-11 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:58:05 [end_date_ymd] => 2025-04-11 18:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:58:05' and `end` < '2025-04-11 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 18:58:19] Production.INFO: count ==3082 [2025-04-11 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:58:05 - End Time 2025-04-11 18:58:05 [2025-04-11 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886203', 'tblTempUsageDetail_20' ) start [2025-04-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886203', 'tblTempUsageDetail_20' ) end [2025-04-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886203', 'tblTempVendorCDR_20' ) start [2025-04-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886203', 'tblTempVendorCDR_20' ) end [2025-04-11 18:58:20] Production.INFO: ProcessCDR(1,14886203,1,1,2) [2025-04-11 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886203', 'tblTempUsageDetail_20' ) start [2025-04-11 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886203', 'tblTempUsageDetail_20' ) end [2025-04-11 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:58:23] Production.INFO: ==7020== Releasing lock... [2025-04-11 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:58:23] Production.INFO: 51 MB #Memory Used# [2025-04-11 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 15:59:05 [end_date_ymd] => 2025-04-11 18:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 15:59:05' and `end` < '2025-04-11 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-04-11 18:59:18] Production.INFO: count ==3072 [2025-04-11 18:59:19] Production.ERROR: pbx CDR StartTime 2025-04-11 15:59:05 - End Time 2025-04-11 18:59:05 [2025-04-11 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886208', 'tblTempUsageDetail_20' ) start [2025-04-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886208', 'tblTempUsageDetail_20' ) end [2025-04-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886208', 'tblTempVendorCDR_20' ) start [2025-04-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886208', 'tblTempVendorCDR_20' ) end [2025-04-11 18:59:19] Production.INFO: ProcessCDR(1,14886208,1,1,2) [2025-04-11 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886208', 'tblTempUsageDetail_20' ) start [2025-04-11 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886208', 'tblTempUsageDetail_20' ) end [2025-04-11 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 18:59:23] Production.INFO: ==7091== Releasing lock... [2025-04-11 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 18:59:23] Production.INFO: 52 MB #Memory Used# [2025-04-11 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:00:07 [end_date_ymd] => 2025-04-11 19:00:07 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:00:07' and `end` < '2025-04-11 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-04-11 19:00:20] Production.INFO: count ==3051 [2025-04-11 19:00:21] Production.ERROR: pbx CDR StartTime 2025-04-11 16:00:07 - End Time 2025-04-11 19:00:07 [2025-04-11 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886214', 'tblTempUsageDetail_20' ) start [2025-04-11 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886214', 'tblTempUsageDetail_20' ) end [2025-04-11 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886214', 'tblTempVendorCDR_20' ) start [2025-04-11 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886214', 'tblTempVendorCDR_20' ) end [2025-04-11 19:00:21] Production.INFO: ProcessCDR(1,14886214,1,1,2) [2025-04-11 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886214', 'tblTempUsageDetail_20' ) start [2025-04-11 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886214', 'tblTempUsageDetail_20' ) end [2025-04-11 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:00:25] Production.INFO: ==7164== Releasing lock... [2025-04-11 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:00:25] Production.INFO: 51 MB #Memory Used# [2025-04-11 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:01:05 [end_date_ymd] => 2025-04-11 19:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:01:05' and `end` < '2025-04-11 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-04-11 19:01:18] Production.INFO: count ==2941 [2025-04-11 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:01:05 - End Time 2025-04-11 19:01:05 [2025-04-11 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886219', 'tblTempUsageDetail_20' ) start [2025-04-11 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886219', 'tblTempUsageDetail_20' ) end [2025-04-11 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886219', 'tblTempVendorCDR_20' ) start [2025-04-11 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886219', 'tblTempVendorCDR_20' ) end [2025-04-11 19:01:19] Production.INFO: ProcessCDR(1,14886219,1,1,2) [2025-04-11 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886219', 'tblTempUsageDetail_20' ) start [2025-04-11 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886219', 'tblTempUsageDetail_20' ) end [2025-04-11 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:01:23] Production.INFO: ==7327== Releasing lock... [2025-04-11 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:01:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-11 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:02:06 [end_date_ymd] => 2025-04-11 19:02:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:02:06' and `end` < '2025-04-11 19: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-04-11 19:02:19] Production.INFO: count ==2929 [2025-04-11 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:02:06 - End Time 2025-04-11 19:02:06 [2025-04-11 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886224', 'tblTempUsageDetail_20' ) start [2025-04-11 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886224', 'tblTempUsageDetail_20' ) end [2025-04-11 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886224', 'tblTempVendorCDR_20' ) start [2025-04-11 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886224', 'tblTempVendorCDR_20' ) end [2025-04-11 19:02:20] Production.INFO: ProcessCDR(1,14886224,1,1,2) [2025-04-11 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886224', 'tblTempUsageDetail_20' ) start [2025-04-11 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886224', 'tblTempUsageDetail_20' ) end [2025-04-11 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:02:24] Production.INFO: ==7397== Releasing lock... [2025-04-11 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:02:24] Production.INFO: 50 MB #Memory Used# [2025-04-11 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:03:05 [end_date_ymd] => 2025-04-11 19:03:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:03:05' and `end` < '2025-04-11 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-04-11 19:03:19] Production.INFO: count ==2922 [2025-04-11 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:03:05 - End Time 2025-04-11 19:03:05 [2025-04-11 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886229', 'tblTempUsageDetail_20' ) start [2025-04-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886229', 'tblTempUsageDetail_20' ) end [2025-04-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886229', 'tblTempVendorCDR_20' ) start [2025-04-11 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886229', 'tblTempVendorCDR_20' ) end [2025-04-11 19:03:20] Production.INFO: ProcessCDR(1,14886229,1,1,2) [2025-04-11 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886229', 'tblTempUsageDetail_20' ) start [2025-04-11 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886229', 'tblTempUsageDetail_20' ) end [2025-04-11 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:03:23] Production.INFO: ==7468== Releasing lock... [2025-04-11 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:03:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-11 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:04:06 [end_date_ymd] => 2025-04-11 19:04:06 [RateCDR] => 1 ) [2025-04-11 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:04:06' and `end` < '2025-04-11 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:04:19] Production.INFO: count ==2914 [2025-04-11 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:04:06 - End Time 2025-04-11 19:04:06 [2025-04-11 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886234', 'tblTempUsageDetail_20' ) start [2025-04-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886234', 'tblTempUsageDetail_20' ) end [2025-04-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886234', 'tblTempVendorCDR_20' ) start [2025-04-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886234', 'tblTempVendorCDR_20' ) end [2025-04-11 19:04:20] Production.INFO: ProcessCDR(1,14886234,1,1,2) [2025-04-11 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886234', 'tblTempUsageDetail_20' ) start [2025-04-11 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886234', 'tblTempUsageDetail_20' ) end [2025-04-11 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:04:24] Production.INFO: ==7541== Releasing lock... [2025-04-11 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:04:24] Production.INFO: 50 MB #Memory Used# [2025-04-11 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:05:05 [end_date_ymd] => 2025-04-11 19:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:05:05' and `end` < '2025-04-11 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-04-11 19:05:18] Production.INFO: count ==2904 [2025-04-11 19:05:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:05:05 - End Time 2025-04-11 19:05:05 [2025-04-11 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886239', 'tblTempUsageDetail_20' ) start [2025-04-11 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886239', 'tblTempUsageDetail_20' ) end [2025-04-11 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886239', 'tblTempVendorCDR_20' ) start [2025-04-11 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886239', 'tblTempVendorCDR_20' ) end [2025-04-11 19:05:19] Production.INFO: ProcessCDR(1,14886239,1,1,2) [2025-04-11 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886239', 'tblTempUsageDetail_20' ) start [2025-04-11 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886239', 'tblTempUsageDetail_20' ) end [2025-04-11 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:05:23] Production.INFO: ==7690== Releasing lock... [2025-04-11 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:05:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-11 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:06:06 [end_date_ymd] => 2025-04-11 19:06:06 [RateCDR] => 1 ) [2025-04-11 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:06:06' and `end` < '2025-04-11 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:06:19] Production.INFO: count ==2898 [2025-04-11 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:06:06 - End Time 2025-04-11 19:06:06 [2025-04-11 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886244', 'tblTempUsageDetail_20' ) start [2025-04-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886244', 'tblTempUsageDetail_20' ) end [2025-04-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886244', 'tblTempVendorCDR_20' ) start [2025-04-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886244', 'tblTempVendorCDR_20' ) end [2025-04-11 19:06:20] Production.INFO: ProcessCDR(1,14886244,1,1,2) [2025-04-11 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886244', 'tblTempUsageDetail_20' ) start [2025-04-11 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886244', 'tblTempUsageDetail_20' ) end [2025-04-11 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:06:25] Production.INFO: ==7761== Releasing lock... [2025-04-11 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:06:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-11 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:07:05 [end_date_ymd] => 2025-04-11 19:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:07:05' and `end` < '2025-04-11 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-04-11 19:07:19] Production.INFO: count ==2878 [2025-04-11 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:07:05 - End Time 2025-04-11 19:07:05 [2025-04-11 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886249', 'tblTempUsageDetail_20' ) start [2025-04-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886249', 'tblTempUsageDetail_20' ) end [2025-04-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886249', 'tblTempVendorCDR_20' ) start [2025-04-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886249', 'tblTempVendorCDR_20' ) end [2025-04-11 19:07:20] Production.INFO: ProcessCDR(1,14886249,1,1,2) [2025-04-11 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886249', 'tblTempUsageDetail_20' ) start [2025-04-11 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886249', 'tblTempUsageDetail_20' ) end [2025-04-11 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:07:23] Production.INFO: ==7842== Releasing lock... [2025-04-11 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:07:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-11 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:08:06 [end_date_ymd] => 2025-04-11 19:08:06 [RateCDR] => 1 ) [2025-04-11 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:08:06' and `end` < '2025-04-11 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:08:20] Production.INFO: count ==2857 [2025-04-11 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:08:06 - End Time 2025-04-11 19:08:06 [2025-04-11 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886254', 'tblTempUsageDetail_20' ) start [2025-04-11 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886254', 'tblTempUsageDetail_20' ) end [2025-04-11 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886254', 'tblTempVendorCDR_20' ) start [2025-04-11 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886254', 'tblTempVendorCDR_20' ) end [2025-04-11 19:08:21] Production.INFO: ProcessCDR(1,14886254,1,1,2) [2025-04-11 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886254', 'tblTempUsageDetail_20' ) start [2025-04-11 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886254', 'tblTempUsageDetail_20' ) end [2025-04-11 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:08:26] Production.INFO: ==7993== Releasing lock... [2025-04-11 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:08:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-11 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:09:05 [end_date_ymd] => 2025-04-11 19:09:05 [RateCDR] => 1 ) [2025-04-11 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:09:05' and `end` < '2025-04-11 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:09:18] Production.INFO: count ==2850 [2025-04-11 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:09:05 - End Time 2025-04-11 19:09:05 [2025-04-11 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886259', 'tblTempUsageDetail_20' ) start [2025-04-11 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886259', 'tblTempUsageDetail_20' ) end [2025-04-11 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886259', 'tblTempVendorCDR_20' ) start [2025-04-11 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886259', 'tblTempVendorCDR_20' ) end [2025-04-11 19:09:19] Production.INFO: ProcessCDR(1,14886259,1,1,2) [2025-04-11 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886259', 'tblTempUsageDetail_20' ) start [2025-04-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886259', 'tblTempUsageDetail_20' ) end [2025-04-11 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:09:23] Production.INFO: ==8061== Releasing lock... [2025-04-11 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:09:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-11 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:10:07 [end_date_ymd] => 2025-04-11 19:10:07 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:10:07' and `end` < '2025-04-11 19: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-04-11 19:10:20] Production.INFO: count ==2845 [2025-04-11 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-11 16:10:07 - End Time 2025-04-11 19:10:07 [2025-04-11 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886265', 'tblTempUsageDetail_20' ) start [2025-04-11 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886265', 'tblTempUsageDetail_20' ) end [2025-04-11 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886265', 'tblTempVendorCDR_20' ) start [2025-04-11 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886265', 'tblTempVendorCDR_20' ) end [2025-04-11 19:10:21] Production.INFO: ProcessCDR(1,14886265,1,1,2) [2025-04-11 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886265', 'tblTempUsageDetail_20' ) start [2025-04-11 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886265', 'tblTempUsageDetail_20' ) end [2025-04-11 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:10:26] Production.INFO: ==8135== Releasing lock... [2025-04-11 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:10:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-11 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:11:06 [end_date_ymd] => 2025-04-11 19:11:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:11:06' and `end` < '2025-04-11 19: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-04-11 19:11:19] Production.INFO: count ==2765 [2025-04-11 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:11:06 - End Time 2025-04-11 19:11:06 [2025-04-11 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886270', 'tblTempUsageDetail_20' ) start [2025-04-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886270', 'tblTempUsageDetail_20' ) end [2025-04-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886270', 'tblTempVendorCDR_20' ) start [2025-04-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886270', 'tblTempVendorCDR_20' ) end [2025-04-11 19:11:20] Production.INFO: ProcessCDR(1,14886270,1,1,2) [2025-04-11 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886270', 'tblTempUsageDetail_20' ) start [2025-04-11 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886270', 'tblTempUsageDetail_20' ) end [2025-04-11 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:11:24] Production.INFO: ==8213== Releasing lock... [2025-04-11 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:11:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-11 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:12:06 [end_date_ymd] => 2025-04-11 19:12:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:12:06' and `end` < '2025-04-11 19: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-04-11 19:12:19] Production.INFO: count ==2754 [2025-04-11 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:12:06 - End Time 2025-04-11 19:12:06 [2025-04-11 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886275', 'tblTempUsageDetail_20' ) start [2025-04-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886275', 'tblTempUsageDetail_20' ) end [2025-04-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886275', 'tblTempVendorCDR_20' ) start [2025-04-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886275', 'tblTempVendorCDR_20' ) end [2025-04-11 19:12:20] Production.INFO: ProcessCDR(1,14886275,1,1,2) [2025-04-11 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886275', 'tblTempUsageDetail_20' ) start [2025-04-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886275', 'tblTempUsageDetail_20' ) end [2025-04-11 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:12:25] Production.INFO: ==8364== Releasing lock... [2025-04-11 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:12:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-11 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:13:06 [end_date_ymd] => 2025-04-11 19:13:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:13:06' and `end` < '2025-04-11 19: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-04-11 19:13:19] Production.INFO: count ==2751 [2025-04-11 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:13:06 - End Time 2025-04-11 19:13:06 [2025-04-11 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886280', 'tblTempUsageDetail_20' ) start [2025-04-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886280', 'tblTempUsageDetail_20' ) end [2025-04-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886280', 'tblTempVendorCDR_20' ) start [2025-04-11 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886280', 'tblTempVendorCDR_20' ) end [2025-04-11 19:13:20] Production.INFO: ProcessCDR(1,14886280,1,1,2) [2025-04-11 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886280', 'tblTempUsageDetail_20' ) start [2025-04-11 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886280', 'tblTempUsageDetail_20' ) end [2025-04-11 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:13:24] Production.INFO: ==8474== Releasing lock... [2025-04-11 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:13:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-11 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:14:05 [end_date_ymd] => 2025-04-11 19:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:14:05' and `end` < '2025-04-11 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-04-11 19:14:18] Production.INFO: count ==2728 [2025-04-11 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:14:05 - End Time 2025-04-11 19:14:05 [2025-04-11 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886285', 'tblTempUsageDetail_20' ) start [2025-04-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886285', 'tblTempUsageDetail_20' ) end [2025-04-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886285', 'tblTempVendorCDR_20' ) start [2025-04-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886285', 'tblTempVendorCDR_20' ) end [2025-04-11 19:14:19] Production.INFO: ProcessCDR(1,14886285,1,1,2) [2025-04-11 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886285', 'tblTempUsageDetail_20' ) start [2025-04-11 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886285', 'tblTempUsageDetail_20' ) end [2025-04-11 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:14:23] Production.INFO: ==8545== Releasing lock... [2025-04-11 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:14:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-11 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:15:06 [end_date_ymd] => 2025-04-11 19:15:06 [RateCDR] => 1 ) [2025-04-11 19:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:15:06' and `end` < '2025-04-11 19:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:15:19] Production.INFO: count ==2715 [2025-04-11 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:15:06 - End Time 2025-04-11 19:15:06 [2025-04-11 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886290', 'tblTempUsageDetail_20' ) start [2025-04-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886290', 'tblTempUsageDetail_20' ) end [2025-04-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886290', 'tblTempVendorCDR_20' ) start [2025-04-11 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886290', 'tblTempVendorCDR_20' ) end [2025-04-11 19:15:20] Production.INFO: ProcessCDR(1,14886290,1,1,2) [2025-04-11 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886290', 'tblTempUsageDetail_20' ) start [2025-04-11 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886290', 'tblTempUsageDetail_20' ) end [2025-04-11 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:15:23] Production.INFO: ==8694== Releasing lock... [2025-04-11 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:15:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-11 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:16:06 [end_date_ymd] => 2025-04-11 19:16:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:16:06' and `end` < '2025-04-11 19: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-04-11 19:16:19] Production.INFO: count ==2709 [2025-04-11 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:16:06 - End Time 2025-04-11 19:16:06 [2025-04-11 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886295', 'tblTempUsageDetail_20' ) start [2025-04-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886295', 'tblTempUsageDetail_20' ) end [2025-04-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886295', 'tblTempVendorCDR_20' ) start [2025-04-11 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886295', 'tblTempVendorCDR_20' ) end [2025-04-11 19:16:20] Production.INFO: ProcessCDR(1,14886295,1,1,2) [2025-04-11 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886295', 'tblTempUsageDetail_20' ) start [2025-04-11 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886295', 'tblTempUsageDetail_20' ) end [2025-04-11 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:16:24] Production.INFO: ==8767== Releasing lock... [2025-04-11 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:16:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-11 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:17:06 [end_date_ymd] => 2025-04-11 19:17:06 [RateCDR] => 1 ) [2025-04-11 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:17:06' and `end` < '2025-04-11 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:17:19] Production.INFO: count ==2700 [2025-04-11 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:17:06 - End Time 2025-04-11 19:17:06 [2025-04-11 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886300', 'tblTempUsageDetail_20' ) start [2025-04-11 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886300', 'tblTempUsageDetail_20' ) end [2025-04-11 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886300', 'tblTempVendorCDR_20' ) start [2025-04-11 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886300', 'tblTempVendorCDR_20' ) end [2025-04-11 19:17:20] Production.INFO: ProcessCDR(1,14886300,1,1,2) [2025-04-11 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886300', 'tblTempUsageDetail_20' ) start [2025-04-11 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886300', 'tblTempUsageDetail_20' ) end [2025-04-11 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:17:24] Production.INFO: ==8840== Releasing lock... [2025-04-11 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:17:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-11 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:18:05 [end_date_ymd] => 2025-04-11 19:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:18:05' and `end` < '2025-04-11 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-04-11 19:18:19] Production.INFO: count ==2677 [2025-04-11 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:18:05 - End Time 2025-04-11 19:18:05 [2025-04-11 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886305', 'tblTempUsageDetail_20' ) start [2025-04-11 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886305', 'tblTempUsageDetail_20' ) end [2025-04-11 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886305', 'tblTempVendorCDR_20' ) start [2025-04-11 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886305', 'tblTempVendorCDR_20' ) end [2025-04-11 19:18:19] Production.INFO: ProcessCDR(1,14886305,1,1,2) [2025-04-11 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886305', 'tblTempUsageDetail_20' ) start [2025-04-11 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886305', 'tblTempUsageDetail_20' ) end [2025-04-11 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:18:25] Production.INFO: ==8912== Releasing lock... [2025-04-11 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:18:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-11 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:19:06 [end_date_ymd] => 2025-04-11 19:19:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:19:06' and `end` < '2025-04-11 19: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-04-11 19:19:19] Production.INFO: count ==2664 [2025-04-11 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:19:06 - End Time 2025-04-11 19:19:06 [2025-04-11 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886310', 'tblTempUsageDetail_20' ) start [2025-04-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886310', 'tblTempUsageDetail_20' ) end [2025-04-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886310', 'tblTempVendorCDR_20' ) start [2025-04-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886310', 'tblTempVendorCDR_20' ) end [2025-04-11 19:19:20] Production.INFO: ProcessCDR(1,14886310,1,1,2) [2025-04-11 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886310', 'tblTempUsageDetail_20' ) start [2025-04-11 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886310', 'tblTempUsageDetail_20' ) end [2025-04-11 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:19:26] Production.INFO: ==8989== Releasing lock... [2025-04-11 19:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:19:26] Production.INFO: 48 MB #Memory Used# [2025-04-11 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:20:06 [end_date_ymd] => 2025-04-11 19:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:20:06' and `end` < '2025-04-11 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-04-11 19:20:19] Production.INFO: count ==2666 [2025-04-11 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:20:06 - End Time 2025-04-11 19:20:06 [2025-04-11 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886316', 'tblTempUsageDetail_20' ) start [2025-04-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886316', 'tblTempUsageDetail_20' ) end [2025-04-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886316', 'tblTempVendorCDR_20' ) start [2025-04-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886316', 'tblTempVendorCDR_20' ) end [2025-04-11 19:20:20] Production.INFO: ProcessCDR(1,14886316,1,1,2) [2025-04-11 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886316', 'tblTempUsageDetail_20' ) start [2025-04-11 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886316', 'tblTempUsageDetail_20' ) end [2025-04-11 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:20:24] Production.INFO: ==9065== Releasing lock... [2025-04-11 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:20:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-11 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:21:06 [end_date_ymd] => 2025-04-11 19:21:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:21:06' and `end` < '2025-04-11 19: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-04-11 19:21:19] Production.INFO: count ==2608 [2025-04-11 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:21:06 - End Time 2025-04-11 19:21:06 [2025-04-11 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886321', 'tblTempUsageDetail_20' ) start [2025-04-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886321', 'tblTempUsageDetail_20' ) end [2025-04-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886321', 'tblTempVendorCDR_20' ) start [2025-04-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886321', 'tblTempVendorCDR_20' ) end [2025-04-11 19:21:20] Production.INFO: ProcessCDR(1,14886321,1,1,2) [2025-04-11 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886321', 'tblTempUsageDetail_20' ) start [2025-04-11 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886321', 'tblTempUsageDetail_20' ) end [2025-04-11 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:21:25] Production.INFO: ==9148== Releasing lock... [2025-04-11 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:21:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-11 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:22:06 [end_date_ymd] => 2025-04-11 19:22:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:22:06' and `end` < '2025-04-11 19: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-04-11 19:22:20] Production.INFO: count ==2555 [2025-04-11 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:22:06 - End Time 2025-04-11 19:22:06 [2025-04-11 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886326', 'tblTempUsageDetail_20' ) start [2025-04-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886326', 'tblTempUsageDetail_20' ) end [2025-04-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886326', 'tblTempVendorCDR_20' ) start [2025-04-11 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886326', 'tblTempVendorCDR_20' ) end [2025-04-11 19:22:20] Production.INFO: ProcessCDR(1,14886326,1,1,2) [2025-04-11 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886326', 'tblTempUsageDetail_20' ) start [2025-04-11 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886326', 'tblTempUsageDetail_20' ) end [2025-04-11 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:22:24] Production.INFO: ==9219== Releasing lock... [2025-04-11 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:22:24] Production.INFO: 47 MB #Memory Used# [2025-04-11 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:23:06 [end_date_ymd] => 2025-04-11 19:23:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:23:06' and `end` < '2025-04-11 19: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-04-11 19:23:19] Production.INFO: count ==2548 [2025-04-11 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:23:06 - End Time 2025-04-11 19:23:06 [2025-04-11 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886331', 'tblTempUsageDetail_20' ) start [2025-04-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886331', 'tblTempUsageDetail_20' ) end [2025-04-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886331', 'tblTempVendorCDR_20' ) start [2025-04-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886331', 'tblTempVendorCDR_20' ) end [2025-04-11 19:23:20] Production.INFO: ProcessCDR(1,14886331,1,1,2) [2025-04-11 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886331', 'tblTempUsageDetail_20' ) start [2025-04-11 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886331', 'tblTempUsageDetail_20' ) end [2025-04-11 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:23:25] Production.INFO: ==9294== Releasing lock... [2025-04-11 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:23:25] Production.INFO: 47 MB #Memory Used# [2025-04-11 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:24:05 [end_date_ymd] => 2025-04-11 19:24:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:24:05' and `end` < '2025-04-11 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-04-11 19:24:19] Production.INFO: count ==2548 [2025-04-11 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:24:05 - End Time 2025-04-11 19:24:05 [2025-04-11 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886336', 'tblTempUsageDetail_20' ) start [2025-04-11 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886336', 'tblTempUsageDetail_20' ) end [2025-04-11 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886336', 'tblTempVendorCDR_20' ) start [2025-04-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886336', 'tblTempVendorCDR_20' ) end [2025-04-11 19:24:20] Production.INFO: ProcessCDR(1,14886336,1,1,2) [2025-04-11 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886336', 'tblTempUsageDetail_20' ) start [2025-04-11 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886336', 'tblTempUsageDetail_20' ) end [2025-04-11 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:24:23] Production.INFO: ==9370== Releasing lock... [2025-04-11 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:24:23] Production.INFO: 47 MB #Memory Used# [2025-04-11 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:25:05 [end_date_ymd] => 2025-04-11 19:25:05 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:25:05' and `end` < '2025-04-11 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-04-11 19:25:19] Production.INFO: count ==2546 [2025-04-11 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:25:05 - End Time 2025-04-11 19:25:05 [2025-04-11 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886341', 'tblTempUsageDetail_20' ) start [2025-04-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886341', 'tblTempUsageDetail_20' ) end [2025-04-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886341', 'tblTempVendorCDR_20' ) start [2025-04-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886341', 'tblTempVendorCDR_20' ) end [2025-04-11 19:25:19] Production.INFO: ProcessCDR(1,14886341,1,1,2) [2025-04-11 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886341', 'tblTempUsageDetail_20' ) start [2025-04-11 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886341', 'tblTempUsageDetail_20' ) end [2025-04-11 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:25:23] Production.INFO: ==9444== Releasing lock... [2025-04-11 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:25:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-11 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:26:05 [end_date_ymd] => 2025-04-11 19:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:26:05' and `end` < '2025-04-11 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-04-11 19:26:18] Production.INFO: count ==2542 [2025-04-11 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:26:05 - End Time 2025-04-11 19:26:05 [2025-04-11 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886346', 'tblTempUsageDetail_20' ) start [2025-04-11 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886346', 'tblTempUsageDetail_20' ) end [2025-04-11 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886346', 'tblTempVendorCDR_20' ) start [2025-04-11 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886346', 'tblTempVendorCDR_20' ) end [2025-04-11 19:26:19] Production.INFO: ProcessCDR(1,14886346,1,1,2) [2025-04-11 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886346', 'tblTempUsageDetail_20' ) start [2025-04-11 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886346', 'tblTempUsageDetail_20' ) end [2025-04-11 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:26:25] Production.INFO: ==9515== Releasing lock... [2025-04-11 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:26:25] Production.INFO: 47 MB #Memory Used# [2025-04-11 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:27:05 [end_date_ymd] => 2025-04-11 19:27:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:27:05' and `end` < '2025-04-11 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-04-11 19:27:19] Production.INFO: count ==2541 [2025-04-11 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:27:05 - End Time 2025-04-11 19:27:05 [2025-04-11 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886351', 'tblTempUsageDetail_20' ) start [2025-04-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886351', 'tblTempUsageDetail_20' ) end [2025-04-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886351', 'tblTempVendorCDR_20' ) start [2025-04-11 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886351', 'tblTempVendorCDR_20' ) end [2025-04-11 19:27:19] Production.INFO: ProcessCDR(1,14886351,1,1,2) [2025-04-11 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886351', 'tblTempUsageDetail_20' ) start [2025-04-11 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886351', 'tblTempUsageDetail_20' ) end [2025-04-11 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:27:25] Production.INFO: ==9585== Releasing lock... [2025-04-11 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:27:25] Production.INFO: 47 MB #Memory Used# [2025-04-11 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:28:05 [end_date_ymd] => 2025-04-11 19:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:28:05' and `end` < '2025-04-11 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-04-11 19:28:19] Production.INFO: count ==2533 [2025-04-11 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:28:05 - End Time 2025-04-11 19:28:05 [2025-04-11 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886356', 'tblTempUsageDetail_20' ) start [2025-04-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886356', 'tblTempUsageDetail_20' ) end [2025-04-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886356', 'tblTempVendorCDR_20' ) start [2025-04-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886356', 'tblTempVendorCDR_20' ) end [2025-04-11 19:28:19] Production.INFO: ProcessCDR(1,14886356,1,1,2) [2025-04-11 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886356', 'tblTempUsageDetail_20' ) start [2025-04-11 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886356', 'tblTempUsageDetail_20' ) end [2025-04-11 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:28:23] Production.INFO: ==9658== Releasing lock... [2025-04-11 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:28:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-11 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:29:05 [end_date_ymd] => 2025-04-11 19:29:05 [RateCDR] => 1 ) [2025-04-11 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:29:05' and `end` < '2025-04-11 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:29:19] Production.INFO: count ==2524 [2025-04-11 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:29:05 - End Time 2025-04-11 19:29:05 [2025-04-11 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886361', 'tblTempUsageDetail_20' ) start [2025-04-11 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886361', 'tblTempUsageDetail_20' ) end [2025-04-11 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886361', 'tblTempVendorCDR_20' ) start [2025-04-11 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886361', 'tblTempVendorCDR_20' ) end [2025-04-11 19:29:19] Production.INFO: ProcessCDR(1,14886361,1,1,2) [2025-04-11 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886361', 'tblTempUsageDetail_20' ) start [2025-04-11 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886361', 'tblTempUsageDetail_20' ) end [2025-04-11 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:29:23] Production.INFO: ==9769== Releasing lock... [2025-04-11 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:29:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-11 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:30:06 [end_date_ymd] => 2025-04-11 19:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:30:06' and `end` < '2025-04-11 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-04-11 19:30:19] Production.INFO: count ==2512 [2025-04-11 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:30:06 - End Time 2025-04-11 19:30:06 [2025-04-11 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886366', 'tblTempUsageDetail_20' ) start [2025-04-11 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886366', 'tblTempUsageDetail_20' ) end [2025-04-11 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886366', 'tblTempVendorCDR_20' ) start [2025-04-11 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886366', 'tblTempVendorCDR_20' ) end [2025-04-11 19:30:20] Production.INFO: ProcessCDR(1,14886366,1,1,2) [2025-04-11 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886366', 'tblTempUsageDetail_20' ) start [2025-04-11 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886366', 'tblTempUsageDetail_20' ) end [2025-04-11 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:30:26] Production.INFO: ==9845== Releasing lock... [2025-04-11 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:30:26] Production.INFO: 46.5 MB #Memory Used# [2025-04-11 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:31:06 [end_date_ymd] => 2025-04-11 19:31:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:31:06' and `end` < '2025-04-11 19: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-04-11 19:31:19] Production.INFO: count ==2472 [2025-04-11 19:31:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:31:06 - End Time 2025-04-11 19:31:06 [2025-04-11 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886372', 'tblTempUsageDetail_20' ) start [2025-04-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886372', 'tblTempUsageDetail_20' ) end [2025-04-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886372', 'tblTempVendorCDR_20' ) start [2025-04-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886372', 'tblTempVendorCDR_20' ) end [2025-04-11 19:31:20] Production.INFO: ProcessCDR(1,14886372,1,1,2) [2025-04-11 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886372', 'tblTempUsageDetail_20' ) start [2025-04-11 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886372', 'tblTempUsageDetail_20' ) end [2025-04-11 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:31:25] Production.INFO: ==9922== Releasing lock... [2025-04-11 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:31:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-11 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:32:06 [end_date_ymd] => 2025-04-11 19:32:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:32:06' and `end` < '2025-04-11 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-04-11 19:32:19] Production.INFO: count ==2458 [2025-04-11 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:32:06 - End Time 2025-04-11 19:32:06 [2025-04-11 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886377', 'tblTempUsageDetail_20' ) start [2025-04-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886377', 'tblTempUsageDetail_20' ) end [2025-04-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886377', 'tblTempVendorCDR_20' ) start [2025-04-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886377', 'tblTempVendorCDR_20' ) end [2025-04-11 19:32:20] Production.INFO: ProcessCDR(1,14886377,1,1,2) [2025-04-11 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886377', 'tblTempUsageDetail_20' ) start [2025-04-11 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886377', 'tblTempUsageDetail_20' ) end [2025-04-11 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:32:25] Production.INFO: ==9996== Releasing lock... [2025-04-11 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:32:25] Production.INFO: 46 MB #Memory Used# [2025-04-11 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:33:06 [end_date_ymd] => 2025-04-11 19:33:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:33:06' and `end` < '2025-04-11 19: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-04-11 19:33:19] Production.INFO: count ==2456 [2025-04-11 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:33:06 - End Time 2025-04-11 19:33:06 [2025-04-11 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886382', 'tblTempUsageDetail_20' ) start [2025-04-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886382', 'tblTempUsageDetail_20' ) end [2025-04-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886382', 'tblTempVendorCDR_20' ) start [2025-04-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886382', 'tblTempVendorCDR_20' ) end [2025-04-11 19:33:19] Production.INFO: ProcessCDR(1,14886382,1,1,2) [2025-04-11 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886382', 'tblTempUsageDetail_20' ) start [2025-04-11 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886382', 'tblTempUsageDetail_20' ) end [2025-04-11 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:33:25] Production.INFO: ==10071== Releasing lock... [2025-04-11 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:33:25] Production.INFO: 46 MB #Memory Used# [2025-04-11 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:34:05 [end_date_ymd] => 2025-04-11 19:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:34:05' and `end` < '2025-04-11 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-04-11 19:34:19] Production.INFO: count ==2441 [2025-04-11 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:34:05 - End Time 2025-04-11 19:34:05 [2025-04-11 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886387', 'tblTempUsageDetail_20' ) start [2025-04-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886387', 'tblTempUsageDetail_20' ) end [2025-04-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886387', 'tblTempVendorCDR_20' ) start [2025-04-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886387', 'tblTempVendorCDR_20' ) end [2025-04-11 19:34:19] Production.INFO: ProcessCDR(1,14886387,1,1,2) [2025-04-11 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886387', 'tblTempUsageDetail_20' ) start [2025-04-11 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886387', 'tblTempUsageDetail_20' ) end [2025-04-11 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:34:25] Production.INFO: ==10141== Releasing lock... [2025-04-11 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:34:25] Production.INFO: 46 MB #Memory Used# [2025-04-11 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:35:05 [end_date_ymd] => 2025-04-11 19:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:35:05' and `end` < '2025-04-11 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-04-11 19:35:18] Production.INFO: count ==2418 [2025-04-11 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:35:05 - End Time 2025-04-11 19:35:05 [2025-04-11 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886392', 'tblTempUsageDetail_20' ) start [2025-04-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886392', 'tblTempUsageDetail_20' ) end [2025-04-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886392', 'tblTempVendorCDR_20' ) start [2025-04-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886392', 'tblTempVendorCDR_20' ) end [2025-04-11 19:35:19] Production.INFO: ProcessCDR(1,14886392,1,1,2) [2025-04-11 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886392', 'tblTempUsageDetail_20' ) start [2025-04-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886392', 'tblTempUsageDetail_20' ) end [2025-04-11 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:35:23] Production.INFO: ==10219== Releasing lock... [2025-04-11 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:35:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-11 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:36:05 [end_date_ymd] => 2025-04-11 19:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:36:05' and `end` < '2025-04-11 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-04-11 19:36:18] Production.INFO: count ==2391 [2025-04-11 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:36:05 - End Time 2025-04-11 19:36:05 [2025-04-11 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886397', 'tblTempUsageDetail_20' ) start [2025-04-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886397', 'tblTempUsageDetail_20' ) end [2025-04-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886397', 'tblTempVendorCDR_20' ) start [2025-04-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886397', 'tblTempVendorCDR_20' ) end [2025-04-11 19:36:19] Production.INFO: ProcessCDR(1,14886397,1,1,2) [2025-04-11 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886397', 'tblTempUsageDetail_20' ) start [2025-04-11 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886397', 'tblTempUsageDetail_20' ) end [2025-04-11 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:36:24] Production.INFO: ==10296== Releasing lock... [2025-04-11 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:36:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-11 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:37:06 [end_date_ymd] => 2025-04-11 19:37:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:37:06' and `end` < '2025-04-11 19: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-04-11 19:37:19] Production.INFO: count ==2374 [2025-04-11 19:37:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:37:06 - End Time 2025-04-11 19:37:06 [2025-04-11 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886402', 'tblTempUsageDetail_20' ) start [2025-04-11 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886402', 'tblTempUsageDetail_20' ) end [2025-04-11 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886402', 'tblTempVendorCDR_20' ) start [2025-04-11 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886402', 'tblTempVendorCDR_20' ) end [2025-04-11 19:37:20] Production.INFO: ProcessCDR(1,14886402,1,1,2) [2025-04-11 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886402', 'tblTempUsageDetail_20' ) start [2025-04-11 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886402', 'tblTempUsageDetail_20' ) end [2025-04-11 19:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:37:26] Production.INFO: ==10367== Releasing lock... [2025-04-11 19:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:37:26] Production.INFO: 45.5 MB #Memory Used# [2025-04-11 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:38:05 [end_date_ymd] => 2025-04-11 19:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:38:05' and `end` < '2025-04-11 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-04-11 19:38:19] Production.INFO: count ==2359 [2025-04-11 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:38:05 - End Time 2025-04-11 19:38:05 [2025-04-11 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886407', 'tblTempUsageDetail_20' ) start [2025-04-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886407', 'tblTempUsageDetail_20' ) end [2025-04-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886407', 'tblTempVendorCDR_20' ) start [2025-04-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886407', 'tblTempVendorCDR_20' ) end [2025-04-11 19:38:19] Production.INFO: ProcessCDR(1,14886407,1,1,2) [2025-04-11 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886407', 'tblTempUsageDetail_20' ) start [2025-04-11 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886407', 'tblTempUsageDetail_20' ) end [2025-04-11 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:38:23] Production.INFO: ==10442== Releasing lock... [2025-04-11 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:38:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-11 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:39:06 [end_date_ymd] => 2025-04-11 19:39:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:39:06' and `end` < '2025-04-11 19: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-04-11 19:39:19] Production.INFO: count ==2356 [2025-04-11 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:39:06 - End Time 2025-04-11 19:39:06 [2025-04-11 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886412', 'tblTempUsageDetail_20' ) start [2025-04-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886412', 'tblTempUsageDetail_20' ) end [2025-04-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886412', 'tblTempVendorCDR_20' ) start [2025-04-11 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886412', 'tblTempVendorCDR_20' ) end [2025-04-11 19:39:19] Production.INFO: ProcessCDR(1,14886412,1,1,2) [2025-04-11 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886412', 'tblTempUsageDetail_20' ) start [2025-04-11 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886412', 'tblTempUsageDetail_20' ) end [2025-04-11 19:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:39:25] Production.INFO: ==10515== Releasing lock... [2025-04-11 19:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:39:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-11 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:40:06 [end_date_ymd] => 2025-04-11 19:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:40:06' and `end` < '2025-04-11 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-04-11 19:40:20] Production.INFO: count ==2341 [2025-04-11 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:40:06 - End Time 2025-04-11 19:40:06 [2025-04-11 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886417', 'tblTempUsageDetail_20' ) start [2025-04-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886417', 'tblTempUsageDetail_20' ) end [2025-04-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886417', 'tblTempVendorCDR_20' ) start [2025-04-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886417', 'tblTempVendorCDR_20' ) end [2025-04-11 19:40:20] Production.INFO: ProcessCDR(1,14886417,1,1,2) [2025-04-11 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886417', 'tblTempUsageDetail_20' ) start [2025-04-11 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886417', 'tblTempUsageDetail_20' ) end [2025-04-11 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:40:24] Production.INFO: ==10590== Releasing lock... [2025-04-11 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:40:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-11 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:41:06 [end_date_ymd] => 2025-04-11 19:41:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:41:06' and `end` < '2025-04-11 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-04-11 19:41:19] Production.INFO: count ==2350 [2025-04-11 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:41:06 - End Time 2025-04-11 19:41:06 [2025-04-11 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886423', 'tblTempUsageDetail_20' ) start [2025-04-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886423', 'tblTempUsageDetail_20' ) end [2025-04-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886423', 'tblTempVendorCDR_20' ) start [2025-04-11 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886423', 'tblTempVendorCDR_20' ) end [2025-04-11 19:41:20] Production.INFO: ProcessCDR(1,14886423,1,1,2) [2025-04-11 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886423', 'tblTempUsageDetail_20' ) start [2025-04-11 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886423', 'tblTempUsageDetail_20' ) end [2025-04-11 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:41:25] Production.INFO: ==10663== Releasing lock... [2025-04-11 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:41:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-11 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:42:06 [end_date_ymd] => 2025-04-11 19:42:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:42:06' and `end` < '2025-04-11 19: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-04-11 19:42:19] Production.INFO: count ==2344 [2025-04-11 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:42:06 - End Time 2025-04-11 19:42:06 [2025-04-11 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886428', 'tblTempUsageDetail_20' ) start [2025-04-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886428', 'tblTempUsageDetail_20' ) end [2025-04-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886428', 'tblTempVendorCDR_20' ) start [2025-04-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886428', 'tblTempVendorCDR_20' ) end [2025-04-11 19:42:19] Production.INFO: ProcessCDR(1,14886428,1,1,2) [2025-04-11 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886428', 'tblTempUsageDetail_20' ) start [2025-04-11 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886428', 'tblTempUsageDetail_20' ) end [2025-04-11 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:42:25] Production.INFO: ==10735== Releasing lock... [2025-04-11 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:42:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-11 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:43:06 [end_date_ymd] => 2025-04-11 19:43:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:43:06' and `end` < '2025-04-11 19: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-04-11 19:43:19] Production.INFO: count ==2338 [2025-04-11 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:43:06 - End Time 2025-04-11 19:43:06 [2025-04-11 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886433', 'tblTempUsageDetail_20' ) start [2025-04-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886433', 'tblTempUsageDetail_20' ) end [2025-04-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886433', 'tblTempVendorCDR_20' ) start [2025-04-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886433', 'tblTempVendorCDR_20' ) end [2025-04-11 19:43:19] Production.INFO: ProcessCDR(1,14886433,1,1,2) [2025-04-11 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886433', 'tblTempUsageDetail_20' ) start [2025-04-11 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886433', 'tblTempUsageDetail_20' ) end [2025-04-11 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:43:23] Production.INFO: ==10807== Releasing lock... [2025-04-11 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:43:23] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:44:05 [end_date_ymd] => 2025-04-11 19:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:44:05' and `end` < '2025-04-11 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-04-11 19:44:18] Production.INFO: count ==2328 [2025-04-11 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:44:05 - End Time 2025-04-11 19:44:05 [2025-04-11 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886438', 'tblTempUsageDetail_20' ) start [2025-04-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886438', 'tblTempUsageDetail_20' ) end [2025-04-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886438', 'tblTempVendorCDR_20' ) start [2025-04-11 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886438', 'tblTempVendorCDR_20' ) end [2025-04-11 19:44:19] Production.INFO: ProcessCDR(1,14886438,1,1,2) [2025-04-11 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886438', 'tblTempUsageDetail_20' ) start [2025-04-11 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886438', 'tblTempUsageDetail_20' ) end [2025-04-11 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:44:22] Production.INFO: ==10917== Releasing lock... [2025-04-11 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:44:22] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:45:06 [end_date_ymd] => 2025-04-11 19:45:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:45:06' and `end` < '2025-04-11 19: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-04-11 19:45:19] Production.INFO: count ==2327 [2025-04-11 19:45:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:45:06 - End Time 2025-04-11 19:45:06 [2025-04-11 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886443', 'tblTempUsageDetail_20' ) start [2025-04-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886443', 'tblTempUsageDetail_20' ) end [2025-04-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886443', 'tblTempVendorCDR_20' ) start [2025-04-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886443', 'tblTempVendorCDR_20' ) end [2025-04-11 19:45:20] Production.INFO: ProcessCDR(1,14886443,1,1,2) [2025-04-11 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886443', 'tblTempUsageDetail_20' ) start [2025-04-11 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886443', 'tblTempUsageDetail_20' ) end [2025-04-11 19:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:45:25] Production.INFO: ==10989== Releasing lock... [2025-04-11 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:45:25] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:46:05 [end_date_ymd] => 2025-04-11 19:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:46:05' and `end` < '2025-04-11 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-04-11 19:46:18] Production.INFO: count ==2324 [2025-04-11 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:46:05 - End Time 2025-04-11 19:46:05 [2025-04-11 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886448', 'tblTempUsageDetail_20' ) start [2025-04-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886448', 'tblTempUsageDetail_20' ) end [2025-04-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886448', 'tblTempVendorCDR_20' ) start [2025-04-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886448', 'tblTempVendorCDR_20' ) end [2025-04-11 19:46:19] Production.INFO: ProcessCDR(1,14886448,1,1,2) [2025-04-11 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886448', 'tblTempUsageDetail_20' ) start [2025-04-11 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886448', 'tblTempUsageDetail_20' ) end [2025-04-11 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:46:24] Production.INFO: ==11082== Releasing lock... [2025-04-11 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:46:24] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:47:06 [end_date_ymd] => 2025-04-11 19:47:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:47:06' and `end` < '2025-04-11 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-04-11 19:47:19] Production.INFO: count ==2313 [2025-04-11 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:47:06 - End Time 2025-04-11 19:47:06 [2025-04-11 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886453', 'tblTempUsageDetail_20' ) start [2025-04-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886453', 'tblTempUsageDetail_20' ) end [2025-04-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886453', 'tblTempVendorCDR_20' ) start [2025-04-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886453', 'tblTempVendorCDR_20' ) end [2025-04-11 19:47:19] Production.INFO: ProcessCDR(1,14886453,1,1,2) [2025-04-11 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886453', 'tblTempUsageDetail_20' ) start [2025-04-11 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886453', 'tblTempUsageDetail_20' ) end [2025-04-11 19:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:47:25] Production.INFO: ==11156== Releasing lock... [2025-04-11 19:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:47:25] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:48:06 [end_date_ymd] => 2025-04-11 19:48:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:48:06' and `end` < '2025-04-11 19: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-04-11 19:48:19] Production.INFO: count ==2313 [2025-04-11 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:48:06 - End Time 2025-04-11 19:48:06 [2025-04-11 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886458', 'tblTempUsageDetail_20' ) start [2025-04-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886458', 'tblTempUsageDetail_20' ) end [2025-04-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886458', 'tblTempVendorCDR_20' ) start [2025-04-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886458', 'tblTempVendorCDR_20' ) end [2025-04-11 19:48:19] Production.INFO: ProcessCDR(1,14886458,1,1,2) [2025-04-11 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886458', 'tblTempUsageDetail_20' ) start [2025-04-11 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886458', 'tblTempUsageDetail_20' ) end [2025-04-11 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:48:23] Production.INFO: ==11234== Releasing lock... [2025-04-11 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:48:23] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:49:06 [end_date_ymd] => 2025-04-11 19:49:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:49:06' and `end` < '2025-04-11 19: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-04-11 19:49:19] Production.INFO: count ==2313 [2025-04-11 19:49:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:49:06 - End Time 2025-04-11 19:49:06 [2025-04-11 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886463', 'tblTempUsageDetail_20' ) start [2025-04-11 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886463', 'tblTempUsageDetail_20' ) end [2025-04-11 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886463', 'tblTempVendorCDR_20' ) start [2025-04-11 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886463', 'tblTempVendorCDR_20' ) end [2025-04-11 19:49:20] Production.INFO: ProcessCDR(1,14886463,1,1,2) [2025-04-11 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886463', 'tblTempUsageDetail_20' ) start [2025-04-11 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886463', 'tblTempUsageDetail_20' ) end [2025-04-11 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:49:25] Production.INFO: ==11309== Releasing lock... [2025-04-11 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:49:25] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:50:07 [end_date_ymd] => 2025-04-11 19:50:07 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:50:07' and `end` < '2025-04-11 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-04-11 19:50:20] Production.INFO: count ==2302 [2025-04-11 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-11 16:50:07 - End Time 2025-04-11 19:50:07 [2025-04-11 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886469', 'tblTempUsageDetail_20' ) start [2025-04-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886469', 'tblTempUsageDetail_20' ) end [2025-04-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886469', 'tblTempVendorCDR_20' ) start [2025-04-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886469', 'tblTempVendorCDR_20' ) end [2025-04-11 19:50:20] Production.INFO: ProcessCDR(1,14886469,1,1,2) [2025-04-11 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886469', 'tblTempUsageDetail_20' ) start [2025-04-11 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886469', 'tblTempUsageDetail_20' ) end [2025-04-11 19:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:50:26] Production.INFO: ==11385== Releasing lock... [2025-04-11 19:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:50:26] Production.INFO: 45 MB #Memory Used# [2025-04-11 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:51:06 [end_date_ymd] => 2025-04-11 19:51:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:51:06' and `end` < '2025-04-11 19: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-04-11 19:51:19] Production.INFO: count ==2250 [2025-04-11 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:51:06 - End Time 2025-04-11 19:51:06 [2025-04-11 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886474', 'tblTempUsageDetail_20' ) start [2025-04-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886474', 'tblTempUsageDetail_20' ) end [2025-04-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886474', 'tblTempVendorCDR_20' ) start [2025-04-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886474', 'tblTempVendorCDR_20' ) end [2025-04-11 19:51:19] Production.INFO: ProcessCDR(1,14886474,1,1,2) [2025-04-11 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886474', 'tblTempUsageDetail_20' ) start [2025-04-11 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886474', 'tblTempUsageDetail_20' ) end [2025-04-11 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:51:23] Production.INFO: ==11457== Releasing lock... [2025-04-11 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:51:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-11 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:52:05 [end_date_ymd] => 2025-04-11 19:52:05 [RateCDR] => 1 ) [2025-04-11 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:52:05' and `end` < '2025-04-11 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:52:18] Production.INFO: count ==2247 [2025-04-11 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:52:05 - End Time 2025-04-11 19:52:05 [2025-04-11 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886479', 'tblTempUsageDetail_20' ) start [2025-04-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886479', 'tblTempUsageDetail_20' ) end [2025-04-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886479', 'tblTempVendorCDR_20' ) start [2025-04-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886479', 'tblTempVendorCDR_20' ) end [2025-04-11 19:52:19] Production.INFO: ProcessCDR(1,14886479,1,1,2) [2025-04-11 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886479', 'tblTempUsageDetail_20' ) start [2025-04-11 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886479', 'tblTempUsageDetail_20' ) end [2025-04-11 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:52:23] Production.INFO: ==11530== Releasing lock... [2025-04-11 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:52:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-11 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:53:06 [end_date_ymd] => 2025-04-11 19:53:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:53:06' and `end` < '2025-04-11 19: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-04-11 19:53:19] Production.INFO: count ==2240 [2025-04-11 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:53:06 - End Time 2025-04-11 19:53:06 [2025-04-11 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886484', 'tblTempUsageDetail_20' ) start [2025-04-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886484', 'tblTempUsageDetail_20' ) end [2025-04-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886484', 'tblTempVendorCDR_20' ) start [2025-04-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886484', 'tblTempVendorCDR_20' ) end [2025-04-11 19:53:19] Production.INFO: ProcessCDR(1,14886484,1,1,2) [2025-04-11 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886484', 'tblTempUsageDetail_20' ) start [2025-04-11 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886484', 'tblTempUsageDetail_20' ) end [2025-04-11 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:53:23] Production.INFO: ==11607== Releasing lock... [2025-04-11 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:53:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-11 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:54:06 [end_date_ymd] => 2025-04-11 19:54:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:54:06' and `end` < '2025-04-11 19: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-04-11 19:54:19] Production.INFO: count ==2231 [2025-04-11 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:54:06 - End Time 2025-04-11 19:54:06 [2025-04-11 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886489', 'tblTempUsageDetail_20' ) start [2025-04-11 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886489', 'tblTempUsageDetail_20' ) end [2025-04-11 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886489', 'tblTempVendorCDR_20' ) start [2025-04-11 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886489', 'tblTempVendorCDR_20' ) end [2025-04-11 19:54:19] Production.INFO: ProcessCDR(1,14886489,1,1,2) [2025-04-11 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886489', 'tblTempUsageDetail_20' ) start [2025-04-11 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886489', 'tblTempUsageDetail_20' ) end [2025-04-11 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:54:23] Production.INFO: ==11677== Releasing lock... [2025-04-11 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:54:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-11 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:55:05 [end_date_ymd] => 2025-04-11 19:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:55:05' and `end` < '2025-04-11 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-04-11 19:55:18] Production.INFO: count ==2206 [2025-04-11 19:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 16:55:05 - End Time 2025-04-11 19:55:05 [2025-04-11 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886494', 'tblTempUsageDetail_20' ) start [2025-04-11 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886494', 'tblTempUsageDetail_20' ) end [2025-04-11 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886494', 'tblTempVendorCDR_20' ) start [2025-04-11 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886494', 'tblTempVendorCDR_20' ) end [2025-04-11 19:55:18] Production.INFO: ProcessCDR(1,14886494,1,1,2) [2025-04-11 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886494', 'tblTempUsageDetail_20' ) start [2025-04-11 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886494', 'tblTempUsageDetail_20' ) end [2025-04-11 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:55:24] Production.INFO: ==11755== Releasing lock... [2025-04-11 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:55:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-11 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:56:06 [end_date_ymd] => 2025-04-11 19:56:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:56:06' and `end` < '2025-04-11 19: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-04-11 19:56:19] Production.INFO: count ==2200 [2025-04-11 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:56:06 - End Time 2025-04-11 19:56:06 [2025-04-11 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886499', 'tblTempUsageDetail_20' ) start [2025-04-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886499', 'tblTempUsageDetail_20' ) end [2025-04-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886499', 'tblTempVendorCDR_20' ) start [2025-04-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886499', 'tblTempVendorCDR_20' ) end [2025-04-11 19:56:19] Production.INFO: ProcessCDR(1,14886499,1,1,2) [2025-04-11 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886499', 'tblTempUsageDetail_20' ) start [2025-04-11 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886499', 'tblTempUsageDetail_20' ) end [2025-04-11 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:56:23] Production.INFO: ==11826== Releasing lock... [2025-04-11 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:56:23] Production.INFO: 44 MB #Memory Used# [2025-04-11 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:57:05 [end_date_ymd] => 2025-04-11 19:57:05 [RateCDR] => 1 ) [2025-04-11 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 16:57:05' and `end` < '2025-04-11 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 19:57:18] Production.INFO: count ==2187 [2025-04-11 19:57:18] Production.ERROR: pbx CDR StartTime 2025-04-11 16:57:05 - End Time 2025-04-11 19:57:05 [2025-04-11 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886504', 'tblTempUsageDetail_20' ) start [2025-04-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886504', 'tblTempUsageDetail_20' ) end [2025-04-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886504', 'tblTempVendorCDR_20' ) start [2025-04-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886504', 'tblTempVendorCDR_20' ) end [2025-04-11 19:57:18] Production.INFO: ProcessCDR(1,14886504,1,1,2) [2025-04-11 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886504', 'tblTempUsageDetail_20' ) start [2025-04-11 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886504', 'tblTempUsageDetail_20' ) end [2025-04-11 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:57:24] Production.INFO: ==11894== Releasing lock... [2025-04-11 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:57:24] Production.INFO: 44 MB #Memory Used# [2025-04-11 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:58:06 [end_date_ymd] => 2025-04-11 19:58:06 [RateCDR] => 1 ) [2025-04-11 19: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-04-11 16:58:06' and `end` < '2025-04-11 19: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-04-11 19:58:19] Production.INFO: count ==2189 [2025-04-11 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:58:06 - End Time 2025-04-11 19:58:06 [2025-04-11 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886509', 'tblTempUsageDetail_20' ) start [2025-04-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886509', 'tblTempUsageDetail_20' ) end [2025-04-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886509', 'tblTempVendorCDR_20' ) start [2025-04-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886509', 'tblTempVendorCDR_20' ) end [2025-04-11 19:58:19] Production.INFO: ProcessCDR(1,14886509,1,1,2) [2025-04-11 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886509', 'tblTempUsageDetail_20' ) start [2025-04-11 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886509', 'tblTempUsageDetail_20' ) end [2025-04-11 19:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:58:25] Production.INFO: ==11969== Releasing lock... [2025-04-11 19:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:58:25] Production.INFO: 44 MB #Memory Used# [2025-04-11 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 16:59:05 [end_date_ymd] => 2025-04-11 19:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 16:59:05' and `end` < '2025-04-11 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-04-11 19:59:18] Production.INFO: count ==2180 [2025-04-11 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-11 16:59:05 - End Time 2025-04-11 19:59:05 [2025-04-11 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886514', 'tblTempUsageDetail_20' ) start [2025-04-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886514', 'tblTempUsageDetail_20' ) end [2025-04-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886514', 'tblTempVendorCDR_20' ) start [2025-04-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886514', 'tblTempVendorCDR_20' ) end [2025-04-11 19:59:19] Production.INFO: ProcessCDR(1,14886514,1,1,2) [2025-04-11 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886514', 'tblTempUsageDetail_20' ) start [2025-04-11 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886514', 'tblTempUsageDetail_20' ) end [2025-04-11 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 19:59:23] Production.INFO: ==12037== Releasing lock... [2025-04-11 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 19:59:23] Production.INFO: 44 MB #Memory Used# [2025-04-11 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:00:07 [end_date_ymd] => 2025-04-11 20:00:07 [RateCDR] => 1 ) [2025-04-11 20: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-04-11 17:00:07' and `end` < '2025-04-11 20: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-04-11 20:00:20] Production.INFO: count ==2179 [2025-04-11 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-11 17:00:07 - End Time 2025-04-11 20:00:07 [2025-04-11 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886519', 'tblTempUsageDetail_20' ) start [2025-04-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886519', 'tblTempUsageDetail_20' ) end [2025-04-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886519', 'tblTempVendorCDR_20' ) start [2025-04-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886519', 'tblTempVendorCDR_20' ) end [2025-04-11 20:00:20] Production.INFO: ProcessCDR(1,14886519,1,1,2) [2025-04-11 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886519', 'tblTempUsageDetail_20' ) start [2025-04-11 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886519', 'tblTempUsageDetail_20' ) end [2025-04-11 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:00:24] Production.INFO: ==12150== Releasing lock... [2025-04-11 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:00:24] Production.INFO: 44 MB #Memory Used# [2025-04-11 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:01:05 [end_date_ymd] => 2025-04-11 20:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:01:05' and `end` < '2025-04-11 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-04-11 20:01:18] Production.INFO: count ==2137 [2025-04-11 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:01:05 - End Time 2025-04-11 20:01:05 [2025-04-11 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886525', 'tblTempUsageDetail_20' ) start [2025-04-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886525', 'tblTempUsageDetail_20' ) end [2025-04-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886525', 'tblTempVendorCDR_20' ) start [2025-04-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886525', 'tblTempVendorCDR_20' ) end [2025-04-11 20:01:19] Production.INFO: ProcessCDR(1,14886525,1,1,2) [2025-04-11 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886525', 'tblTempUsageDetail_20' ) start [2025-04-11 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886525', 'tblTempUsageDetail_20' ) end [2025-04-11 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:01:22] Production.INFO: ==12277== Releasing lock... [2025-04-11 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:01:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:02:06 [end_date_ymd] => 2025-04-11 20:02:06 [RateCDR] => 1 ) [2025-04-11 20:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:02:06' and `end` < '2025-04-11 20:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:02:19] Production.INFO: count ==2131 [2025-04-11 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:02:06 - End Time 2025-04-11 20:02:06 [2025-04-11 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886530', 'tblTempUsageDetail_20' ) start [2025-04-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886530', 'tblTempUsageDetail_20' ) end [2025-04-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886530', 'tblTempVendorCDR_20' ) start [2025-04-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886530', 'tblTempVendorCDR_20' ) end [2025-04-11 20:02:19] Production.INFO: ProcessCDR(1,14886530,1,1,2) [2025-04-11 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886530', 'tblTempUsageDetail_20' ) start [2025-04-11 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886530', 'tblTempUsageDetail_20' ) end [2025-04-11 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:02:25] Production.INFO: ==12353== Releasing lock... [2025-04-11 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:02:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:03:05 [end_date_ymd] => 2025-04-11 20:03:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:03:05' and `end` < '2025-04-11 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-04-11 20:03:18] Production.INFO: count ==2124 [2025-04-11 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:03:05 - End Time 2025-04-11 20:03:05 [2025-04-11 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886535', 'tblTempUsageDetail_20' ) start [2025-04-11 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886535', 'tblTempUsageDetail_20' ) end [2025-04-11 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886535', 'tblTempVendorCDR_20' ) start [2025-04-11 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886535', 'tblTempVendorCDR_20' ) end [2025-04-11 20:03:19] Production.INFO: ProcessCDR(1,14886535,1,1,2) [2025-04-11 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886535', 'tblTempUsageDetail_20' ) start [2025-04-11 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886535', 'tblTempUsageDetail_20' ) end [2025-04-11 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:03:23] Production.INFO: ==12429== Releasing lock... [2025-04-11 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:03:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:04:06 [end_date_ymd] => 2025-04-11 20:04:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:04:06' and `end` < '2025-04-11 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-04-11 20:04:19] Production.INFO: count ==2113 [2025-04-11 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:04:06 - End Time 2025-04-11 20:04:06 [2025-04-11 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886540', 'tblTempUsageDetail_20' ) start [2025-04-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886540', 'tblTempUsageDetail_20' ) end [2025-04-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886540', 'tblTempVendorCDR_20' ) start [2025-04-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886540', 'tblTempVendorCDR_20' ) end [2025-04-11 20:04:19] Production.INFO: ProcessCDR(1,14886540,1,1,2) [2025-04-11 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886540', 'tblTempUsageDetail_20' ) start [2025-04-11 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886540', 'tblTempUsageDetail_20' ) end [2025-04-11 20:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:04:25] Production.INFO: ==12502== Releasing lock... [2025-04-11 20:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:04:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:05:05 [end_date_ymd] => 2025-04-11 20:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:05:05' and `end` < '2025-04-11 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-04-11 20:05:19] Production.INFO: count ==2112 [2025-04-11 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:05:05 - End Time 2025-04-11 20:05:05 [2025-04-11 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886545', 'tblTempUsageDetail_20' ) start [2025-04-11 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886545', 'tblTempUsageDetail_20' ) end [2025-04-11 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886545', 'tblTempVendorCDR_20' ) start [2025-04-11 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886545', 'tblTempVendorCDR_20' ) end [2025-04-11 20:05:19] Production.INFO: ProcessCDR(1,14886545,1,1,2) [2025-04-11 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886545', 'tblTempUsageDetail_20' ) start [2025-04-11 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886545', 'tblTempUsageDetail_20' ) end [2025-04-11 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:05:23] Production.INFO: ==12574== Releasing lock... [2025-04-11 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:05:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:06:06 [end_date_ymd] => 2025-04-11 20:06:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:06:06' and `end` < '2025-04-11 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-04-11 20:06:19] Production.INFO: count ==2108 [2025-04-11 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:06:06 - End Time 2025-04-11 20:06:06 [2025-04-11 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886550', 'tblTempUsageDetail_20' ) start [2025-04-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886550', 'tblTempUsageDetail_20' ) end [2025-04-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886550', 'tblTempVendorCDR_20' ) start [2025-04-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886550', 'tblTempVendorCDR_20' ) end [2025-04-11 20:06:19] Production.INFO: ProcessCDR(1,14886550,1,1,2) [2025-04-11 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886550', 'tblTempUsageDetail_20' ) start [2025-04-11 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886550', 'tblTempUsageDetail_20' ) end [2025-04-11 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:06:23] Production.INFO: ==12644== Releasing lock... [2025-04-11 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:06:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:07:05 [end_date_ymd] => 2025-04-11 20:07:05 [RateCDR] => 1 ) [2025-04-11 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:07:05' and `end` < '2025-04-11 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:07:19] Production.INFO: count ==2107 [2025-04-11 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:07:05 - End Time 2025-04-11 20:07:05 [2025-04-11 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886555', 'tblTempUsageDetail_20' ) start [2025-04-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886555', 'tblTempUsageDetail_20' ) end [2025-04-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886555', 'tblTempVendorCDR_20' ) start [2025-04-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886555', 'tblTempVendorCDR_20' ) end [2025-04-11 20:07:19] Production.INFO: ProcessCDR(1,14886555,1,1,2) [2025-04-11 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886555', 'tblTempUsageDetail_20' ) start [2025-04-11 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886555', 'tblTempUsageDetail_20' ) end [2025-04-11 20:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:07:25] Production.INFO: ==12717== Releasing lock... [2025-04-11 20:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:07:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:08:06 [end_date_ymd] => 2025-04-11 20:08:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:08:06' and `end` < '2025-04-11 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-04-11 20:08:19] Production.INFO: count ==2106 [2025-04-11 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:08:06 - End Time 2025-04-11 20:08:06 [2025-04-11 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886560', 'tblTempUsageDetail_20' ) start [2025-04-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886560', 'tblTempUsageDetail_20' ) end [2025-04-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886560', 'tblTempVendorCDR_20' ) start [2025-04-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886560', 'tblTempVendorCDR_20' ) end [2025-04-11 20:08:19] Production.INFO: ProcessCDR(1,14886560,1,1,2) [2025-04-11 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886560', 'tblTempUsageDetail_20' ) start [2025-04-11 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886560', 'tblTempUsageDetail_20' ) end [2025-04-11 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:08:23] Production.INFO: ==12790== Releasing lock... [2025-04-11 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:08:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-11 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:09:05 [end_date_ymd] => 2025-04-11 20:09:05 [RateCDR] => 1 ) [2025-04-11 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:09:05' and `end` < '2025-04-11 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:09:18] Production.INFO: count ==2105 [2025-04-11 20:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:09:05 - End Time 2025-04-11 20:09:05 [2025-04-11 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886565', 'tblTempUsageDetail_20' ) start [2025-04-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886565', 'tblTempUsageDetail_20' ) end [2025-04-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886565', 'tblTempVendorCDR_20' ) start [2025-04-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886565', 'tblTempVendorCDR_20' ) end [2025-04-11 20:09:18] Production.INFO: ProcessCDR(1,14886565,1,1,2) [2025-04-11 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886565', 'tblTempUsageDetail_20' ) start [2025-04-11 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886565', 'tblTempUsageDetail_20' ) end [2025-04-11 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:09:22] Production.INFO: ==12867== Releasing lock... [2025-04-11 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:09:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-11 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:10:06 [end_date_ymd] => 2025-04-11 20:10:06 [RateCDR] => 1 ) [2025-04-11 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:10:06' and `end` < '2025-04-11 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:10:19] Production.INFO: count ==2103 [2025-04-11 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:10:06 - End Time 2025-04-11 20:10:06 [2025-04-11 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886571', 'tblTempUsageDetail_20' ) start [2025-04-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886571', 'tblTempUsageDetail_20' ) end [2025-04-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886571', 'tblTempVendorCDR_20' ) start [2025-04-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886571', 'tblTempVendorCDR_20' ) end [2025-04-11 20:10:19] Production.INFO: ProcessCDR(1,14886571,1,1,2) [2025-04-11 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886571', 'tblTempUsageDetail_20' ) start [2025-04-11 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886571', 'tblTempUsageDetail_20' ) end [2025-04-11 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:10:25] Production.INFO: ==12941== Releasing lock... [2025-04-11 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:10:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-11 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:11:05 [end_date_ymd] => 2025-04-11 20:11:05 [RateCDR] => 1 ) [2025-04-11 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:11:05' and `end` < '2025-04-11 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:11:18] Production.INFO: count ==2015 [2025-04-11 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:11:05 - End Time 2025-04-11 20:11:05 [2025-04-11 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886576', 'tblTempUsageDetail_20' ) start [2025-04-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886576', 'tblTempUsageDetail_20' ) end [2025-04-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886576', 'tblTempVendorCDR_20' ) start [2025-04-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886576', 'tblTempVendorCDR_20' ) end [2025-04-11 20:11:19] Production.INFO: ProcessCDR(1,14886576,1,1,2) [2025-04-11 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886576', 'tblTempUsageDetail_20' ) start [2025-04-11 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886576', 'tblTempUsageDetail_20' ) end [2025-04-11 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:11:22] Production.INFO: ==13015== Releasing lock... [2025-04-11 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:11:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-11 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:12:06 [end_date_ymd] => 2025-04-11 20:12:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:12:06' and `end` < '2025-04-11 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-04-11 20:12:19] Production.INFO: count ==2011 [2025-04-11 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:12:06 - End Time 2025-04-11 20:12:06 [2025-04-11 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886581', 'tblTempUsageDetail_20' ) start [2025-04-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886581', 'tblTempUsageDetail_20' ) end [2025-04-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886581', 'tblTempVendorCDR_20' ) start [2025-04-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886581', 'tblTempVendorCDR_20' ) end [2025-04-11 20:12:19] Production.INFO: ProcessCDR(1,14886581,1,1,2) [2025-04-11 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886581', 'tblTempUsageDetail_20' ) start [2025-04-11 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886581', 'tblTempUsageDetail_20' ) end [2025-04-11 20:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:12:25] Production.INFO: ==13090== Releasing lock... [2025-04-11 20:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:12:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-11 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:13:06 [end_date_ymd] => 2025-04-11 20:13:06 [RateCDR] => 1 ) [2025-04-11 20:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:13:06' and `end` < '2025-04-11 20:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:13:19] Production.INFO: count ==2012 [2025-04-11 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:13:06 - End Time 2025-04-11 20:13:06 [2025-04-11 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886586', 'tblTempUsageDetail_20' ) start [2025-04-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886586', 'tblTempUsageDetail_20' ) end [2025-04-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886586', 'tblTempVendorCDR_20' ) start [2025-04-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886586', 'tblTempVendorCDR_20' ) end [2025-04-11 20:13:19] Production.INFO: ProcessCDR(1,14886586,1,1,2) [2025-04-11 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886586', 'tblTempUsageDetail_20' ) start [2025-04-11 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886586', 'tblTempUsageDetail_20' ) end [2025-04-11 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:13:23] Production.INFO: ==13159== Releasing lock... [2025-04-11 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:13:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-11 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:14:06 [end_date_ymd] => 2025-04-11 20:14:06 [RateCDR] => 1 ) [2025-04-11 20: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-04-11 17:14:06' and `end` < '2025-04-11 20: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-04-11 20:14:19] Production.INFO: count ==2016 [2025-04-11 20:14:20] Production.ERROR: pbx CDR StartTime 2025-04-11 17:14:06 - End Time 2025-04-11 20:14:06 [2025-04-11 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886591', 'tblTempUsageDetail_20' ) start [2025-04-11 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886591', 'tblTempUsageDetail_20' ) end [2025-04-11 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886591', 'tblTempVendorCDR_20' ) start [2025-04-11 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886591', 'tblTempVendorCDR_20' ) end [2025-04-11 20:14:20] Production.INFO: ProcessCDR(1,14886591,1,1,2) [2025-04-11 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886591', 'tblTempUsageDetail_20' ) start [2025-04-11 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886591', 'tblTempUsageDetail_20' ) end [2025-04-11 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:14:23] Production.INFO: ==13233== Releasing lock... [2025-04-11 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:14:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-11 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:15:06 [end_date_ymd] => 2025-04-11 20:15:06 [RateCDR] => 1 ) [2025-04-11 20: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-04-11 17:15:06' and `end` < '2025-04-11 20: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-04-11 20:15:19] Production.INFO: count ==1993 [2025-04-11 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:15:06 - End Time 2025-04-11 20:15:06 [2025-04-11 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886596', 'tblTempUsageDetail_20' ) start [2025-04-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886596', 'tblTempUsageDetail_20' ) end [2025-04-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886596', 'tblTempVendorCDR_20' ) start [2025-04-11 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886596', 'tblTempVendorCDR_20' ) end [2025-04-11 20:15:19] Production.INFO: ProcessCDR(1,14886596,1,1,2) [2025-04-11 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886596', 'tblTempUsageDetail_20' ) start [2025-04-11 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886596', 'tblTempUsageDetail_20' ) end [2025-04-11 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:15:23] Production.INFO: ==13349== Releasing lock... [2025-04-11 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:15:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:16:05 [end_date_ymd] => 2025-04-11 20:16:05 [RateCDR] => 1 ) [2025-04-11 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:16:05' and `end` < '2025-04-11 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:16:18] Production.INFO: count ==1992 [2025-04-11 20:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:16:05 - End Time 2025-04-11 20:16:05 [2025-04-11 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886601', 'tblTempUsageDetail_20' ) start [2025-04-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886601', 'tblTempUsageDetail_20' ) end [2025-04-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886601', 'tblTempVendorCDR_20' ) start [2025-04-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886601', 'tblTempVendorCDR_20' ) end [2025-04-11 20:16:19] Production.INFO: ProcessCDR(1,14886601,1,1,2) [2025-04-11 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886601', 'tblTempUsageDetail_20' ) start [2025-04-11 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886601', 'tblTempUsageDetail_20' ) end [2025-04-11 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:16:22] Production.INFO: ==13422== Releasing lock... [2025-04-11 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:16:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:17:05 [end_date_ymd] => 2025-04-11 20:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:17:05' and `end` < '2025-04-11 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-04-11 20:17:18] Production.INFO: count ==1992 [2025-04-11 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:17:05 - End Time 2025-04-11 20:17:05 [2025-04-11 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886606', 'tblTempUsageDetail_20' ) start [2025-04-11 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886606', 'tblTempUsageDetail_20' ) end [2025-04-11 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886606', 'tblTempVendorCDR_20' ) start [2025-04-11 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886606', 'tblTempVendorCDR_20' ) end [2025-04-11 20:17:19] Production.INFO: ProcessCDR(1,14886606,1,1,2) [2025-04-11 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886606', 'tblTempUsageDetail_20' ) start [2025-04-11 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886606', 'tblTempUsageDetail_20' ) end [2025-04-11 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:17:24] Production.INFO: ==13499== Releasing lock... [2025-04-11 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:17:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-11 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:18:05 [end_date_ymd] => 2025-04-11 20:18:05 [RateCDR] => 1 ) [2025-04-11 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:18:05' and `end` < '2025-04-11 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:18:18] Production.INFO: count ==1988 [2025-04-11 20:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:18:05 - End Time 2025-04-11 20:18:05 [2025-04-11 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886611', 'tblTempUsageDetail_20' ) start [2025-04-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886611', 'tblTempUsageDetail_20' ) end [2025-04-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886611', 'tblTempVendorCDR_20' ) start [2025-04-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886611', 'tblTempVendorCDR_20' ) end [2025-04-11 20:18:18] Production.INFO: ProcessCDR(1,14886611,1,1,2) [2025-04-11 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886611', 'tblTempUsageDetail_20' ) start [2025-04-11 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886611', 'tblTempUsageDetail_20' ) end [2025-04-11 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:18:24] Production.INFO: ==13574== Releasing lock... [2025-04-11 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:18:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:19:06 [end_date_ymd] => 2025-04-11 20:19:06 [RateCDR] => 1 ) [2025-04-11 20: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-04-11 17:19:06' and `end` < '2025-04-11 20: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-04-11 20:19:19] Production.INFO: count ==1989 [2025-04-11 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:19:06 - End Time 2025-04-11 20:19:06 [2025-04-11 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886616', 'tblTempUsageDetail_20' ) start [2025-04-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886616', 'tblTempUsageDetail_20' ) end [2025-04-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886616', 'tblTempVendorCDR_20' ) start [2025-04-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886616', 'tblTempVendorCDR_20' ) end [2025-04-11 20:19:19] Production.INFO: ProcessCDR(1,14886616,1,1,2) [2025-04-11 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886616', 'tblTempUsageDetail_20' ) start [2025-04-11 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886616', 'tblTempUsageDetail_20' ) end [2025-04-11 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:19:23] Production.INFO: ==13646== Releasing lock... [2025-04-11 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:19:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:20:05 [end_date_ymd] => 2025-04-11 20:20:05 [RateCDR] => 1 ) [2025-04-11 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:20:05' and `end` < '2025-04-11 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:20:19] Production.INFO: count ==1988 [2025-04-11 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:20:05 - End Time 2025-04-11 20:20:05 [2025-04-11 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886622', 'tblTempUsageDetail_20' ) start [2025-04-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886622', 'tblTempUsageDetail_20' ) end [2025-04-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886622', 'tblTempVendorCDR_20' ) start [2025-04-11 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886622', 'tblTempVendorCDR_20' ) end [2025-04-11 20:20:19] Production.INFO: ProcessCDR(1,14886622,1,1,2) [2025-04-11 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886622', 'tblTempUsageDetail_20' ) start [2025-04-11 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886622', 'tblTempUsageDetail_20' ) end [2025-04-11 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:20:23] Production.INFO: ==13720== Releasing lock... [2025-04-11 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:20:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-11 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:21:06 [end_date_ymd] => 2025-04-11 20:21:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:21:06' and `end` < '2025-04-11 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-04-11 20:21:19] Production.INFO: count ==1940 [2025-04-11 20:21:20] Production.ERROR: pbx CDR StartTime 2025-04-11 17:21:06 - End Time 2025-04-11 20:21:06 [2025-04-11 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886627', 'tblTempUsageDetail_20' ) start [2025-04-11 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886627', 'tblTempUsageDetail_20' ) end [2025-04-11 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886627', 'tblTempVendorCDR_20' ) start [2025-04-11 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886627', 'tblTempVendorCDR_20' ) end [2025-04-11 20:21:20] Production.INFO: ProcessCDR(1,14886627,1,1,2) [2025-04-11 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886627', 'tblTempUsageDetail_20' ) start [2025-04-11 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886627', 'tblTempUsageDetail_20' ) end [2025-04-11 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:21:25] Production.INFO: ==13794== Releasing lock... [2025-04-11 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:21:25] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:22:05 [end_date_ymd] => 2025-04-11 20:22:05 [RateCDR] => 1 ) [2025-04-11 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:22:05' and `end` < '2025-04-11 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:22:18] Production.INFO: count ==1938 [2025-04-11 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:22:05 - End Time 2025-04-11 20:22:05 [2025-04-11 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886632', 'tblTempUsageDetail_20' ) start [2025-04-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886632', 'tblTempUsageDetail_20' ) end [2025-04-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886632', 'tblTempVendorCDR_20' ) start [2025-04-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886632', 'tblTempVendorCDR_20' ) end [2025-04-11 20:22:19] Production.INFO: ProcessCDR(1,14886632,1,1,2) [2025-04-11 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886632', 'tblTempUsageDetail_20' ) start [2025-04-11 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886632', 'tblTempUsageDetail_20' ) end [2025-04-11 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:22:24] Production.INFO: ==13865== Releasing lock... [2025-04-11 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:22:24] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:23:05 [end_date_ymd] => 2025-04-11 20:23:05 [RateCDR] => 1 ) [2025-04-11 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:23:05' and `end` < '2025-04-11 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:23:18] Production.INFO: count ==1936 [2025-04-11 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:23:05 - End Time 2025-04-11 20:23:05 [2025-04-11 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886637', 'tblTempUsageDetail_20' ) start [2025-04-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886637', 'tblTempUsageDetail_20' ) end [2025-04-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886637', 'tblTempVendorCDR_20' ) start [2025-04-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886637', 'tblTempVendorCDR_20' ) end [2025-04-11 20:23:19] Production.INFO: ProcessCDR(1,14886637,1,1,2) [2025-04-11 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886637', 'tblTempUsageDetail_20' ) start [2025-04-11 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886637', 'tblTempUsageDetail_20' ) end [2025-04-11 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:23:24] Production.INFO: ==13936== Releasing lock... [2025-04-11 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:23:24] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:24:05 [end_date_ymd] => 2025-04-11 20:24:05 [RateCDR] => 1 ) [2025-04-11 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:24:05' and `end` < '2025-04-11 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:24:18] Production.INFO: count ==1933 [2025-04-11 20:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:24:05 - End Time 2025-04-11 20:24:05 [2025-04-11 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886642', 'tblTempUsageDetail_20' ) start [2025-04-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886642', 'tblTempUsageDetail_20' ) end [2025-04-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886642', 'tblTempVendorCDR_20' ) start [2025-04-11 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886642', 'tblTempVendorCDR_20' ) end [2025-04-11 20:24:19] Production.INFO: ProcessCDR(1,14886642,1,1,2) [2025-04-11 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886642', 'tblTempUsageDetail_20' ) start [2025-04-11 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886642', 'tblTempUsageDetail_20' ) end [2025-04-11 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:24:22] Production.INFO: ==14013== Releasing lock... [2025-04-11 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:24:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-11 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:25:05 [end_date_ymd] => 2025-04-11 20:25:05 [RateCDR] => 1 ) [2025-04-11 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:25:05' and `end` < '2025-04-11 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:25:18] Production.INFO: count ==1931 [2025-04-11 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:25:05 - End Time 2025-04-11 20:25:05 [2025-04-11 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886647', 'tblTempUsageDetail_20' ) start [2025-04-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886647', 'tblTempUsageDetail_20' ) end [2025-04-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886647', 'tblTempVendorCDR_20' ) start [2025-04-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886647', 'tblTempVendorCDR_20' ) end [2025-04-11 20:25:19] Production.INFO: ProcessCDR(1,14886647,1,1,2) [2025-04-11 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886647', 'tblTempUsageDetail_20' ) start [2025-04-11 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886647', 'tblTempUsageDetail_20' ) end [2025-04-11 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:25:22] Production.INFO: ==14085== Releasing lock... [2025-04-11 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:25:22] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:26:05 [end_date_ymd] => 2025-04-11 20:26:05 [RateCDR] => 1 ) [2025-04-11 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:26:05' and `end` < '2025-04-11 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:26:18] Production.INFO: count ==1934 [2025-04-11 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:26:05 - End Time 2025-04-11 20:26:05 [2025-04-11 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886652', 'tblTempUsageDetail_20' ) start [2025-04-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886652', 'tblTempUsageDetail_20' ) end [2025-04-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886652', 'tblTempVendorCDR_20' ) start [2025-04-11 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886652', 'tblTempVendorCDR_20' ) end [2025-04-11 20:26:18] Production.INFO: ProcessCDR(1,14886652,1,1,2) [2025-04-11 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886652', 'tblTempUsageDetail_20' ) start [2025-04-11 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886652', 'tblTempUsageDetail_20' ) end [2025-04-11 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:26:22] Production.INFO: ==14157== Releasing lock... [2025-04-11 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:26:22] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:27:05 [end_date_ymd] => 2025-04-11 20:27:05 [RateCDR] => 1 ) [2025-04-11 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:27:05' and `end` < '2025-04-11 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:27:18] Production.INFO: count ==1933 [2025-04-11 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:27:05 - End Time 2025-04-11 20:27:05 [2025-04-11 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886657', 'tblTempUsageDetail_20' ) start [2025-04-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886657', 'tblTempUsageDetail_20' ) end [2025-04-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886657', 'tblTempVendorCDR_20' ) start [2025-04-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886657', 'tblTempVendorCDR_20' ) end [2025-04-11 20:27:19] Production.INFO: ProcessCDR(1,14886657,1,1,2) [2025-04-11 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886657', 'tblTempUsageDetail_20' ) start [2025-04-11 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886657', 'tblTempUsageDetail_20' ) end [2025-04-11 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:27:22] Production.INFO: ==14229== Releasing lock... [2025-04-11 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:27:22] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:28:05 [end_date_ymd] => 2025-04-11 20:28:05 [RateCDR] => 1 ) [2025-04-11 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:28:05' and `end` < '2025-04-11 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:28:18] Production.INFO: count ==1933 [2025-04-11 20:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:28:05 - End Time 2025-04-11 20:28:05 [2025-04-11 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886662', 'tblTempUsageDetail_20' ) start [2025-04-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886662', 'tblTempUsageDetail_20' ) end [2025-04-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886662', 'tblTempVendorCDR_20' ) start [2025-04-11 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886662', 'tblTempVendorCDR_20' ) end [2025-04-11 20:28:18] Production.INFO: ProcessCDR(1,14886662,1,1,2) [2025-04-11 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886662', 'tblTempUsageDetail_20' ) start [2025-04-11 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886662', 'tblTempUsageDetail_20' ) end [2025-04-11 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:28:21] Production.INFO: ==14299== Releasing lock... [2025-04-11 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:28:21] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:29:05 [end_date_ymd] => 2025-04-11 20:29:05 [RateCDR] => 1 ) [2025-04-11 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:29:05' and `end` < '2025-04-11 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:29:18] Production.INFO: count ==1927 [2025-04-11 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:29:05 - End Time 2025-04-11 20:29:05 [2025-04-11 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886667', 'tblTempUsageDetail_20' ) start [2025-04-11 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886667', 'tblTempUsageDetail_20' ) end [2025-04-11 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886667', 'tblTempVendorCDR_20' ) start [2025-04-11 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886667', 'tblTempVendorCDR_20' ) end [2025-04-11 20:29:18] Production.INFO: ProcessCDR(1,14886667,1,1,2) [2025-04-11 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886667', 'tblTempUsageDetail_20' ) start [2025-04-11 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886667', 'tblTempUsageDetail_20' ) end [2025-04-11 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:29:23] Production.INFO: ==14377== Releasing lock... [2025-04-11 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:29:23] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:30:06 [end_date_ymd] => 2025-04-11 20:30:06 [RateCDR] => 1 ) [2025-04-11 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:30:06' and `end` < '2025-04-11 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:30:19] Production.INFO: count ==1926 [2025-04-11 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:30:06 - End Time 2025-04-11 20:30:06 [2025-04-11 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886673', 'tblTempUsageDetail_20' ) start [2025-04-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886673', 'tblTempUsageDetail_20' ) end [2025-04-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886673', 'tblTempVendorCDR_20' ) start [2025-04-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886673', 'tblTempVendorCDR_20' ) end [2025-04-11 20:30:19] Production.INFO: ProcessCDR(1,14886673,1,1,2) [2025-04-11 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886673', 'tblTempUsageDetail_20' ) start [2025-04-11 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886673', 'tblTempUsageDetail_20' ) end [2025-04-11 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:30:23] Production.INFO: ==14492== Releasing lock... [2025-04-11 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:30:23] Production.INFO: 42 MB #Memory Used# [2025-04-11 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:31:05 [end_date_ymd] => 2025-04-11 20:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:31:05' and `end` < '2025-04-11 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-04-11 20:31:18] Production.INFO: count ==1829 [2025-04-11 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:31:05 - End Time 2025-04-11 20:31:05 [2025-04-11 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886678', 'tblTempUsageDetail_20' ) start [2025-04-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886678', 'tblTempUsageDetail_20' ) end [2025-04-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886678', 'tblTempVendorCDR_20' ) start [2025-04-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886678', 'tblTempVendorCDR_20' ) end [2025-04-11 20:31:19] Production.INFO: ProcessCDR(1,14886678,1,1,2) [2025-04-11 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886678', 'tblTempUsageDetail_20' ) start [2025-04-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886678', 'tblTempUsageDetail_20' ) end [2025-04-11 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:31:22] Production.INFO: ==14565== Releasing lock... [2025-04-11 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:31:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-11 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:32:06 [end_date_ymd] => 2025-04-11 20:32:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:32:06' and `end` < '2025-04-11 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-04-11 20:32:19] Production.INFO: count ==1818 [2025-04-11 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:32:06 - End Time 2025-04-11 20:32:06 [2025-04-11 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886683', 'tblTempUsageDetail_20' ) start [2025-04-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886683', 'tblTempUsageDetail_20' ) end [2025-04-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886683', 'tblTempVendorCDR_20' ) start [2025-04-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886683', 'tblTempVendorCDR_20' ) end [2025-04-11 20:32:19] Production.INFO: ProcessCDR(1,14886683,1,1,2) [2025-04-11 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886683', 'tblTempUsageDetail_20' ) start [2025-04-11 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886683', 'tblTempUsageDetail_20' ) end [2025-04-11 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:32:23] Production.INFO: ==14637== Releasing lock... [2025-04-11 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:32:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-11 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:33:05 [end_date_ymd] => 2025-04-11 20:33:05 [RateCDR] => 1 ) [2025-04-11 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:33:05' and `end` < '2025-04-11 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:33:19] Production.INFO: count ==1814 [2025-04-11 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:33:05 - End Time 2025-04-11 20:33:05 [2025-04-11 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886688', 'tblTempUsageDetail_20' ) start [2025-04-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886688', 'tblTempUsageDetail_20' ) end [2025-04-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886688', 'tblTempVendorCDR_20' ) start [2025-04-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886688', 'tblTempVendorCDR_20' ) end [2025-04-11 20:33:19] Production.INFO: ProcessCDR(1,14886688,1,1,2) [2025-04-11 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886688', 'tblTempUsageDetail_20' ) start [2025-04-11 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886688', 'tblTempUsageDetail_20' ) end [2025-04-11 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:33:23] Production.INFO: ==14709== Releasing lock... [2025-04-11 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:33:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-11 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:34:05 [end_date_ymd] => 2025-04-11 20:34:05 [RateCDR] => 1 ) [2025-04-11 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:34:05' and `end` < '2025-04-11 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:34:18] Production.INFO: count ==1812 [2025-04-11 20:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:34:05 - End Time 2025-04-11 20:34:05 [2025-04-11 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886693', 'tblTempUsageDetail_20' ) start [2025-04-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886693', 'tblTempUsageDetail_20' ) end [2025-04-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886693', 'tblTempVendorCDR_20' ) start [2025-04-11 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886693', 'tblTempVendorCDR_20' ) end [2025-04-11 20:34:18] Production.INFO: ProcessCDR(1,14886693,1,1,2) [2025-04-11 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886693', 'tblTempUsageDetail_20' ) start [2025-04-11 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886693', 'tblTempUsageDetail_20' ) end [2025-04-11 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:34:24] Production.INFO: ==14781== Releasing lock... [2025-04-11 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:34:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-11 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:35:05 [end_date_ymd] => 2025-04-11 20:35:05 [RateCDR] => 1 ) [2025-04-11 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:35:05' and `end` < '2025-04-11 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:35:18] Production.INFO: count ==1813 [2025-04-11 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:35:05 - End Time 2025-04-11 20:35:05 [2025-04-11 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886698', 'tblTempUsageDetail_20' ) start [2025-04-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886698', 'tblTempUsageDetail_20' ) end [2025-04-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886698', 'tblTempVendorCDR_20' ) start [2025-04-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886698', 'tblTempVendorCDR_20' ) end [2025-04-11 20:35:18] Production.INFO: ProcessCDR(1,14886698,1,1,2) [2025-04-11 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886698', 'tblTempUsageDetail_20' ) start [2025-04-11 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886698', 'tblTempUsageDetail_20' ) end [2025-04-11 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:35:24] Production.INFO: ==14853== Releasing lock... [2025-04-11 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:35:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-11 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:36:05 [end_date_ymd] => 2025-04-11 20:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:36:05' and `end` < '2025-04-11 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-04-11 20:36:18] Production.INFO: count ==1813 [2025-04-11 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:36:05 - End Time 2025-04-11 20:36:05 [2025-04-11 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886703', 'tblTempUsageDetail_20' ) start [2025-04-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886703', 'tblTempUsageDetail_20' ) end [2025-04-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886703', 'tblTempVendorCDR_20' ) start [2025-04-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886703', 'tblTempVendorCDR_20' ) end [2025-04-11 20:36:19] Production.INFO: ProcessCDR(1,14886703,1,1,2) [2025-04-11 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886703', 'tblTempUsageDetail_20' ) start [2025-04-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886703', 'tblTempUsageDetail_20' ) end [2025-04-11 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:36:22] Production.INFO: ==14925== Releasing lock... [2025-04-11 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:36:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-11 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:37:06 [end_date_ymd] => 2025-04-11 20:37:06 [RateCDR] => 1 ) [2025-04-11 20: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-04-11 17:37:06' and `end` < '2025-04-11 20: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-04-11 20:37:19] Production.INFO: count ==1810 [2025-04-11 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:37:06 - End Time 2025-04-11 20:37:06 [2025-04-11 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886708', 'tblTempUsageDetail_20' ) start [2025-04-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886708', 'tblTempUsageDetail_20' ) end [2025-04-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886708', 'tblTempVendorCDR_20' ) start [2025-04-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886708', 'tblTempVendorCDR_20' ) end [2025-04-11 20:37:19] Production.INFO: ProcessCDR(1,14886708,1,1,2) [2025-04-11 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886708', 'tblTempUsageDetail_20' ) start [2025-04-11 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886708', 'tblTempUsageDetail_20' ) end [2025-04-11 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:37:24] Production.INFO: ==14995== Releasing lock... [2025-04-11 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:37:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-11 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:38:05 [end_date_ymd] => 2025-04-11 20:38:05 [RateCDR] => 1 ) [2025-04-11 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:38:05' and `end` < '2025-04-11 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:38:19] Production.INFO: count ==1794 [2025-04-11 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:38:05 - End Time 2025-04-11 20:38:05 [2025-04-11 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886713', 'tblTempUsageDetail_20' ) start [2025-04-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886713', 'tblTempUsageDetail_20' ) end [2025-04-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886713', 'tblTempVendorCDR_20' ) start [2025-04-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886713', 'tblTempVendorCDR_20' ) end [2025-04-11 20:38:19] Production.INFO: ProcessCDR(1,14886713,1,1,2) [2025-04-11 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886713', 'tblTempUsageDetail_20' ) start [2025-04-11 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886713', 'tblTempUsageDetail_20' ) end [2025-04-11 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:38:22] Production.INFO: ==15063== Releasing lock... [2025-04-11 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:38:22] Production.INFO: 41 MB #Memory Used# [2025-04-11 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:39:06 [end_date_ymd] => 2025-04-11 20:39:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:39:06' and `end` < '2025-04-11 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-04-11 20:39:19] Production.INFO: count ==1784 [2025-04-11 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:39:06 - End Time 2025-04-11 20:39:06 [2025-04-11 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886718', 'tblTempUsageDetail_20' ) start [2025-04-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886718', 'tblTempUsageDetail_20' ) end [2025-04-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886718', 'tblTempVendorCDR_20' ) start [2025-04-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886718', 'tblTempVendorCDR_20' ) end [2025-04-11 20:39:19] Production.INFO: ProcessCDR(1,14886718,1,1,2) [2025-04-11 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886718', 'tblTempUsageDetail_20' ) start [2025-04-11 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886718', 'tblTempUsageDetail_20' ) end [2025-04-11 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:39:23] Production.INFO: ==15141== Releasing lock... [2025-04-11 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:39:23] Production.INFO: 41 MB #Memory Used# [2025-04-11 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:40:06 [end_date_ymd] => 2025-04-11 20:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:40:06' and `end` < '2025-04-11 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-04-11 20:40:19] Production.INFO: count ==1782 [2025-04-11 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:40:06 - End Time 2025-04-11 20:40:06 [2025-04-11 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886724', 'tblTempUsageDetail_20' ) start [2025-04-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886724', 'tblTempUsageDetail_20' ) end [2025-04-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886724', 'tblTempVendorCDR_20' ) start [2025-04-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886724', 'tblTempVendorCDR_20' ) end [2025-04-11 20:40:19] Production.INFO: ProcessCDR(1,14886724,1,1,2) [2025-04-11 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886724', 'tblTempUsageDetail_20' ) start [2025-04-11 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886724', 'tblTempUsageDetail_20' ) end [2025-04-11 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:40:22] Production.INFO: ==15215== Releasing lock... [2025-04-11 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:40:22] Production.INFO: 41 MB #Memory Used# [2025-04-11 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:41:06 [end_date_ymd] => 2025-04-11 20:41:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:41:06' and `end` < '2025-04-11 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-04-11 20:41:19] Production.INFO: count ==1751 [2025-04-11 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:41:06 - End Time 2025-04-11 20:41:06 [2025-04-11 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886729', 'tblTempUsageDetail_20' ) start [2025-04-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886729', 'tblTempUsageDetail_20' ) end [2025-04-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886729', 'tblTempVendorCDR_20' ) start [2025-04-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886729', 'tblTempVendorCDR_20' ) end [2025-04-11 20:41:19] Production.INFO: ProcessCDR(1,14886729,1,1,2) [2025-04-11 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886729', 'tblTempUsageDetail_20' ) start [2025-04-11 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886729', 'tblTempUsageDetail_20' ) end [2025-04-11 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:41:23] Production.INFO: ==15289== Releasing lock... [2025-04-11 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:41:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:42:05 [end_date_ymd] => 2025-04-11 20:42:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:42:05' and `end` < '2025-04-11 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-04-11 20:42:18] Production.INFO: count ==1766 [2025-04-11 20:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:42:05 - End Time 2025-04-11 20:42:05 [2025-04-11 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886734', 'tblTempUsageDetail_20' ) start [2025-04-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886734', 'tblTempUsageDetail_20' ) end [2025-04-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886734', 'tblTempVendorCDR_20' ) start [2025-04-11 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886734', 'tblTempVendorCDR_20' ) end [2025-04-11 20:42:18] Production.INFO: ProcessCDR(1,14886734,1,1,2) [2025-04-11 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886734', 'tblTempUsageDetail_20' ) start [2025-04-11 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886734', 'tblTempUsageDetail_20' ) end [2025-04-11 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:42:23] Production.INFO: ==15359== Releasing lock... [2025-04-11 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:42:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:43:06 [end_date_ymd] => 2025-04-11 20:43:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:43:06' and `end` < '2025-04-11 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-04-11 20:43:19] Production.INFO: count ==1765 [2025-04-11 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:43:06 - End Time 2025-04-11 20:43:06 [2025-04-11 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886739', 'tblTempUsageDetail_20' ) start [2025-04-11 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886739', 'tblTempUsageDetail_20' ) end [2025-04-11 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886739', 'tblTempVendorCDR_20' ) start [2025-04-11 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886739', 'tblTempVendorCDR_20' ) end [2025-04-11 20:43:19] Production.INFO: ProcessCDR(1,14886739,1,1,2) [2025-04-11 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886739', 'tblTempUsageDetail_20' ) start [2025-04-11 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886739', 'tblTempUsageDetail_20' ) end [2025-04-11 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:43:23] Production.INFO: ==15435== Releasing lock... [2025-04-11 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:43:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:44:05 [end_date_ymd] => 2025-04-11 20:44:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:44:05' and `end` < '2025-04-11 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-04-11 20:44:18] Production.INFO: count ==1765 [2025-04-11 20:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:44:05 - End Time 2025-04-11 20:44:05 [2025-04-11 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886744', 'tblTempUsageDetail_20' ) start [2025-04-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886744', 'tblTempUsageDetail_20' ) end [2025-04-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886744', 'tblTempVendorCDR_20' ) start [2025-04-11 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886744', 'tblTempVendorCDR_20' ) end [2025-04-11 20:44:18] Production.INFO: ProcessCDR(1,14886744,1,1,2) [2025-04-11 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886744', 'tblTempUsageDetail_20' ) start [2025-04-11 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886744', 'tblTempUsageDetail_20' ) end [2025-04-11 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:44:22] Production.INFO: ==15505== Releasing lock... [2025-04-11 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:44:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:45:05 [end_date_ymd] => 2025-04-11 20:45:05 [RateCDR] => 1 ) [2025-04-11 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:45:05' and `end` < '2025-04-11 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:45:18] Production.INFO: count ==1765 [2025-04-11 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:45:05 - End Time 2025-04-11 20:45:05 [2025-04-11 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886749', 'tblTempUsageDetail_20' ) start [2025-04-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886749', 'tblTempUsageDetail_20' ) end [2025-04-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886749', 'tblTempVendorCDR_20' ) start [2025-04-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886749', 'tblTempVendorCDR_20' ) end [2025-04-11 20:45:18] Production.INFO: ProcessCDR(1,14886749,1,1,2) [2025-04-11 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886749', 'tblTempUsageDetail_20' ) start [2025-04-11 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886749', 'tblTempUsageDetail_20' ) end [2025-04-11 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:45:22] Production.INFO: ==15583== Releasing lock... [2025-04-11 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:46:05 [end_date_ymd] => 2025-04-11 20:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:46:05' and `end` < '2025-04-11 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-04-11 20:46:18] Production.INFO: count ==1751 [2025-04-11 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:46:05 - End Time 2025-04-11 20:46:05 [2025-04-11 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886754', 'tblTempUsageDetail_20' ) start [2025-04-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886754', 'tblTempUsageDetail_20' ) end [2025-04-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886754', 'tblTempVendorCDR_20' ) start [2025-04-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886754', 'tblTempVendorCDR_20' ) end [2025-04-11 20:46:19] Production.INFO: ProcessCDR(1,14886754,1,1,2) [2025-04-11 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886754', 'tblTempUsageDetail_20' ) start [2025-04-11 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886754', 'tblTempUsageDetail_20' ) end [2025-04-11 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:46:24] Production.INFO: ==15693== Releasing lock... [2025-04-11 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:46:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:47:05 [end_date_ymd] => 2025-04-11 20:47:05 [RateCDR] => 1 ) [2025-04-11 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:47:05' and `end` < '2025-04-11 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:47:18] Production.INFO: count ==1747 [2025-04-11 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:47:05 - End Time 2025-04-11 20:47:05 [2025-04-11 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886759', 'tblTempUsageDetail_20' ) start [2025-04-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886759', 'tblTempUsageDetail_20' ) end [2025-04-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886759', 'tblTempVendorCDR_20' ) start [2025-04-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886759', 'tblTempVendorCDR_20' ) end [2025-04-11 20:47:19] Production.INFO: ProcessCDR(1,14886759,1,1,2) [2025-04-11 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886759', 'tblTempUsageDetail_20' ) start [2025-04-11 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886759', 'tblTempUsageDetail_20' ) end [2025-04-11 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:47:22] Production.INFO: ==15766== Releasing lock... [2025-04-11 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:48:05 [end_date_ymd] => 2025-04-11 20:48:05 [RateCDR] => 1 ) [2025-04-11 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:48:05' and `end` < '2025-04-11 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:48:18] Production.INFO: count ==1745 [2025-04-11 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:48:05 - End Time 2025-04-11 20:48:05 [2025-04-11 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886764', 'tblTempUsageDetail_20' ) start [2025-04-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886764', 'tblTempUsageDetail_20' ) end [2025-04-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886764', 'tblTempVendorCDR_20' ) start [2025-04-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886764', 'tblTempVendorCDR_20' ) end [2025-04-11 20:48:18] Production.INFO: ProcessCDR(1,14886764,1,1,2) [2025-04-11 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886764', 'tblTempUsageDetail_20' ) start [2025-04-11 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886764', 'tblTempUsageDetail_20' ) end [2025-04-11 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:48:21] Production.INFO: ==15836== Releasing lock... [2025-04-11 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:48:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:49:05 [end_date_ymd] => 2025-04-11 20:49:05 [RateCDR] => 1 ) [2025-04-11 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:49:05' and `end` < '2025-04-11 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:49:18] Production.INFO: count ==1742 [2025-04-11 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:49:05 - End Time 2025-04-11 20:49:05 [2025-04-11 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886769', 'tblTempUsageDetail_20' ) start [2025-04-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886769', 'tblTempUsageDetail_20' ) end [2025-04-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886769', 'tblTempVendorCDR_20' ) start [2025-04-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886769', 'tblTempVendorCDR_20' ) end [2025-04-11 20:49:19] Production.INFO: ProcessCDR(1,14886769,1,1,2) [2025-04-11 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886769', 'tblTempUsageDetail_20' ) start [2025-04-11 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886769', 'tblTempUsageDetail_20' ) end [2025-04-11 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:49:24] Production.INFO: ==15907== Releasing lock... [2025-04-11 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:49:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-11 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:50:05 [end_date_ymd] => 2025-04-11 20:50:05 [RateCDR] => 1 ) [2025-04-11 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:50:05' and `end` < '2025-04-11 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:50:19] Production.INFO: count ==1736 [2025-04-11 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:50:05 - End Time 2025-04-11 20:50:05 [2025-04-11 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886775', 'tblTempUsageDetail_20' ) start [2025-04-11 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886775', 'tblTempUsageDetail_20' ) end [2025-04-11 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886775', 'tblTempVendorCDR_20' ) start [2025-04-11 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886775', 'tblTempVendorCDR_20' ) end [2025-04-11 20:50:19] Production.INFO: ProcessCDR(1,14886775,1,1,2) [2025-04-11 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886775', 'tblTempUsageDetail_20' ) start [2025-04-11 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886775', 'tblTempUsageDetail_20' ) end [2025-04-11 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:50:22] Production.INFO: ==15990== Releasing lock... [2025-04-11 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:50:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-11 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:51:05 [end_date_ymd] => 2025-04-11 20:51:05 [RateCDR] => 1 ) [2025-04-11 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:51:05' and `end` < '2025-04-11 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:51:18] Production.INFO: count ==1710 [2025-04-11 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:51:05 - End Time 2025-04-11 20:51:05 [2025-04-11 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886780', 'tblTempUsageDetail_20' ) start [2025-04-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886780', 'tblTempUsageDetail_20' ) end [2025-04-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886780', 'tblTempVendorCDR_20' ) start [2025-04-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886780', 'tblTempVendorCDR_20' ) end [2025-04-11 20:51:19] Production.INFO: ProcessCDR(1,14886780,1,1,2) [2025-04-11 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886780', 'tblTempUsageDetail_20' ) start [2025-04-11 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886780', 'tblTempUsageDetail_20' ) end [2025-04-11 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:51:22] Production.INFO: ==16068== Releasing lock... [2025-04-11 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:51:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-11 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:52:05 [end_date_ymd] => 2025-04-11 20:52:05 [RateCDR] => 1 ) [2025-04-11 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:52:05' and `end` < '2025-04-11 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:52:18] Production.INFO: count ==1706 [2025-04-11 20:52:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:52:05 - End Time 2025-04-11 20:52:05 [2025-04-11 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886785', 'tblTempUsageDetail_20' ) start [2025-04-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886785', 'tblTempUsageDetail_20' ) end [2025-04-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886785', 'tblTempVendorCDR_20' ) start [2025-04-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886785', 'tblTempVendorCDR_20' ) end [2025-04-11 20:52:18] Production.INFO: ProcessCDR(1,14886785,1,1,2) [2025-04-11 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886785', 'tblTempUsageDetail_20' ) start [2025-04-11 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886785', 'tblTempUsageDetail_20' ) end [2025-04-11 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:52:23] Production.INFO: ==16140== Releasing lock... [2025-04-11 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:53:05 [end_date_ymd] => 2025-04-11 20:53:05 [RateCDR] => 1 ) [2025-04-11 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:53:05' and `end` < '2025-04-11 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:53:19] Production.INFO: count ==1704 [2025-04-11 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:53:05 - End Time 2025-04-11 20:53:05 [2025-04-11 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886790', 'tblTempUsageDetail_20' ) start [2025-04-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886790', 'tblTempUsageDetail_20' ) end [2025-04-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886790', 'tblTempVendorCDR_20' ) start [2025-04-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886790', 'tblTempVendorCDR_20' ) end [2025-04-11 20:53:19] Production.INFO: ProcessCDR(1,14886790,1,1,2) [2025-04-11 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886790', 'tblTempUsageDetail_20' ) start [2025-04-11 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886790', 'tblTempUsageDetail_20' ) end [2025-04-11 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:53:24] Production.INFO: ==16214== Releasing lock... [2025-04-11 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:53:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:54:05 [end_date_ymd] => 2025-04-11 20:54:05 [RateCDR] => 1 ) [2025-04-11 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:54:05' and `end` < '2025-04-11 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:54:18] Production.INFO: count ==1707 [2025-04-11 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:54:05 - End Time 2025-04-11 20:54:05 [2025-04-11 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886795', 'tblTempUsageDetail_20' ) start [2025-04-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886795', 'tblTempUsageDetail_20' ) end [2025-04-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886795', 'tblTempVendorCDR_20' ) start [2025-04-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886795', 'tblTempVendorCDR_20' ) end [2025-04-11 20:54:18] Production.INFO: ProcessCDR(1,14886795,1,1,2) [2025-04-11 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886795', 'tblTempUsageDetail_20' ) start [2025-04-11 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886795', 'tblTempUsageDetail_20' ) end [2025-04-11 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:54:24] Production.INFO: ==16289== Releasing lock... [2025-04-11 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:54:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:55:05 [end_date_ymd] => 2025-04-11 20:55:05 [RateCDR] => 1 ) [2025-04-11 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:55:05' and `end` < '2025-04-11 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:55:18] Production.INFO: count ==1703 [2025-04-11 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:55:05 - End Time 2025-04-11 20:55:05 [2025-04-11 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886800', 'tblTempUsageDetail_20' ) start [2025-04-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886800', 'tblTempUsageDetail_20' ) end [2025-04-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886800', 'tblTempVendorCDR_20' ) start [2025-04-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886800', 'tblTempVendorCDR_20' ) end [2025-04-11 20:55:19] Production.INFO: ProcessCDR(1,14886800,1,1,2) [2025-04-11 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886800', 'tblTempUsageDetail_20' ) start [2025-04-11 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886800', 'tblTempUsageDetail_20' ) end [2025-04-11 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:55:22] Production.INFO: ==16365== Releasing lock... [2025-04-11 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:55:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:56:06 [end_date_ymd] => 2025-04-11 20:56:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:56:06' and `end` < '2025-04-11 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-04-11 20:56:19] Production.INFO: count ==1701 [2025-04-11 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:56:06 - End Time 2025-04-11 20:56:06 [2025-04-11 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886805', 'tblTempUsageDetail_20' ) start [2025-04-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886805', 'tblTempUsageDetail_20' ) end [2025-04-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886805', 'tblTempVendorCDR_20' ) start [2025-04-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886805', 'tblTempVendorCDR_20' ) end [2025-04-11 20:56:19] Production.INFO: ProcessCDR(1,14886805,1,1,2) [2025-04-11 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886805', 'tblTempUsageDetail_20' ) start [2025-04-11 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886805', 'tblTempUsageDetail_20' ) end [2025-04-11 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:56:23] Production.INFO: ==16442== Releasing lock... [2025-04-11 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:56:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:57:06 [end_date_ymd] => 2025-04-11 20:57:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 17:57:06' and `end` < '2025-04-11 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-04-11 20:57:19] Production.INFO: count ==1697 [2025-04-11 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 17:57:06 - End Time 2025-04-11 20:57:06 [2025-04-11 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886810', 'tblTempUsageDetail_20' ) start [2025-04-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886810', 'tblTempUsageDetail_20' ) end [2025-04-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886810', 'tblTempVendorCDR_20' ) start [2025-04-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886810', 'tblTempVendorCDR_20' ) end [2025-04-11 20:57:19] Production.INFO: ProcessCDR(1,14886810,1,1,2) [2025-04-11 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886810', 'tblTempUsageDetail_20' ) start [2025-04-11 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886810', 'tblTempUsageDetail_20' ) end [2025-04-11 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:57:23] Production.INFO: ==16516== Releasing lock... [2025-04-11 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:57:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:58:04 [end_date_ymd] => 2025-04-11 20:58:04 [RateCDR] => 1 ) [2025-04-11 20: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-04-11 17:58:04' and `end` < '2025-04-11 20: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-04-11 20:58:17] Production.INFO: count ==1695 [2025-04-11 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:58:04 - End Time 2025-04-11 20:58:04 [2025-04-11 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886815', 'tblTempUsageDetail_20' ) start [2025-04-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886815', 'tblTempUsageDetail_20' ) end [2025-04-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886815', 'tblTempVendorCDR_20' ) start [2025-04-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886815', 'tblTempVendorCDR_20' ) end [2025-04-11 20:58:18] Production.INFO: ProcessCDR(1,14886815,1,1,2) [2025-04-11 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886815', 'tblTempUsageDetail_20' ) start [2025-04-11 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886815', 'tblTempUsageDetail_20' ) end [2025-04-11 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:58:21] Production.INFO: ==16590== Releasing lock... [2025-04-11 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:58:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 17:59:05 [end_date_ymd] => 2025-04-11 20:59:05 [RateCDR] => 1 ) [2025-04-11 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 17:59:05' and `end` < '2025-04-11 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 20:59:18] Production.INFO: count ==1695 [2025-04-11 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 17:59:05 - End Time 2025-04-11 20:59:05 [2025-04-11 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886820', 'tblTempUsageDetail_20' ) start [2025-04-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886820', 'tblTempUsageDetail_20' ) end [2025-04-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886820', 'tblTempVendorCDR_20' ) start [2025-04-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886820', 'tblTempVendorCDR_20' ) end [2025-04-11 20:59:18] Production.INFO: ProcessCDR(1,14886820,1,1,2) [2025-04-11 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886820', 'tblTempUsageDetail_20' ) start [2025-04-11 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886820', 'tblTempUsageDetail_20' ) end [2025-04-11 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 20:59:24] Production.INFO: ==16661== Releasing lock... [2025-04-11 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 20:59:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:00:06 [end_date_ymd] => 2025-04-11 21:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:00:06' and `end` < '2025-04-11 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-04-11 21:00:19] Production.INFO: count ==1694 [2025-04-11 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-11 18:00:06 - End Time 2025-04-11 21:00:06 [2025-04-11 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886826', 'tblTempUsageDetail_20' ) start [2025-04-11 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886826', 'tblTempUsageDetail_20' ) end [2025-04-11 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886826', 'tblTempVendorCDR_20' ) start [2025-04-11 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886826', 'tblTempVendorCDR_20' ) end [2025-04-11 21:00:20] Production.INFO: ProcessCDR(1,14886826,1,1,2) [2025-04-11 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886826', 'tblTempUsageDetail_20' ) start [2025-04-11 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886826', 'tblTempUsageDetail_20' ) end [2025-04-11 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:00:23] Production.INFO: ==16741== Releasing lock... [2025-04-11 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:00:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-11 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:01:05 [end_date_ymd] => 2025-04-11 21:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:01:05' and `end` < '2025-04-11 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-04-11 21:01:19] Production.INFO: count ==1650 [2025-04-11 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:01:05 - End Time 2025-04-11 21:01:05 [2025-04-11 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886831', 'tblTempUsageDetail_20' ) start [2025-04-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886831', 'tblTempUsageDetail_20' ) end [2025-04-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886831', 'tblTempVendorCDR_20' ) start [2025-04-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886831', 'tblTempVendorCDR_20' ) end [2025-04-11 21:01:19] Production.INFO: ProcessCDR(1,14886831,1,1,2) [2025-04-11 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886831', 'tblTempUsageDetail_20' ) start [2025-04-11 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886831', 'tblTempUsageDetail_20' ) end [2025-04-11 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:01:23] Production.INFO: ==16864== Releasing lock... [2025-04-11 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:01:23] Production.INFO: 40 MB #Memory Used# [2025-04-11 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:02:05 [end_date_ymd] => 2025-04-11 21:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:02:05' and `end` < '2025-04-11 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-04-11 21:02:19] Production.INFO: count ==1636 [2025-04-11 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:02:05 - End Time 2025-04-11 21:02:05 [2025-04-11 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886836', 'tblTempUsageDetail_20' ) start [2025-04-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886836', 'tblTempUsageDetail_20' ) end [2025-04-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886836', 'tblTempVendorCDR_20' ) start [2025-04-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886836', 'tblTempVendorCDR_20' ) end [2025-04-11 21:02:19] Production.INFO: ProcessCDR(1,14886836,1,1,2) [2025-04-11 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886836', 'tblTempUsageDetail_20' ) start [2025-04-11 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886836', 'tblTempUsageDetail_20' ) end [2025-04-11 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:02:22] Production.INFO: ==16942== Releasing lock... [2025-04-11 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:03:05 [end_date_ymd] => 2025-04-11 21:03:05 [RateCDR] => 1 ) [2025-04-11 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:03:05' and `end` < '2025-04-11 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:03:18] Production.INFO: count ==1634 [2025-04-11 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:03:05 - End Time 2025-04-11 21:03:05 [2025-04-11 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886841', 'tblTempUsageDetail_20' ) start [2025-04-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886841', 'tblTempUsageDetail_20' ) end [2025-04-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886841', 'tblTempVendorCDR_20' ) start [2025-04-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886841', 'tblTempVendorCDR_20' ) end [2025-04-11 21:03:18] Production.INFO: ProcessCDR(1,14886841,1,1,2) [2025-04-11 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886841', 'tblTempUsageDetail_20' ) start [2025-04-11 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886841', 'tblTempUsageDetail_20' ) end [2025-04-11 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:03:22] Production.INFO: ==17015== Releasing lock... [2025-04-11 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:04:06 [end_date_ymd] => 2025-04-11 21:04:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:04:06' and `end` < '2025-04-11 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-04-11 21:04:19] Production.INFO: count ==1633 [2025-04-11 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:04:06 - End Time 2025-04-11 21:04:06 [2025-04-11 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886846', 'tblTempUsageDetail_20' ) start [2025-04-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886846', 'tblTempUsageDetail_20' ) end [2025-04-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886846', 'tblTempVendorCDR_20' ) start [2025-04-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886846', 'tblTempVendorCDR_20' ) end [2025-04-11 21:04:19] Production.INFO: ProcessCDR(1,14886846,1,1,2) [2025-04-11 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886846', 'tblTempUsageDetail_20' ) start [2025-04-11 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886846', 'tblTempUsageDetail_20' ) end [2025-04-11 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:04:22] Production.INFO: ==17089== Releasing lock... [2025-04-11 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:04:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:05:05 [end_date_ymd] => 2025-04-11 21:05:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:05:05' and `end` < '2025-04-11 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-04-11 21:05:18] Production.INFO: count ==1631 [2025-04-11 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:05:05 - End Time 2025-04-11 21:05:05 [2025-04-11 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886851', 'tblTempUsageDetail_20' ) start [2025-04-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886851', 'tblTempUsageDetail_20' ) end [2025-04-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886851', 'tblTempVendorCDR_20' ) start [2025-04-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886851', 'tblTempVendorCDR_20' ) end [2025-04-11 21:05:18] Production.INFO: ProcessCDR(1,14886851,1,1,2) [2025-04-11 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886851', 'tblTempUsageDetail_20' ) start [2025-04-11 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886851', 'tblTempUsageDetail_20' ) end [2025-04-11 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:05:22] Production.INFO: ==17162== Releasing lock... [2025-04-11 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:05:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:06:05 [end_date_ymd] => 2025-04-11 21:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:06:05' and `end` < '2025-04-11 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-04-11 21:06:18] Production.INFO: count ==1631 [2025-04-11 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:06:05 - End Time 2025-04-11 21:06:05 [2025-04-11 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886856', 'tblTempUsageDetail_20' ) start [2025-04-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886856', 'tblTempUsageDetail_20' ) end [2025-04-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886856', 'tblTempVendorCDR_20' ) start [2025-04-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886856', 'tblTempVendorCDR_20' ) end [2025-04-11 21:06:19] Production.INFO: ProcessCDR(1,14886856,1,1,2) [2025-04-11 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886856', 'tblTempUsageDetail_20' ) start [2025-04-11 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886856', 'tblTempUsageDetail_20' ) end [2025-04-11 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:06:22] Production.INFO: ==17236== Releasing lock... [2025-04-11 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:06:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:07:05 [end_date_ymd] => 2025-04-11 21:07:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:07:05' and `end` < '2025-04-11 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-04-11 21:07:18] Production.INFO: count ==1624 [2025-04-11 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:07:05 - End Time 2025-04-11 21:07:05 [2025-04-11 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886861', 'tblTempUsageDetail_20' ) start [2025-04-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886861', 'tblTempUsageDetail_20' ) end [2025-04-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886861', 'tblTempVendorCDR_20' ) start [2025-04-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886861', 'tblTempVendorCDR_20' ) end [2025-04-11 21:07:18] Production.INFO: ProcessCDR(1,14886861,1,1,2) [2025-04-11 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886861', 'tblTempUsageDetail_20' ) start [2025-04-11 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886861', 'tblTempUsageDetail_20' ) end [2025-04-11 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:07:22] Production.INFO: ==17310== Releasing lock... [2025-04-11 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:07:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:08:06 [end_date_ymd] => 2025-04-11 21:08:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:08:06' and `end` < '2025-04-11 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-04-11 21:08:19] Production.INFO: count ==1623 [2025-04-11 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:08:06 - End Time 2025-04-11 21:08:06 [2025-04-11 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886866', 'tblTempUsageDetail_20' ) start [2025-04-11 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886866', 'tblTempUsageDetail_20' ) end [2025-04-11 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886866', 'tblTempVendorCDR_20' ) start [2025-04-11 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886866', 'tblTempVendorCDR_20' ) end [2025-04-11 21:08:19] Production.INFO: ProcessCDR(1,14886866,1,1,2) [2025-04-11 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886866', 'tblTempUsageDetail_20' ) start [2025-04-11 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886866', 'tblTempUsageDetail_20' ) end [2025-04-11 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:08:22] Production.INFO: ==17383== Releasing lock... [2025-04-11 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:08:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:09:05 [end_date_ymd] => 2025-04-11 21:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:09:05' and `end` < '2025-04-11 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-04-11 21:09:18] Production.INFO: count ==1618 [2025-04-11 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:09:05 - End Time 2025-04-11 21:09:05 [2025-04-11 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886871', 'tblTempUsageDetail_20' ) start [2025-04-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886871', 'tblTempUsageDetail_20' ) end [2025-04-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886871', 'tblTempVendorCDR_20' ) start [2025-04-11 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886871', 'tblTempVendorCDR_20' ) end [2025-04-11 21:09:18] Production.INFO: ProcessCDR(1,14886871,1,1,2) [2025-04-11 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886871', 'tblTempUsageDetail_20' ) start [2025-04-11 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886871', 'tblTempUsageDetail_20' ) end [2025-04-11 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:09:24] Production.INFO: ==17460== Releasing lock... [2025-04-11 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:09:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:10:06 [end_date_ymd] => 2025-04-11 21:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:10:06' and `end` < '2025-04-11 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-04-11 21:10:19] Production.INFO: count ==1607 [2025-04-11 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:10:06 - End Time 2025-04-11 21:10:06 [2025-04-11 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886877', 'tblTempUsageDetail_20' ) start [2025-04-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886877', 'tblTempUsageDetail_20' ) end [2025-04-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886877', 'tblTempVendorCDR_20' ) start [2025-04-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886877', 'tblTempVendorCDR_20' ) end [2025-04-11 21:10:19] Production.INFO: ProcessCDR(1,14886877,1,1,2) [2025-04-11 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886877', 'tblTempUsageDetail_20' ) start [2025-04-11 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886877', 'tblTempUsageDetail_20' ) end [2025-04-11 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:10:23] Production.INFO: ==17545== Releasing lock... [2025-04-11 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:10:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:11:05 [end_date_ymd] => 2025-04-11 21:11:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:11:05' and `end` < '2025-04-11 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-04-11 21:11:18] Production.INFO: count ==1564 [2025-04-11 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:11:05 - End Time 2025-04-11 21:11:05 [2025-04-11 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886882', 'tblTempUsageDetail_20' ) start [2025-04-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886882', 'tblTempUsageDetail_20' ) end [2025-04-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886882', 'tblTempVendorCDR_20' ) start [2025-04-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886882', 'tblTempVendorCDR_20' ) end [2025-04-11 21:11:18] Production.INFO: ProcessCDR(1,14886882,1,1,2) [2025-04-11 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886882', 'tblTempUsageDetail_20' ) start [2025-04-11 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886882', 'tblTempUsageDetail_20' ) end [2025-04-11 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:11:21] Production.INFO: ==17619== Releasing lock... [2025-04-11 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:11:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:12:05 [end_date_ymd] => 2025-04-11 21:12:05 [RateCDR] => 1 ) [2025-04-11 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:12:05' and `end` < '2025-04-11 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:12:19] Production.INFO: count ==1560 [2025-04-11 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:12:05 - End Time 2025-04-11 21:12:05 [2025-04-11 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886887', 'tblTempUsageDetail_20' ) start [2025-04-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886887', 'tblTempUsageDetail_20' ) end [2025-04-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886887', 'tblTempVendorCDR_20' ) start [2025-04-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886887', 'tblTempVendorCDR_20' ) end [2025-04-11 21:12:19] Production.INFO: ProcessCDR(1,14886887,1,1,2) [2025-04-11 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886887', 'tblTempUsageDetail_20' ) start [2025-04-11 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886887', 'tblTempUsageDetail_20' ) end [2025-04-11 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:12:23] Production.INFO: ==17698== Releasing lock... [2025-04-11 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:12:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:13:05 [end_date_ymd] => 2025-04-11 21:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:13:05' and `end` < '2025-04-11 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-04-11 21:13:18] Production.INFO: count ==1553 [2025-04-11 21:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:13:05 - End Time 2025-04-11 21:13:05 [2025-04-11 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886892', 'tblTempUsageDetail_20' ) start [2025-04-11 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886892', 'tblTempUsageDetail_20' ) end [2025-04-11 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886892', 'tblTempVendorCDR_20' ) start [2025-04-11 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886892', 'tblTempVendorCDR_20' ) end [2025-04-11 21:13:18] Production.INFO: ProcessCDR(1,14886892,1,1,2) [2025-04-11 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886892', 'tblTempUsageDetail_20' ) start [2025-04-11 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886892', 'tblTempUsageDetail_20' ) end [2025-04-11 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:13:21] Production.INFO: ==17767== Releasing lock... [2025-04-11 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:13:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:14:06 [end_date_ymd] => 2025-04-11 21:14:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:14:06' and `end` < '2025-04-11 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-04-11 21:14:19] Production.INFO: count ==1546 [2025-04-11 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:14:06 - End Time 2025-04-11 21:14:06 [2025-04-11 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886897', 'tblTempUsageDetail_20' ) start [2025-04-11 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886897', 'tblTempUsageDetail_20' ) end [2025-04-11 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886897', 'tblTempVendorCDR_20' ) start [2025-04-11 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886897', 'tblTempVendorCDR_20' ) end [2025-04-11 21:14:19] Production.INFO: ProcessCDR(1,14886897,1,1,2) [2025-04-11 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886897', 'tblTempUsageDetail_20' ) start [2025-04-11 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886897', 'tblTempUsageDetail_20' ) end [2025-04-11 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:14:22] Production.INFO: ==17843== Releasing lock... [2025-04-11 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:14:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:15:05 [end_date_ymd] => 2025-04-11 21:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:15:05' and `end` < '2025-04-11 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-04-11 21:15:18] Production.INFO: count ==1544 [2025-04-11 21:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:15:05 - End Time 2025-04-11 21:15:05 [2025-04-11 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886902', 'tblTempUsageDetail_20' ) start [2025-04-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886902', 'tblTempUsageDetail_20' ) end [2025-04-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886902', 'tblTempVendorCDR_20' ) start [2025-04-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886902', 'tblTempVendorCDR_20' ) end [2025-04-11 21:15:18] Production.INFO: ProcessCDR(1,14886902,1,1,2) [2025-04-11 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886902', 'tblTempUsageDetail_20' ) start [2025-04-11 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886902', 'tblTempUsageDetail_20' ) end [2025-04-11 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:15:23] Production.INFO: ==17922== Releasing lock... [2025-04-11 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:15:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:16:06 [end_date_ymd] => 2025-04-11 21:16:06 [RateCDR] => 1 ) [2025-04-11 21: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-04-11 18:16:06' and `end` < '2025-04-11 21: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-04-11 21:16:19] Production.INFO: count ==1537 [2025-04-11 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:16:06 - End Time 2025-04-11 21:16:06 [2025-04-11 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886907', 'tblTempUsageDetail_20' ) start [2025-04-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886907', 'tblTempUsageDetail_20' ) end [2025-04-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886907', 'tblTempVendorCDR_20' ) start [2025-04-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886907', 'tblTempVendorCDR_20' ) end [2025-04-11 21:16:19] Production.INFO: ProcessCDR(1,14886907,1,1,2) [2025-04-11 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886907', 'tblTempUsageDetail_20' ) start [2025-04-11 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886907', 'tblTempUsageDetail_20' ) end [2025-04-11 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:16:22] Production.INFO: ==18003== Releasing lock... [2025-04-11 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:16:22] Production.INFO: 39 MB #Memory Used# [2025-04-11 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:17:05 [end_date_ymd] => 2025-04-11 21:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:17:05' and `end` < '2025-04-11 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-04-11 21:17:18] Production.INFO: count ==1536 [2025-04-11 21:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:17:05 - End Time 2025-04-11 21:17:05 [2025-04-11 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886912', 'tblTempUsageDetail_20' ) start [2025-04-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886912', 'tblTempUsageDetail_20' ) end [2025-04-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886912', 'tblTempVendorCDR_20' ) start [2025-04-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886912', 'tblTempVendorCDR_20' ) end [2025-04-11 21:17:18] Production.INFO: ProcessCDR(1,14886912,1,1,2) [2025-04-11 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886912', 'tblTempUsageDetail_20' ) start [2025-04-11 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886912', 'tblTempUsageDetail_20' ) end [2025-04-11 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:17:23] Production.INFO: ==18114== Releasing lock... [2025-04-11 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:17:23] Production.INFO: 39 MB #Memory Used# [2025-04-11 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:18:05 [end_date_ymd] => 2025-04-11 21:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:18:05' and `end` < '2025-04-11 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-04-11 21:18:18] Production.INFO: count ==1536 [2025-04-11 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:18:05 - End Time 2025-04-11 21:18:05 [2025-04-11 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886917', 'tblTempUsageDetail_20' ) start [2025-04-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886917', 'tblTempUsageDetail_20' ) end [2025-04-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886917', 'tblTempVendorCDR_20' ) start [2025-04-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886917', 'tblTempVendorCDR_20' ) end [2025-04-11 21:18:18] Production.INFO: ProcessCDR(1,14886917,1,1,2) [2025-04-11 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886917', 'tblTempUsageDetail_20' ) start [2025-04-11 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886917', 'tblTempUsageDetail_20' ) end [2025-04-11 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:18:22] Production.INFO: ==18202== Releasing lock... [2025-04-11 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:18:22] Production.INFO: 39 MB #Memory Used# [2025-04-11 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:19:05 [end_date_ymd] => 2025-04-11 21:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:19:05' and `end` < '2025-04-11 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-04-11 21:19:18] Production.INFO: count ==1521 [2025-04-11 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:19:05 - End Time 2025-04-11 21:19:05 [2025-04-11 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886922', 'tblTempUsageDetail_20' ) start [2025-04-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886922', 'tblTempUsageDetail_20' ) end [2025-04-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886922', 'tblTempVendorCDR_20' ) start [2025-04-11 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886922', 'tblTempVendorCDR_20' ) end [2025-04-11 21:19:18] Production.INFO: ProcessCDR(1,14886922,1,1,2) [2025-04-11 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886922', 'tblTempUsageDetail_20' ) start [2025-04-11 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886922', 'tblTempUsageDetail_20' ) end [2025-04-11 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:19:21] Production.INFO: ==18274== Releasing lock... [2025-04-11 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:19:21] Production.INFO: 39 MB #Memory Used# [2025-04-11 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:20:05 [end_date_ymd] => 2025-04-11 21:20:05 [RateCDR] => 1 ) [2025-04-11 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:20:05' and `end` < '2025-04-11 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:20:18] Production.INFO: count ==1519 [2025-04-11 21:20:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:20:05 - End Time 2025-04-11 21:20:05 [2025-04-11 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886927', 'tblTempUsageDetail_20' ) start [2025-04-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886927', 'tblTempUsageDetail_20' ) end [2025-04-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886927', 'tblTempVendorCDR_20' ) start [2025-04-11 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886927', 'tblTempVendorCDR_20' ) end [2025-04-11 21:20:18] Production.INFO: ProcessCDR(1,14886927,1,1,2) [2025-04-11 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886927', 'tblTempUsageDetail_20' ) start [2025-04-11 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886927', 'tblTempUsageDetail_20' ) end [2025-04-11 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:20:24] Production.INFO: ==18348== Releasing lock... [2025-04-11 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:20:24] Production.INFO: 39 MB #Memory Used# [2025-04-11 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:21:04 [end_date_ymd] => 2025-04-11 21:21:04 [RateCDR] => 1 ) [2025-04-11 21: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-04-11 18:21:04' and `end` < '2025-04-11 21: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-04-11 21:21:17] Production.INFO: count ==1481 [2025-04-11 21:21:17] Production.ERROR: pbx CDR StartTime 2025-04-11 18:21:04 - End Time 2025-04-11 21:21:04 [2025-04-11 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886933', 'tblTempUsageDetail_20' ) start [2025-04-11 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886933', 'tblTempUsageDetail_20' ) end [2025-04-11 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886933', 'tblTempVendorCDR_20' ) start [2025-04-11 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886933', 'tblTempVendorCDR_20' ) end [2025-04-11 21:21:17] Production.INFO: ProcessCDR(1,14886933,1,1,2) [2025-04-11 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886933', 'tblTempUsageDetail_20' ) start [2025-04-11 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886933', 'tblTempUsageDetail_20' ) end [2025-04-11 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:21:21] Production.INFO: ==18424== Releasing lock... [2025-04-11 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:21:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:22:05 [end_date_ymd] => 2025-04-11 21:22:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:22:05' and `end` < '2025-04-11 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-04-11 21:22:19] Production.INFO: count ==1480 [2025-04-11 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:22:05 - End Time 2025-04-11 21:22:05 [2025-04-11 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886938', 'tblTempUsageDetail_20' ) start [2025-04-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886938', 'tblTempUsageDetail_20' ) end [2025-04-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886938', 'tblTempVendorCDR_20' ) start [2025-04-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886938', 'tblTempVendorCDR_20' ) end [2025-04-11 21:22:19] Production.INFO: ProcessCDR(1,14886938,1,1,2) [2025-04-11 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886938', 'tblTempUsageDetail_20' ) start [2025-04-11 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886938', 'tblTempUsageDetail_20' ) end [2025-04-11 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:22:22] Production.INFO: ==18495== Releasing lock... [2025-04-11 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:23:05 [end_date_ymd] => 2025-04-11 21:23:05 [RateCDR] => 1 ) [2025-04-11 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:23:05' and `end` < '2025-04-11 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:23:18] Production.INFO: count ==1480 [2025-04-11 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:23:05 - End Time 2025-04-11 21:23:05 [2025-04-11 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886943', 'tblTempUsageDetail_20' ) start [2025-04-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886943', 'tblTempUsageDetail_20' ) end [2025-04-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886943', 'tblTempVendorCDR_20' ) start [2025-04-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886943', 'tblTempVendorCDR_20' ) end [2025-04-11 21:23:18] Production.INFO: ProcessCDR(1,14886943,1,1,2) [2025-04-11 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886943', 'tblTempUsageDetail_20' ) start [2025-04-11 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886943', 'tblTempUsageDetail_20' ) end [2025-04-11 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:23:22] Production.INFO: ==18579== Releasing lock... [2025-04-11 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:23:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:24:05 [end_date_ymd] => 2025-04-11 21:24:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:24:05' and `end` < '2025-04-11 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-04-11 21:24:18] Production.INFO: count ==1479 [2025-04-11 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:24:05 - End Time 2025-04-11 21:24:05 [2025-04-11 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886948', 'tblTempUsageDetail_20' ) start [2025-04-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886948', 'tblTempUsageDetail_20' ) end [2025-04-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886948', 'tblTempVendorCDR_20' ) start [2025-04-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886948', 'tblTempVendorCDR_20' ) end [2025-04-11 21:24:19] Production.INFO: ProcessCDR(1,14886948,1,1,2) [2025-04-11 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886948', 'tblTempUsageDetail_20' ) start [2025-04-11 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886948', 'tblTempUsageDetail_20' ) end [2025-04-11 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:24:22] Production.INFO: ==18658== Releasing lock... [2025-04-11 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:24:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:25:06 [end_date_ymd] => 2025-04-11 21:25:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:25:06' and `end` < '2025-04-11 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-04-11 21:25:19] Production.INFO: count ==1479 [2025-04-11 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:25:06 - End Time 2025-04-11 21:25:06 [2025-04-11 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886953', 'tblTempUsageDetail_20' ) start [2025-04-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886953', 'tblTempUsageDetail_20' ) end [2025-04-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886953', 'tblTempVendorCDR_20' ) start [2025-04-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886953', 'tblTempVendorCDR_20' ) end [2025-04-11 21:25:19] Production.INFO: ProcessCDR(1,14886953,1,1,2) [2025-04-11 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886953', 'tblTempUsageDetail_20' ) start [2025-04-11 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886953', 'tblTempUsageDetail_20' ) end [2025-04-11 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:25:22] Production.INFO: ==18735== Releasing lock... [2025-04-11 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:26:05 [end_date_ymd] => 2025-04-11 21:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:26:05' and `end` < '2025-04-11 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-04-11 21:26:18] Production.INFO: count ==1478 [2025-04-11 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:26:05 - End Time 2025-04-11 21:26:05 [2025-04-11 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886958', 'tblTempUsageDetail_20' ) start [2025-04-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886958', 'tblTempUsageDetail_20' ) end [2025-04-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886958', 'tblTempVendorCDR_20' ) start [2025-04-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886958', 'tblTempVendorCDR_20' ) end [2025-04-11 21:26:18] Production.INFO: ProcessCDR(1,14886958,1,1,2) [2025-04-11 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886958', 'tblTempUsageDetail_20' ) start [2025-04-11 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886958', 'tblTempUsageDetail_20' ) end [2025-04-11 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:26:22] Production.INFO: ==18808== Releasing lock... [2025-04-11 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:27:04 [end_date_ymd] => 2025-04-11 21:27:04 [RateCDR] => 1 ) [2025-04-11 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:27:04' and `end` < '2025-04-11 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:27:18] Production.INFO: count ==1471 [2025-04-11 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:27:04 - End Time 2025-04-11 21:27:04 [2025-04-11 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886963', 'tblTempUsageDetail_20' ) start [2025-04-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886963', 'tblTempUsageDetail_20' ) end [2025-04-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886963', 'tblTempVendorCDR_20' ) start [2025-04-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886963', 'tblTempVendorCDR_20' ) end [2025-04-11 21:27:18] Production.INFO: ProcessCDR(1,14886963,1,1,2) [2025-04-11 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886963', 'tblTempUsageDetail_20' ) start [2025-04-11 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886963', 'tblTempUsageDetail_20' ) end [2025-04-11 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:27:21] Production.INFO: ==18883== Releasing lock... [2025-04-11 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:27:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:28:05 [end_date_ymd] => 2025-04-11 21:28:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:28:05' and `end` < '2025-04-11 21: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-04-11 21:28:18] Production.INFO: count ==1469 [2025-04-11 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:28:05 - End Time 2025-04-11 21:28:05 [2025-04-11 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886968', 'tblTempUsageDetail_20' ) start [2025-04-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886968', 'tblTempUsageDetail_20' ) end [2025-04-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886968', 'tblTempVendorCDR_20' ) start [2025-04-11 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886968', 'tblTempVendorCDR_20' ) end [2025-04-11 21:28:18] Production.INFO: ProcessCDR(1,14886968,1,1,2) [2025-04-11 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886968', 'tblTempUsageDetail_20' ) start [2025-04-11 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886968', 'tblTempUsageDetail_20' ) end [2025-04-11 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:28:22] Production.INFO: ==18953== Releasing lock... [2025-04-11 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:29:05 [end_date_ymd] => 2025-04-11 21:29:05 [RateCDR] => 1 ) [2025-04-11 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:29:05' and `end` < '2025-04-11 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:29:18] Production.INFO: count ==1465 [2025-04-11 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:29:05 - End Time 2025-04-11 21:29:05 [2025-04-11 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886973', 'tblTempUsageDetail_20' ) start [2025-04-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886973', 'tblTempUsageDetail_20' ) end [2025-04-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886973', 'tblTempVendorCDR_20' ) start [2025-04-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886973', 'tblTempVendorCDR_20' ) end [2025-04-11 21:29:19] Production.INFO: ProcessCDR(1,14886973,1,1,2) [2025-04-11 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886973', 'tblTempUsageDetail_20' ) start [2025-04-11 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886973', 'tblTempUsageDetail_20' ) end [2025-04-11 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:29:22] Production.INFO: ==19032== Releasing lock... [2025-04-11 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:29:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:30:06 [end_date_ymd] => 2025-04-11 21:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:30:06' and `end` < '2025-04-11 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-04-11 21:30:19] Production.INFO: count ==1463 [2025-04-11 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:30:06 - End Time 2025-04-11 21:30:06 [2025-04-11 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886978', 'tblTempUsageDetail_20' ) start [2025-04-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886978', 'tblTempUsageDetail_20' ) end [2025-04-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886978', 'tblTempVendorCDR_20' ) start [2025-04-11 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886978', 'tblTempVendorCDR_20' ) end [2025-04-11 21:30:19] Production.INFO: ProcessCDR(1,14886978,1,1,2) [2025-04-11 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886978', 'tblTempUsageDetail_20' ) start [2025-04-11 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886978', 'tblTempUsageDetail_20' ) end [2025-04-11 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:30:22] Production.INFO: ==19109== Releasing lock... [2025-04-11 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:30:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:31:05 [end_date_ymd] => 2025-04-11 21:31:05 [RateCDR] => 1 ) [2025-04-11 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:31:05' and `end` < '2025-04-11 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:31:18] Production.INFO: count ==1447 [2025-04-11 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:31:05 - End Time 2025-04-11 21:31:05 [2025-04-11 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886984', 'tblTempUsageDetail_20' ) start [2025-04-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886984', 'tblTempUsageDetail_20' ) end [2025-04-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886984', 'tblTempVendorCDR_20' ) start [2025-04-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886984', 'tblTempVendorCDR_20' ) end [2025-04-11 21:31:18] Production.INFO: ProcessCDR(1,14886984,1,1,2) [2025-04-11 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886984', 'tblTempUsageDetail_20' ) start [2025-04-11 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886984', 'tblTempUsageDetail_20' ) end [2025-04-11 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:31:22] Production.INFO: ==19181== Releasing lock... [2025-04-11 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:31:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:32:05 [end_date_ymd] => 2025-04-11 21:32:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:32:05' and `end` < '2025-04-11 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-04-11 21:32:18] Production.INFO: count ==1449 [2025-04-11 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:32:05 - End Time 2025-04-11 21:32:05 [2025-04-11 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886989', 'tblTempUsageDetail_20' ) start [2025-04-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886989', 'tblTempUsageDetail_20' ) end [2025-04-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886989', 'tblTempVendorCDR_20' ) start [2025-04-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886989', 'tblTempVendorCDR_20' ) end [2025-04-11 21:32:18] Production.INFO: ProcessCDR(1,14886989,1,1,2) [2025-04-11 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886989', 'tblTempUsageDetail_20' ) start [2025-04-11 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886989', 'tblTempUsageDetail_20' ) end [2025-04-11 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:32:22] Production.INFO: ==19294== Releasing lock... [2025-04-11 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:32:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:33:06 [end_date_ymd] => 2025-04-11 21:33:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:33:06' and `end` < '2025-04-11 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-04-11 21:33:19] Production.INFO: count ==1448 [2025-04-11 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:33:06 - End Time 2025-04-11 21:33:06 [2025-04-11 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886994', 'tblTempUsageDetail_20' ) start [2025-04-11 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886994', 'tblTempUsageDetail_20' ) end [2025-04-11 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886994', 'tblTempVendorCDR_20' ) start [2025-04-11 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886994', 'tblTempVendorCDR_20' ) end [2025-04-11 21:33:19] Production.INFO: ProcessCDR(1,14886994,1,1,2) [2025-04-11 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886994', 'tblTempUsageDetail_20' ) start [2025-04-11 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886994', 'tblTempUsageDetail_20' ) end [2025-04-11 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:33:23] Production.INFO: ==19368== Releasing lock... [2025-04-11 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:33:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:34:05 [end_date_ymd] => 2025-04-11 21:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:34:05' and `end` < '2025-04-11 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-04-11 21:34:18] Production.INFO: count ==1447 [2025-04-11 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:34:05 - End Time 2025-04-11 21:34:05 [2025-04-11 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886999', 'tblTempUsageDetail_20' ) start [2025-04-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14886999', 'tblTempUsageDetail_20' ) end [2025-04-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886999', 'tblTempVendorCDR_20' ) start [2025-04-11 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14886999', 'tblTempVendorCDR_20' ) end [2025-04-11 21:34:18] Production.INFO: ProcessCDR(1,14886999,1,1,2) [2025-04-11 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14886999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14886999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14886999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14886999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886999', 'tblTempUsageDetail_20' ) start [2025-04-11 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14886999', 'tblTempUsageDetail_20' ) end [2025-04-11 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:34:23] Production.INFO: ==19440== Releasing lock... [2025-04-11 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:34:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:35:06 [end_date_ymd] => 2025-04-11 21:35:06 [RateCDR] => 1 ) [2025-04-11 21: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-04-11 18:35:06' and `end` < '2025-04-11 21: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-04-11 21:35:19] Production.INFO: count ==1446 [2025-04-11 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:35:06 - End Time 2025-04-11 21:35:06 [2025-04-11 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887004', 'tblTempUsageDetail_20' ) start [2025-04-11 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887004', 'tblTempUsageDetail_20' ) end [2025-04-11 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887004', 'tblTempVendorCDR_20' ) start [2025-04-11 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887004', 'tblTempVendorCDR_20' ) end [2025-04-11 21:35:19] Production.INFO: ProcessCDR(1,14887004,1,1,2) [2025-04-11 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887004', 'tblTempUsageDetail_20' ) start [2025-04-11 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887004', 'tblTempUsageDetail_20' ) end [2025-04-11 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:35:23] Production.INFO: ==19521== Releasing lock... [2025-04-11 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:35:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:36:05 [end_date_ymd] => 2025-04-11 21:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:36:05' and `end` < '2025-04-11 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-04-11 21:36:18] Production.INFO: count ==1445 [2025-04-11 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:36:05 - End Time 2025-04-11 21:36:05 [2025-04-11 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887009', 'tblTempUsageDetail_20' ) start [2025-04-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887009', 'tblTempUsageDetail_20' ) end [2025-04-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887009', 'tblTempVendorCDR_20' ) start [2025-04-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887009', 'tblTempVendorCDR_20' ) end [2025-04-11 21:36:18] Production.INFO: ProcessCDR(1,14887009,1,1,2) [2025-04-11 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887009', 'tblTempUsageDetail_20' ) start [2025-04-11 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887009', 'tblTempUsageDetail_20' ) end [2025-04-11 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:36:22] Production.INFO: ==19596== Releasing lock... [2025-04-11 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:36:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:37:04 [end_date_ymd] => 2025-04-11 21:37:04 [RateCDR] => 1 ) [2025-04-11 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:37:04' and `end` < '2025-04-11 21:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:37:17] Production.INFO: count ==1445 [2025-04-11 21:37:17] Production.ERROR: pbx CDR StartTime 2025-04-11 18:37:04 - End Time 2025-04-11 21:37:04 [2025-04-11 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887014', 'tblTempUsageDetail_20' ) start [2025-04-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887014', 'tblTempUsageDetail_20' ) end [2025-04-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887014', 'tblTempVendorCDR_20' ) start [2025-04-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887014', 'tblTempVendorCDR_20' ) end [2025-04-11 21:37:17] Production.INFO: ProcessCDR(1,14887014,1,1,2) [2025-04-11 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887014', 'tblTempUsageDetail_20' ) start [2025-04-11 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887014', 'tblTempUsageDetail_20' ) end [2025-04-11 21:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:37:20] Production.INFO: ==19671== Releasing lock... [2025-04-11 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:37:20] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:38:05 [end_date_ymd] => 2025-04-11 21:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:38:05' and `end` < '2025-04-11 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-04-11 21:38:18] Production.INFO: count ==1443 [2025-04-11 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:38:05 - End Time 2025-04-11 21:38:05 [2025-04-11 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887019', 'tblTempUsageDetail_20' ) start [2025-04-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887019', 'tblTempUsageDetail_20' ) end [2025-04-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887019', 'tblTempVendorCDR_20' ) start [2025-04-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887019', 'tblTempVendorCDR_20' ) end [2025-04-11 21:38:18] Production.INFO: ProcessCDR(1,14887019,1,1,2) [2025-04-11 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887019', 'tblTempUsageDetail_20' ) start [2025-04-11 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887019', 'tblTempUsageDetail_20' ) end [2025-04-11 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:38:22] Production.INFO: ==19745== Releasing lock... [2025-04-11 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:38:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:39:05 [end_date_ymd] => 2025-04-11 21:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:39:05' and `end` < '2025-04-11 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-04-11 21:39:18] Production.INFO: count ==1442 [2025-04-11 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:39:05 - End Time 2025-04-11 21:39:05 [2025-04-11 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887024', 'tblTempUsageDetail_20' ) start [2025-04-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887024', 'tblTempUsageDetail_20' ) end [2025-04-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887024', 'tblTempVendorCDR_20' ) start [2025-04-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887024', 'tblTempVendorCDR_20' ) end [2025-04-11 21:39:18] Production.INFO: ProcessCDR(1,14887024,1,1,2) [2025-04-11 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887024', 'tblTempUsageDetail_20' ) start [2025-04-11 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887024', 'tblTempUsageDetail_20' ) end [2025-04-11 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:39:21] Production.INFO: ==19822== Releasing lock... [2025-04-11 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:39:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:40:07 [end_date_ymd] => 2025-04-11 21:40:07 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:40:07' and `end` < '2025-04-11 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-04-11 21:40:20] Production.INFO: count ==1442 [2025-04-11 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-11 18:40:07 - End Time 2025-04-11 21:40:07 [2025-04-11 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887030', 'tblTempUsageDetail_20' ) start [2025-04-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887030', 'tblTempUsageDetail_20' ) end [2025-04-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887030', 'tblTempVendorCDR_20' ) start [2025-04-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887030', 'tblTempVendorCDR_20' ) end [2025-04-11 21:40:20] Production.INFO: ProcessCDR(1,14887030,1,1,2) [2025-04-11 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887030', 'tblTempUsageDetail_20' ) start [2025-04-11 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887030', 'tblTempUsageDetail_20' ) end [2025-04-11 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:40:24] Production.INFO: ==19902== Releasing lock... [2025-04-11 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:40:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:41:05 [end_date_ymd] => 2025-04-11 21:41:05 [RateCDR] => 1 ) [2025-04-11 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:41:05' and `end` < '2025-04-11 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:41:18] Production.INFO: count ==1394 [2025-04-11 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:41:05 - End Time 2025-04-11 21:41:05 [2025-04-11 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887035', 'tblTempUsageDetail_20' ) start [2025-04-11 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887035', 'tblTempUsageDetail_20' ) end [2025-04-11 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887035', 'tblTempVendorCDR_20' ) start [2025-04-11 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887035', 'tblTempVendorCDR_20' ) end [2025-04-11 21:41:19] Production.INFO: ProcessCDR(1,14887035,1,1,2) [2025-04-11 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887035', 'tblTempUsageDetail_20' ) start [2025-04-11 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887035', 'tblTempUsageDetail_20' ) end [2025-04-11 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:41:22] Production.INFO: ==19979== Releasing lock... [2025-04-11 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:41:22] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:42:06 [end_date_ymd] => 2025-04-11 21:42:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:42:06' and `end` < '2025-04-11 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-04-11 21:42:19] Production.INFO: count ==1394 [2025-04-11 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:42:06 - End Time 2025-04-11 21:42:06 [2025-04-11 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887040', 'tblTempUsageDetail_20' ) start [2025-04-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887040', 'tblTempUsageDetail_20' ) end [2025-04-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887040', 'tblTempVendorCDR_20' ) start [2025-04-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887040', 'tblTempVendorCDR_20' ) end [2025-04-11 21:42:19] Production.INFO: ProcessCDR(1,14887040,1,1,2) [2025-04-11 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887040', 'tblTempUsageDetail_20' ) start [2025-04-11 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887040', 'tblTempUsageDetail_20' ) end [2025-04-11 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:42:22] Production.INFO: ==20053== Releasing lock... [2025-04-11 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:42:22] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:43:05 [end_date_ymd] => 2025-04-11 21:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:43:05' and `end` < '2025-04-11 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-04-11 21:43:18] Production.INFO: count ==1391 [2025-04-11 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:43:05 - End Time 2025-04-11 21:43:05 [2025-04-11 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887045', 'tblTempUsageDetail_20' ) start [2025-04-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887045', 'tblTempUsageDetail_20' ) end [2025-04-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887045', 'tblTempVendorCDR_20' ) start [2025-04-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887045', 'tblTempVendorCDR_20' ) end [2025-04-11 21:43:18] Production.INFO: ProcessCDR(1,14887045,1,1,2) [2025-04-11 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887045', 'tblTempUsageDetail_20' ) start [2025-04-11 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887045', 'tblTempUsageDetail_20' ) end [2025-04-11 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:43:21] Production.INFO: ==20124== Releasing lock... [2025-04-11 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:43:21] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:44:05 [end_date_ymd] => 2025-04-11 21:44:05 [RateCDR] => 1 ) [2025-04-11 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:44:05' and `end` < '2025-04-11 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:44:18] Production.INFO: count ==1390 [2025-04-11 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:44:05 - End Time 2025-04-11 21:44:05 [2025-04-11 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887050', 'tblTempUsageDetail_20' ) start [2025-04-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887050', 'tblTempUsageDetail_20' ) end [2025-04-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887050', 'tblTempVendorCDR_20' ) start [2025-04-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887050', 'tblTempVendorCDR_20' ) end [2025-04-11 21:44:18] Production.INFO: ProcessCDR(1,14887050,1,1,2) [2025-04-11 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887050', 'tblTempUsageDetail_20' ) start [2025-04-11 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887050', 'tblTempUsageDetail_20' ) end [2025-04-11 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:44:22] Production.INFO: ==20199== Releasing lock... [2025-04-11 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:44:22] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:45:05 [end_date_ymd] => 2025-04-11 21:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:45:05' and `end` < '2025-04-11 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-04-11 21:45:18] Production.INFO: count ==1390 [2025-04-11 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:45:05 - End Time 2025-04-11 21:45:05 [2025-04-11 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887055', 'tblTempUsageDetail_20' ) start [2025-04-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887055', 'tblTempUsageDetail_20' ) end [2025-04-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887055', 'tblTempVendorCDR_20' ) start [2025-04-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887055', 'tblTempVendorCDR_20' ) end [2025-04-11 21:45:18] Production.INFO: ProcessCDR(1,14887055,1,1,2) [2025-04-11 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887055', 'tblTempUsageDetail_20' ) start [2025-04-11 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887055', 'tblTempUsageDetail_20' ) end [2025-04-11 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:45:22] Production.INFO: ==20272== Releasing lock... [2025-04-11 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:45:22] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:46:05 [end_date_ymd] => 2025-04-11 21:46:05 [RateCDR] => 1 ) [2025-04-11 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:46:05' and `end` < '2025-04-11 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:46:18] Production.INFO: count ==1386 [2025-04-11 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:46:05 - End Time 2025-04-11 21:46:05 [2025-04-11 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887060', 'tblTempUsageDetail_20' ) start [2025-04-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887060', 'tblTempUsageDetail_20' ) end [2025-04-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887060', 'tblTempVendorCDR_20' ) start [2025-04-11 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887060', 'tblTempVendorCDR_20' ) end [2025-04-11 21:46:18] Production.INFO: ProcessCDR(1,14887060,1,1,2) [2025-04-11 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887060', 'tblTempUsageDetail_20' ) start [2025-04-11 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887060', 'tblTempUsageDetail_20' ) end [2025-04-11 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:46:24] Production.INFO: ==20349== Releasing lock... [2025-04-11 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:46:24] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:47:04 [end_date_ymd] => 2025-04-11 21:47:04 [RateCDR] => 1 ) [2025-04-11 21: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-04-11 18:47:04' and `end` < '2025-04-11 21: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-04-11 21:47:17] Production.INFO: count ==1392 [2025-04-11 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:47:04 - End Time 2025-04-11 21:47:04 [2025-04-11 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887065', 'tblTempUsageDetail_20' ) start [2025-04-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887065', 'tblTempUsageDetail_20' ) end [2025-04-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887065', 'tblTempVendorCDR_20' ) start [2025-04-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887065', 'tblTempVendorCDR_20' ) end [2025-04-11 21:47:18] Production.INFO: ProcessCDR(1,14887065,1,1,2) [2025-04-11 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887065', 'tblTempUsageDetail_20' ) start [2025-04-11 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887065', 'tblTempUsageDetail_20' ) end [2025-04-11 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:47:23] Production.INFO: ==20421== Releasing lock... [2025-04-11 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:47:23] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:48:05 [end_date_ymd] => 2025-04-11 21:48:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:48:05' and `end` < '2025-04-11 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-04-11 21:48:18] Production.INFO: count ==1393 [2025-04-11 21:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:48:05 - End Time 2025-04-11 21:48:05 [2025-04-11 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887070', 'tblTempUsageDetail_20' ) start [2025-04-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887070', 'tblTempUsageDetail_20' ) end [2025-04-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887070', 'tblTempVendorCDR_20' ) start [2025-04-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887070', 'tblTempVendorCDR_20' ) end [2025-04-11 21:48:18] Production.INFO: ProcessCDR(1,14887070,1,1,2) [2025-04-11 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887070', 'tblTempUsageDetail_20' ) start [2025-04-11 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887070', 'tblTempUsageDetail_20' ) end [2025-04-11 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:48:24] Production.INFO: ==20534== Releasing lock... [2025-04-11 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:48:24] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:49:04 [end_date_ymd] => 2025-04-11 21:49:04 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:49:04' and `end` < '2025-04-11 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-04-11 21:49:17] Production.INFO: count ==1390 [2025-04-11 21:49:17] Production.ERROR: pbx CDR StartTime 2025-04-11 18:49:04 - End Time 2025-04-11 21:49:04 [2025-04-11 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887075', 'tblTempUsageDetail_20' ) start [2025-04-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887075', 'tblTempUsageDetail_20' ) end [2025-04-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887075', 'tblTempVendorCDR_20' ) start [2025-04-11 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887075', 'tblTempVendorCDR_20' ) end [2025-04-11 21:49:17] Production.INFO: ProcessCDR(1,14887075,1,1,2) [2025-04-11 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887075', 'tblTempUsageDetail_20' ) start [2025-04-11 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887075', 'tblTempUsageDetail_20' ) end [2025-04-11 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:49:22] Production.INFO: ==20606== Releasing lock... [2025-04-11 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:49:22] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:50:07 [end_date_ymd] => 2025-04-11 21:50:07 [RateCDR] => 1 ) [2025-04-11 21: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-04-11 18:50:07' and `end` < '2025-04-11 21: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-04-11 21:50:20] Production.INFO: count ==1393 [2025-04-11 21:50:20] Production.ERROR: pbx CDR StartTime 2025-04-11 18:50:07 - End Time 2025-04-11 21:50:07 [2025-04-11 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887081', 'tblTempUsageDetail_20' ) start [2025-04-11 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887081', 'tblTempUsageDetail_20' ) end [2025-04-11 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887081', 'tblTempVendorCDR_20' ) start [2025-04-11 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887081', 'tblTempVendorCDR_20' ) end [2025-04-11 21:50:20] Production.INFO: ProcessCDR(1,14887081,1,1,2) [2025-04-11 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887081', 'tblTempUsageDetail_20' ) start [2025-04-11 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887081', 'tblTempUsageDetail_20' ) end [2025-04-11 21:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:50:25] Production.INFO: ==20681== Releasing lock... [2025-04-11 21:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:50:25] Production.INFO: 38 MB #Memory Used# [2025-04-11 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:51:04 [end_date_ymd] => 2025-04-11 21:51:04 [RateCDR] => 1 ) [2025-04-11 21:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:51:04' and `end` < '2025-04-11 21:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:51:17] Production.INFO: count ==1306 [2025-04-11 21:51:17] Production.ERROR: pbx CDR StartTime 2025-04-11 18:51:04 - End Time 2025-04-11 21:51:04 [2025-04-11 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887086', 'tblTempUsageDetail_20' ) start [2025-04-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887086', 'tblTempUsageDetail_20' ) end [2025-04-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887086', 'tblTempVendorCDR_20' ) start [2025-04-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887086', 'tblTempVendorCDR_20' ) end [2025-04-11 21:51:18] Production.INFO: ProcessCDR(1,14887086,1,1,2) [2025-04-11 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887086', 'tblTempUsageDetail_20' ) start [2025-04-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887086', 'tblTempUsageDetail_20' ) end [2025-04-11 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:51:21] Production.INFO: ==20764== Releasing lock... [2025-04-11 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:51:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:52:05 [end_date_ymd] => 2025-04-11 21:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:52:05' and `end` < '2025-04-11 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-04-11 21:52:18] Production.INFO: count ==1303 [2025-04-11 21:52:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:52:05 - End Time 2025-04-11 21:52:05 [2025-04-11 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887091', 'tblTempUsageDetail_20' ) start [2025-04-11 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887091', 'tblTempUsageDetail_20' ) end [2025-04-11 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887091', 'tblTempVendorCDR_20' ) start [2025-04-11 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887091', 'tblTempVendorCDR_20' ) end [2025-04-11 21:52:19] Production.INFO: ProcessCDR(1,14887091,1,1,2) [2025-04-11 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887091', 'tblTempUsageDetail_20' ) start [2025-04-11 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887091', 'tblTempUsageDetail_20' ) end [2025-04-11 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:52:22] Production.INFO: ==20838== Releasing lock... [2025-04-11 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:52:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:53:05 [end_date_ymd] => 2025-04-11 21:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:53:05' and `end` < '2025-04-11 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-04-11 21:53:17] Production.INFO: count ==1287 [2025-04-11 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:53:05 - End Time 2025-04-11 21:53:05 [2025-04-11 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887096', 'tblTempUsageDetail_20' ) start [2025-04-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887096', 'tblTempUsageDetail_20' ) end [2025-04-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887096', 'tblTempVendorCDR_20' ) start [2025-04-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887096', 'tblTempVendorCDR_20' ) end [2025-04-11 21:53:18] Production.INFO: ProcessCDR(1,14887096,1,1,2) [2025-04-11 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887096', 'tblTempUsageDetail_20' ) start [2025-04-11 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887096', 'tblTempUsageDetail_20' ) end [2025-04-11 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:53:23] Production.INFO: ==20912== Releasing lock... [2025-04-11 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:53:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:54:05 [end_date_ymd] => 2025-04-11 21:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:54:05' and `end` < '2025-04-11 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-04-11 21:54:18] Production.INFO: count ==1286 [2025-04-11 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:54:05 - End Time 2025-04-11 21:54:05 [2025-04-11 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887101', 'tblTempUsageDetail_20' ) start [2025-04-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887101', 'tblTempUsageDetail_20' ) end [2025-04-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887101', 'tblTempVendorCDR_20' ) start [2025-04-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887101', 'tblTempVendorCDR_20' ) end [2025-04-11 21:54:18] Production.INFO: ProcessCDR(1,14887101,1,1,2) [2025-04-11 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887101', 'tblTempUsageDetail_20' ) start [2025-04-11 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887101', 'tblTempUsageDetail_20' ) end [2025-04-11 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:54:22] Production.INFO: ==20991== Releasing lock... [2025-04-11 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:55:06 [end_date_ymd] => 2025-04-11 21:55:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:55:06' and `end` < '2025-04-11 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-04-11 21:55:19] Production.INFO: count ==1286 [2025-04-11 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-11 18:55:06 - End Time 2025-04-11 21:55:06 [2025-04-11 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887106', 'tblTempUsageDetail_20' ) start [2025-04-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887106', 'tblTempUsageDetail_20' ) end [2025-04-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887106', 'tblTempVendorCDR_20' ) start [2025-04-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887106', 'tblTempVendorCDR_20' ) end [2025-04-11 21:55:19] Production.INFO: ProcessCDR(1,14887106,1,1,2) [2025-04-11 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887106', 'tblTempUsageDetail_20' ) start [2025-04-11 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887106', 'tblTempUsageDetail_20' ) end [2025-04-11 21:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:55:24] Production.INFO: ==21068== Releasing lock... [2025-04-11 21:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:55:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:56:05 [end_date_ymd] => 2025-04-11 21:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:56:05' and `end` < '2025-04-11 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-04-11 21:56:18] Production.INFO: count ==1288 [2025-04-11 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:56:05 - End Time 2025-04-11 21:56:05 [2025-04-11 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887111', 'tblTempUsageDetail_20' ) start [2025-04-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887111', 'tblTempUsageDetail_20' ) end [2025-04-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887111', 'tblTempVendorCDR_20' ) start [2025-04-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887111', 'tblTempVendorCDR_20' ) end [2025-04-11 21:56:18] Production.INFO: ProcessCDR(1,14887111,1,1,2) [2025-04-11 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887111', 'tblTempUsageDetail_20' ) start [2025-04-11 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887111', 'tblTempUsageDetail_20' ) end [2025-04-11 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:56:22] Production.INFO: ==21138== Releasing lock... [2025-04-11 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:57:05 [end_date_ymd] => 2025-04-11 21:57:05 [RateCDR] => 1 ) [2025-04-11 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:57:05' and `end` < '2025-04-11 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:57:18] Production.INFO: count ==1285 [2025-04-11 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:57:05 - End Time 2025-04-11 21:57:05 [2025-04-11 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887116', 'tblTempUsageDetail_20' ) start [2025-04-11 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887116', 'tblTempUsageDetail_20' ) end [2025-04-11 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887116', 'tblTempVendorCDR_20' ) start [2025-04-11 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887116', 'tblTempVendorCDR_20' ) end [2025-04-11 21:57:18] Production.INFO: ProcessCDR(1,14887116,1,1,2) [2025-04-11 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887116', 'tblTempUsageDetail_20' ) start [2025-04-11 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887116', 'tblTempUsageDetail_20' ) end [2025-04-11 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:57:22] Production.INFO: ==21217== Releasing lock... [2025-04-11 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:58:05 [end_date_ymd] => 2025-04-11 21:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 18:58:05' and `end` < '2025-04-11 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-04-11 21:58:18] Production.INFO: count ==1285 [2025-04-11 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:58:05 - End Time 2025-04-11 21:58:05 [2025-04-11 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887121', 'tblTempUsageDetail_20' ) start [2025-04-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887121', 'tblTempUsageDetail_20' ) end [2025-04-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887121', 'tblTempVendorCDR_20' ) start [2025-04-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887121', 'tblTempVendorCDR_20' ) end [2025-04-11 21:58:18] Production.INFO: ProcessCDR(1,14887121,1,1,2) [2025-04-11 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887121', 'tblTempUsageDetail_20' ) start [2025-04-11 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887121', 'tblTempUsageDetail_20' ) end [2025-04-11 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:58:22] Production.INFO: ==21291== Releasing lock... [2025-04-11 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:58:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 18:59:05 [end_date_ymd] => 2025-04-11 21:59:05 [RateCDR] => 1 ) [2025-04-11 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 18:59:05' and `end` < '2025-04-11 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 21:59:18] Production.INFO: count ==1285 [2025-04-11 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 18:59:05 - End Time 2025-04-11 21:59:05 [2025-04-11 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887126', 'tblTempUsageDetail_20' ) start [2025-04-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887126', 'tblTempUsageDetail_20' ) end [2025-04-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887126', 'tblTempVendorCDR_20' ) start [2025-04-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887126', 'tblTempVendorCDR_20' ) end [2025-04-11 21:59:18] Production.INFO: ProcessCDR(1,14887126,1,1,2) [2025-04-11 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887126', 'tblTempUsageDetail_20' ) start [2025-04-11 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887126', 'tblTempUsageDetail_20' ) end [2025-04-11 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 21:59:23] Production.INFO: ==21365== Releasing lock... [2025-04-11 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 21:59:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:00:05 [end_date_ymd] => 2025-04-11 22:00:05 [RateCDR] => 1 ) [2025-04-11 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:00:05' and `end` < '2025-04-11 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:00:18] Production.INFO: count ==1290 [2025-04-11 22:00:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:00:05 - End Time 2025-04-11 22:00:05 [2025-04-11 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887131', 'tblTempUsageDetail_20' ) start [2025-04-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887131', 'tblTempUsageDetail_20' ) end [2025-04-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887131', 'tblTempVendorCDR_20' ) start [2025-04-11 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887131', 'tblTempVendorCDR_20' ) end [2025-04-11 22:00:18] Production.INFO: ProcessCDR(1,14887131,1,1,2) [2025-04-11 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887131', 'tblTempUsageDetail_20' ) start [2025-04-11 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887131', 'tblTempUsageDetail_20' ) end [2025-04-11 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:00:22] Production.INFO: ==21440== Releasing lock... [2025-04-11 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:01:05 [end_date_ymd] => 2025-04-11 22:01:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:01:05' and `end` < '2025-04-11 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-04-11 22:01:18] Production.INFO: count ==1289 [2025-04-11 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:01:05 - End Time 2025-04-11 22:01:05 [2025-04-11 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887137', 'tblTempUsageDetail_20' ) start [2025-04-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887137', 'tblTempUsageDetail_20' ) end [2025-04-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887137', 'tblTempVendorCDR_20' ) start [2025-04-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887137', 'tblTempVendorCDR_20' ) end [2025-04-11 22:01:18] Production.INFO: ProcessCDR(1,14887137,1,1,2) [2025-04-11 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887137', 'tblTempUsageDetail_20' ) start [2025-04-11 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887137', 'tblTempUsageDetail_20' ) end [2025-04-11 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:01:22] Production.INFO: ==21533== Releasing lock... [2025-04-11 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:01:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:02:05 [end_date_ymd] => 2025-04-11 22:02:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:02:05' and `end` < '2025-04-11 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-04-11 22:02:18] Production.INFO: count ==1286 [2025-04-11 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:02:05 - End Time 2025-04-11 22:02:05 [2025-04-11 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887142', 'tblTempUsageDetail_20' ) start [2025-04-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887142', 'tblTempUsageDetail_20' ) end [2025-04-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887142', 'tblTempVendorCDR_20' ) start [2025-04-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887142', 'tblTempVendorCDR_20' ) end [2025-04-11 22:02:18] Production.INFO: ProcessCDR(1,14887142,1,1,2) [2025-04-11 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887142', 'tblTempUsageDetail_20' ) start [2025-04-11 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887142', 'tblTempUsageDetail_20' ) end [2025-04-11 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:02:21] Production.INFO: ==21604== Releasing lock... [2025-04-11 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:02:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:03:06 [end_date_ymd] => 2025-04-11 22:03:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:03:06' and `end` < '2025-04-11 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-04-11 22:03:19] Production.INFO: count ==1286 [2025-04-11 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:03:06 - End Time 2025-04-11 22:03:06 [2025-04-11 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887147', 'tblTempUsageDetail_20' ) start [2025-04-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887147', 'tblTempUsageDetail_20' ) end [2025-04-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887147', 'tblTempVendorCDR_20' ) start [2025-04-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887147', 'tblTempVendorCDR_20' ) end [2025-04-11 22:03:19] Production.INFO: ProcessCDR(1,14887147,1,1,2) [2025-04-11 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887147', 'tblTempUsageDetail_20' ) start [2025-04-11 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887147', 'tblTempUsageDetail_20' ) end [2025-04-11 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:03:22] Production.INFO: ==21713== Releasing lock... [2025-04-11 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:04:05 [end_date_ymd] => 2025-04-11 22:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:04:05' and `end` < '2025-04-11 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-04-11 22:04:18] Production.INFO: count ==1290 [2025-04-11 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:04:05 - End Time 2025-04-11 22:04:05 [2025-04-11 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887152', 'tblTempUsageDetail_20' ) start [2025-04-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887152', 'tblTempUsageDetail_20' ) end [2025-04-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887152', 'tblTempVendorCDR_20' ) start [2025-04-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887152', 'tblTempVendorCDR_20' ) end [2025-04-11 22:04:18] Production.INFO: ProcessCDR(1,14887152,1,1,2) [2025-04-11 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887152', 'tblTempUsageDetail_20' ) start [2025-04-11 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887152', 'tblTempUsageDetail_20' ) end [2025-04-11 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:04:21] Production.INFO: ==21791== Releasing lock... [2025-04-11 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:04:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:05:06 [end_date_ymd] => 2025-04-11 22:05:06 [RateCDR] => 1 ) [2025-04-11 22: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-04-11 19:05:06' and `end` < '2025-04-11 22: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-04-11 22:05:19] Production.INFO: count ==1287 [2025-04-11 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:05:06 - End Time 2025-04-11 22:05:06 [2025-04-11 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887157', 'tblTempUsageDetail_20' ) start [2025-04-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887157', 'tblTempUsageDetail_20' ) end [2025-04-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887157', 'tblTempVendorCDR_20' ) start [2025-04-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887157', 'tblTempVendorCDR_20' ) end [2025-04-11 22:05:19] Production.INFO: ProcessCDR(1,14887157,1,1,2) [2025-04-11 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887157', 'tblTempUsageDetail_20' ) start [2025-04-11 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887157', 'tblTempUsageDetail_20' ) end [2025-04-11 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:05:22] Production.INFO: ==21864== Releasing lock... [2025-04-11 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:06:05 [end_date_ymd] => 2025-04-11 22:06:05 [RateCDR] => 1 ) [2025-04-11 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:06:05' and `end` < '2025-04-11 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:06:18] Production.INFO: count ==1285 [2025-04-11 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:06:05 - End Time 2025-04-11 22:06:05 [2025-04-11 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887162', 'tblTempUsageDetail_20' ) start [2025-04-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887162', 'tblTempUsageDetail_20' ) end [2025-04-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887162', 'tblTempVendorCDR_20' ) start [2025-04-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887162', 'tblTempVendorCDR_20' ) end [2025-04-11 22:06:18] Production.INFO: ProcessCDR(1,14887162,1,1,2) [2025-04-11 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887162', 'tblTempUsageDetail_20' ) start [2025-04-11 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887162', 'tblTempUsageDetail_20' ) end [2025-04-11 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:06:22] Production.INFO: ==21941== Releasing lock... [2025-04-11 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:06:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:07:05 [end_date_ymd] => 2025-04-11 22:07:05 [RateCDR] => 1 ) [2025-04-11 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:07:05' and `end` < '2025-04-11 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:07:18] Production.INFO: count ==1285 [2025-04-11 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:07:05 - End Time 2025-04-11 22:07:05 [2025-04-11 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887167', 'tblTempUsageDetail_20' ) start [2025-04-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887167', 'tblTempUsageDetail_20' ) end [2025-04-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887167', 'tblTempVendorCDR_20' ) start [2025-04-11 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887167', 'tblTempVendorCDR_20' ) end [2025-04-11 22:07:18] Production.INFO: ProcessCDR(1,14887167,1,1,2) [2025-04-11 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887167', 'tblTempUsageDetail_20' ) start [2025-04-11 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887167', 'tblTempUsageDetail_20' ) end [2025-04-11 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:07:22] Production.INFO: ==22014== Releasing lock... [2025-04-11 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:07:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:08:05 [end_date_ymd] => 2025-04-11 22:08:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:08:05' and `end` < '2025-04-11 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-04-11 22:08:18] Production.INFO: count ==1284 [2025-04-11 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:08:05 - End Time 2025-04-11 22:08:05 [2025-04-11 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887172', 'tblTempUsageDetail_20' ) start [2025-04-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887172', 'tblTempUsageDetail_20' ) end [2025-04-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887172', 'tblTempVendorCDR_20' ) start [2025-04-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887172', 'tblTempVendorCDR_20' ) end [2025-04-11 22:08:18] Production.INFO: ProcessCDR(1,14887172,1,1,2) [2025-04-11 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887172', 'tblTempUsageDetail_20' ) start [2025-04-11 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887172', 'tblTempUsageDetail_20' ) end [2025-04-11 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:08:22] Production.INFO: ==22087== Releasing lock... [2025-04-11 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:09:05 [end_date_ymd] => 2025-04-11 22:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:09:05' and `end` < '2025-04-11 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-04-11 22:09:18] Production.INFO: count ==1285 [2025-04-11 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:09:05 - End Time 2025-04-11 22:09:05 [2025-04-11 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887177', 'tblTempUsageDetail_20' ) start [2025-04-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887177', 'tblTempUsageDetail_20' ) end [2025-04-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887177', 'tblTempVendorCDR_20' ) start [2025-04-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887177', 'tblTempVendorCDR_20' ) end [2025-04-11 22:09:18] Production.INFO: ProcessCDR(1,14887177,1,1,2) [2025-04-11 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887177', 'tblTempUsageDetail_20' ) start [2025-04-11 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887177', 'tblTempUsageDetail_20' ) end [2025-04-11 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:09:23] Production.INFO: ==22162== Releasing lock... [2025-04-11 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:09:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:10:06 [end_date_ymd] => 2025-04-11 22:10:06 [RateCDR] => 1 ) [2025-04-11 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:10:06' and `end` < '2025-04-11 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:10:19] Production.INFO: count ==1284 [2025-04-11 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:10:06 - End Time 2025-04-11 22:10:06 [2025-04-11 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887183', 'tblTempUsageDetail_20' ) start [2025-04-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887183', 'tblTempUsageDetail_20' ) end [2025-04-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887183', 'tblTempVendorCDR_20' ) start [2025-04-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887183', 'tblTempVendorCDR_20' ) end [2025-04-11 22:10:19] Production.INFO: ProcessCDR(1,14887183,1,1,2) [2025-04-11 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887183', 'tblTempUsageDetail_20' ) start [2025-04-11 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887183', 'tblTempUsageDetail_20' ) end [2025-04-11 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:10:23] Production.INFO: ==22236== Releasing lock... [2025-04-11 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-11 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:11:06 [end_date_ymd] => 2025-04-11 22:11:06 [RateCDR] => 1 ) [2025-04-11 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:11:06' and `end` < '2025-04-11 22:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:11:19] Production.INFO: count ==1226 [2025-04-11 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:11:06 - End Time 2025-04-11 22:11:06 [2025-04-11 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887188', 'tblTempUsageDetail_20' ) start [2025-04-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887188', 'tblTempUsageDetail_20' ) end [2025-04-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887188', 'tblTempVendorCDR_20' ) start [2025-04-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887188', 'tblTempVendorCDR_20' ) end [2025-04-11 22:11:19] Production.INFO: ProcessCDR(1,14887188,1,1,2) [2025-04-11 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887188', 'tblTempUsageDetail_20' ) start [2025-04-11 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887188', 'tblTempUsageDetail_20' ) end [2025-04-11 22:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:11:24] Production.INFO: ==22316== Releasing lock... [2025-04-11 22:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:11:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:12:05 [end_date_ymd] => 2025-04-11 22:12:05 [RateCDR] => 1 ) [2025-04-11 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:12:05' and `end` < '2025-04-11 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:12:17] Production.INFO: count ==1225 [2025-04-11 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:12:05 - End Time 2025-04-11 22:12:05 [2025-04-11 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887193', 'tblTempUsageDetail_20' ) start [2025-04-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887193', 'tblTempUsageDetail_20' ) end [2025-04-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887193', 'tblTempVendorCDR_20' ) start [2025-04-11 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887193', 'tblTempVendorCDR_20' ) end [2025-04-11 22:12:18] Production.INFO: ProcessCDR(1,14887193,1,1,2) [2025-04-11 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887193', 'tblTempUsageDetail_20' ) start [2025-04-11 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887193', 'tblTempUsageDetail_20' ) end [2025-04-11 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:12:21] Production.INFO: ==22391== Releasing lock... [2025-04-11 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:12:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:13:05 [end_date_ymd] => 2025-04-11 22:13:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:13:05' and `end` < '2025-04-11 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-04-11 22:13:18] Production.INFO: count ==1222 [2025-04-11 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:13:05 - End Time 2025-04-11 22:13:05 [2025-04-11 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887198', 'tblTempUsageDetail_20' ) start [2025-04-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887198', 'tblTempUsageDetail_20' ) end [2025-04-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887198', 'tblTempVendorCDR_20' ) start [2025-04-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887198', 'tblTempVendorCDR_20' ) end [2025-04-11 22:13:18] Production.INFO: ProcessCDR(1,14887198,1,1,2) [2025-04-11 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887198', 'tblTempUsageDetail_20' ) start [2025-04-11 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887198', 'tblTempUsageDetail_20' ) end [2025-04-11 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:13:23] Production.INFO: ==22470== Releasing lock... [2025-04-11 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:13:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:14:05 [end_date_ymd] => 2025-04-11 22:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:14:05' and `end` < '2025-04-11 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-04-11 22:14:18] Production.INFO: count ==1224 [2025-04-11 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:14:05 - End Time 2025-04-11 22:14:05 [2025-04-11 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887203', 'tblTempUsageDetail_20' ) start [2025-04-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887203', 'tblTempUsageDetail_20' ) end [2025-04-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887203', 'tblTempVendorCDR_20' ) start [2025-04-11 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887203', 'tblTempVendorCDR_20' ) end [2025-04-11 22:14:18] Production.INFO: ProcessCDR(1,14887203,1,1,2) [2025-04-11 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887203', 'tblTempUsageDetail_20' ) start [2025-04-11 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887203', 'tblTempUsageDetail_20' ) end [2025-04-11 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:14:22] Production.INFO: ==22541== Releasing lock... [2025-04-11 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:15:05 [end_date_ymd] => 2025-04-11 22:15:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:15:05' and `end` < '2025-04-11 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-04-11 22:15:18] Production.INFO: count ==1224 [2025-04-11 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:15:05 - End Time 2025-04-11 22:15:05 [2025-04-11 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887208', 'tblTempUsageDetail_20' ) start [2025-04-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887208', 'tblTempUsageDetail_20' ) end [2025-04-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887208', 'tblTempVendorCDR_20' ) start [2025-04-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887208', 'tblTempVendorCDR_20' ) end [2025-04-11 22:15:18] Production.INFO: ProcessCDR(1,14887208,1,1,2) [2025-04-11 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887208', 'tblTempUsageDetail_20' ) start [2025-04-11 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887208', 'tblTempUsageDetail_20' ) end [2025-04-11 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:15:22] Production.INFO: ==22615== Releasing lock... [2025-04-11 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:15:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:16:05 [end_date_ymd] => 2025-04-11 22:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:16:05' and `end` < '2025-04-11 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-04-11 22:16:18] Production.INFO: count ==1223 [2025-04-11 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:16:05 - End Time 2025-04-11 22:16:05 [2025-04-11 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887213', 'tblTempUsageDetail_20' ) start [2025-04-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887213', 'tblTempUsageDetail_20' ) end [2025-04-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887213', 'tblTempVendorCDR_20' ) start [2025-04-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887213', 'tblTempVendorCDR_20' ) end [2025-04-11 22:16:19] Production.INFO: ProcessCDR(1,14887213,1,1,2) [2025-04-11 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887213', 'tblTempUsageDetail_20' ) start [2025-04-11 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887213', 'tblTempUsageDetail_20' ) end [2025-04-11 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:16:22] Production.INFO: ==22700== Releasing lock... [2025-04-11 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:16:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:17:04 [end_date_ymd] => 2025-04-11 22:17:04 [RateCDR] => 1 ) [2025-04-11 22:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:17:04' and `end` < '2025-04-11 22:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:17:18] Production.INFO: count ==1228 [2025-04-11 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:17:04 - End Time 2025-04-11 22:17:04 [2025-04-11 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887218', 'tblTempUsageDetail_20' ) start [2025-04-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887218', 'tblTempUsageDetail_20' ) end [2025-04-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887218', 'tblTempVendorCDR_20' ) start [2025-04-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887218', 'tblTempVendorCDR_20' ) end [2025-04-11 22:17:18] Production.INFO: ProcessCDR(1,14887218,1,1,2) [2025-04-11 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887218', 'tblTempUsageDetail_20' ) start [2025-04-11 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887218', 'tblTempUsageDetail_20' ) end [2025-04-11 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:17:21] Production.INFO: ==22770== Releasing lock... [2025-04-11 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:17:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:18:05 [end_date_ymd] => 2025-04-11 22:18:05 [RateCDR] => 1 ) [2025-04-11 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:18:05' and `end` < '2025-04-11 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:18:18] Production.INFO: count ==1226 [2025-04-11 22:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:18:05 - End Time 2025-04-11 22:18:05 [2025-04-11 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887223', 'tblTempUsageDetail_20' ) start [2025-04-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887223', 'tblTempUsageDetail_20' ) end [2025-04-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887223', 'tblTempVendorCDR_20' ) start [2025-04-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887223', 'tblTempVendorCDR_20' ) end [2025-04-11 22:18:18] Production.INFO: ProcessCDR(1,14887223,1,1,2) [2025-04-11 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887223', 'tblTempUsageDetail_20' ) start [2025-04-11 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887223', 'tblTempUsageDetail_20' ) end [2025-04-11 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:18:22] Production.INFO: ==22849== Releasing lock... [2025-04-11 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:19:05 [end_date_ymd] => 2025-04-11 22:19:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:19:05' and `end` < '2025-04-11 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-04-11 22:19:18] Production.INFO: count ==1225 [2025-04-11 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:19:05 - End Time 2025-04-11 22:19:05 [2025-04-11 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887228', 'tblTempUsageDetail_20' ) start [2025-04-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887228', 'tblTempUsageDetail_20' ) end [2025-04-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887228', 'tblTempVendorCDR_20' ) start [2025-04-11 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887228', 'tblTempVendorCDR_20' ) end [2025-04-11 22:19:18] Production.INFO: ProcessCDR(1,14887228,1,1,2) [2025-04-11 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887228', 'tblTempUsageDetail_20' ) start [2025-04-11 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887228', 'tblTempUsageDetail_20' ) end [2025-04-11 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:19:21] Production.INFO: ==22961== Releasing lock... [2025-04-11 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:19:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:20:06 [end_date_ymd] => 2025-04-11 22:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:20:06' and `end` < '2025-04-11 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-04-11 22:20:19] Production.INFO: count ==1215 [2025-04-11 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:20:06 - End Time 2025-04-11 22:20:06 [2025-04-11 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887234', 'tblTempUsageDetail_20' ) start [2025-04-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887234', 'tblTempUsageDetail_20' ) end [2025-04-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887234', 'tblTempVendorCDR_20' ) start [2025-04-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887234', 'tblTempVendorCDR_20' ) end [2025-04-11 22:20:19] Production.INFO: ProcessCDR(1,14887234,1,1,2) [2025-04-11 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887234', 'tblTempUsageDetail_20' ) start [2025-04-11 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887234', 'tblTempUsageDetail_20' ) end [2025-04-11 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:20:23] Production.INFO: ==23036== Releasing lock... [2025-04-11 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:20:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-11 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:21:05 [end_date_ymd] => 2025-04-11 22:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:21:05' and `end` < '2025-04-11 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-04-11 22:21:18] Production.INFO: count ==1203 [2025-04-11 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:21:05 - End Time 2025-04-11 22:21:05 [2025-04-11 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887239', 'tblTempUsageDetail_20' ) start [2025-04-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887239', 'tblTempUsageDetail_20' ) end [2025-04-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887239', 'tblTempVendorCDR_20' ) start [2025-04-11 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887239', 'tblTempVendorCDR_20' ) end [2025-04-11 22:21:18] Production.INFO: ProcessCDR(1,14887239,1,1,2) [2025-04-11 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887239', 'tblTempUsageDetail_20' ) start [2025-04-11 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887239', 'tblTempUsageDetail_20' ) end [2025-04-11 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:21:21] Production.INFO: ==23115== Releasing lock... [2025-04-11 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:21:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:22:06 [end_date_ymd] => 2025-04-11 22:22:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:22:06' and `end` < '2025-04-11 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-04-11 22:22:19] Production.INFO: count ==1202 [2025-04-11 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:22:06 - End Time 2025-04-11 22:22:06 [2025-04-11 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887244', 'tblTempUsageDetail_20' ) start [2025-04-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887244', 'tblTempUsageDetail_20' ) end [2025-04-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887244', 'tblTempVendorCDR_20' ) start [2025-04-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887244', 'tblTempVendorCDR_20' ) end [2025-04-11 22:22:19] Production.INFO: ProcessCDR(1,14887244,1,1,2) [2025-04-11 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887244', 'tblTempUsageDetail_20' ) start [2025-04-11 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887244', 'tblTempUsageDetail_20' ) end [2025-04-11 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:22:22] Production.INFO: ==23186== Releasing lock... [2025-04-11 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:22:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:23:05 [end_date_ymd] => 2025-04-11 22:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:23:05' and `end` < '2025-04-11 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-04-11 22:23:18] Production.INFO: count ==1186 [2025-04-11 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:23:05 - End Time 2025-04-11 22:23:05 [2025-04-11 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887249', 'tblTempUsageDetail_20' ) start [2025-04-11 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887249', 'tblTempUsageDetail_20' ) end [2025-04-11 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887249', 'tblTempVendorCDR_20' ) start [2025-04-11 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887249', 'tblTempVendorCDR_20' ) end [2025-04-11 22:23:18] Production.INFO: ProcessCDR(1,14887249,1,1,2) [2025-04-11 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887249', 'tblTempUsageDetail_20' ) start [2025-04-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887249', 'tblTempUsageDetail_20' ) end [2025-04-11 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:23:22] Production.INFO: ==23258== Releasing lock... [2025-04-11 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:23:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:24:06 [end_date_ymd] => 2025-04-11 22:24:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:24:06' and `end` < '2025-04-11 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-04-11 22:24:18] Production.INFO: count ==1178 [2025-04-11 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:24:06 - End Time 2025-04-11 22:24:06 [2025-04-11 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887254', 'tblTempUsageDetail_20' ) start [2025-04-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887254', 'tblTempUsageDetail_20' ) end [2025-04-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887254', 'tblTempVendorCDR_20' ) start [2025-04-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887254', 'tblTempVendorCDR_20' ) end [2025-04-11 22:24:19] Production.INFO: ProcessCDR(1,14887254,1,1,2) [2025-04-11 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887254', 'tblTempUsageDetail_20' ) start [2025-04-11 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887254', 'tblTempUsageDetail_20' ) end [2025-04-11 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:24:22] Production.INFO: ==23339== Releasing lock... [2025-04-11 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:24:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:25:05 [end_date_ymd] => 2025-04-11 22:25:05 [RateCDR] => 1 ) [2025-04-11 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:25:05' and `end` < '2025-04-11 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:25:18] Production.INFO: count ==1175 [2025-04-11 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:25:05 - End Time 2025-04-11 22:25:05 [2025-04-11 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887259', 'tblTempUsageDetail_20' ) start [2025-04-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887259', 'tblTempUsageDetail_20' ) end [2025-04-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887259', 'tblTempVendorCDR_20' ) start [2025-04-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887259', 'tblTempVendorCDR_20' ) end [2025-04-11 22:25:18] Production.INFO: ProcessCDR(1,14887259,1,1,2) [2025-04-11 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887259', 'tblTempUsageDetail_20' ) start [2025-04-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887259', 'tblTempUsageDetail_20' ) end [2025-04-11 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:25:21] Production.INFO: ==23411== Releasing lock... [2025-04-11 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:25:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:26:05 [end_date_ymd] => 2025-04-11 22:26:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:26:05' and `end` < '2025-04-11 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-04-11 22:26:18] Production.INFO: count ==1174 [2025-04-11 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:26:05 - End Time 2025-04-11 22:26:05 [2025-04-11 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887264', 'tblTempUsageDetail_20' ) start [2025-04-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887264', 'tblTempUsageDetail_20' ) end [2025-04-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887264', 'tblTempVendorCDR_20' ) start [2025-04-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887264', 'tblTempVendorCDR_20' ) end [2025-04-11 22:26:18] Production.INFO: ProcessCDR(1,14887264,1,1,2) [2025-04-11 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887264', 'tblTempUsageDetail_20' ) start [2025-04-11 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887264', 'tblTempUsageDetail_20' ) end [2025-04-11 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:26:22] Production.INFO: ==23485== Releasing lock... [2025-04-11 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:26:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-11 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:27:05 [end_date_ymd] => 2025-04-11 22:27:05 [RateCDR] => 1 ) [2025-04-11 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:27:05' and `end` < '2025-04-11 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-04-11 22:27:18] Production.INFO: count ==1173 [2025-04-11 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:27:05 - End Time 2025-04-11 22:27:05 [2025-04-11 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887269', 'tblTempUsageDetail_20' ) start [2025-04-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887269', 'tblTempUsageDetail_20' ) end [2025-04-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887269', 'tblTempVendorCDR_20' ) start [2025-04-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887269', 'tblTempVendorCDR_20' ) end [2025-04-11 22:27:18] Production.INFO: ProcessCDR(1,14887269,1,1,2) [2025-04-11 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887269', 'tblTempUsageDetail_20' ) start [2025-04-11 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887269', 'tblTempUsageDetail_20' ) end [2025-04-11 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:27:22] Production.INFO: ==23557== Releasing lock... [2025-04-11 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:27:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-11 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:28:05 [end_date_ymd] => 2025-04-11 22:28:05 [RateCDR] => 1 ) [2025-04-11 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:28:05' and `end` < '2025-04-11 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:28:18] Production.INFO: count ==1173 [2025-04-11 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:28:05 - End Time 2025-04-11 22:28:05 [2025-04-11 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887274', 'tblTempUsageDetail_20' ) start [2025-04-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887274', 'tblTempUsageDetail_20' ) end [2025-04-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887274', 'tblTempVendorCDR_20' ) start [2025-04-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887274', 'tblTempVendorCDR_20' ) end [2025-04-11 22:28:18] Production.INFO: ProcessCDR(1,14887274,1,1,2) [2025-04-11 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887274', 'tblTempUsageDetail_20' ) start [2025-04-11 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887274', 'tblTempUsageDetail_20' ) end [2025-04-11 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:28:22] Production.INFO: ==23629== Releasing lock... [2025-04-11 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:28:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-11 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:29:04 [end_date_ymd] => 2025-04-11 22:29:04 [RateCDR] => 1 ) [2025-04-11 22:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:29:04' and `end` < '2025-04-11 22:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:29:17] Production.INFO: count ==1170 [2025-04-11 22:29:17] Production.ERROR: pbx CDR StartTime 2025-04-11 19:29:04 - End Time 2025-04-11 22:29:04 [2025-04-11 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887279', 'tblTempUsageDetail_20' ) start [2025-04-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887279', 'tblTempUsageDetail_20' ) end [2025-04-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887279', 'tblTempVendorCDR_20' ) start [2025-04-11 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887279', 'tblTempVendorCDR_20' ) end [2025-04-11 22:29:17] Production.INFO: ProcessCDR(1,14887279,1,1,2) [2025-04-11 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887279', 'tblTempUsageDetail_20' ) start [2025-04-11 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887279', 'tblTempUsageDetail_20' ) end [2025-04-11 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:29:21] Production.INFO: ==23701== Releasing lock... [2025-04-11 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:29:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-11 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:30:06 [end_date_ymd] => 2025-04-11 22:30:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:30:06' and `end` < '2025-04-11 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-04-11 22:30:19] Production.INFO: count ==1167 [2025-04-11 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:30:06 - End Time 2025-04-11 22:30:06 [2025-04-11 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887285', 'tblTempUsageDetail_20' ) start [2025-04-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887285', 'tblTempUsageDetail_20' ) end [2025-04-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887285', 'tblTempVendorCDR_20' ) start [2025-04-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887285', 'tblTempVendorCDR_20' ) end [2025-04-11 22:30:19] Production.INFO: ProcessCDR(1,14887285,1,1,2) [2025-04-11 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887285', 'tblTempUsageDetail_20' ) start [2025-04-11 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887285', 'tblTempUsageDetail_20' ) end [2025-04-11 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:30:22] Production.INFO: ==23776== Releasing lock... [2025-04-11 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-11 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:31:05 [end_date_ymd] => 2025-04-11 22:31:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:31:05' and `end` < '2025-04-11 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-04-11 22:31:18] Production.INFO: count ==1097 [2025-04-11 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:31:05 - End Time 2025-04-11 22:31:05 [2025-04-11 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887290', 'tblTempUsageDetail_20' ) start [2025-04-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887290', 'tblTempUsageDetail_20' ) end [2025-04-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887290', 'tblTempVendorCDR_20' ) start [2025-04-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887290', 'tblTempVendorCDR_20' ) end [2025-04-11 22:31:18] Production.INFO: ProcessCDR(1,14887290,1,1,2) [2025-04-11 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887290', 'tblTempUsageDetail_20' ) start [2025-04-11 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887290', 'tblTempUsageDetail_20' ) end [2025-04-11 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:31:22] Production.INFO: ==23849== Releasing lock... [2025-04-11 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:32:06 [end_date_ymd] => 2025-04-11 22:32:06 [RateCDR] => 1 ) [2025-04-11 22: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-04-11 19:32:06' and `end` < '2025-04-11 22: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-04-11 22:32:19] Production.INFO: count ==1089 [2025-04-11 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:32:06 - End Time 2025-04-11 22:32:06 [2025-04-11 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887295', 'tblTempUsageDetail_20' ) start [2025-04-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887295', 'tblTempUsageDetail_20' ) end [2025-04-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887295', 'tblTempVendorCDR_20' ) start [2025-04-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887295', 'tblTempVendorCDR_20' ) end [2025-04-11 22:32:19] Production.INFO: ProcessCDR(1,14887295,1,1,2) [2025-04-11 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887295', 'tblTempUsageDetail_20' ) start [2025-04-11 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887295', 'tblTempUsageDetail_20' ) end [2025-04-11 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:32:23] Production.INFO: ==23927== Releasing lock... [2025-04-11 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:32:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:33:05 [end_date_ymd] => 2025-04-11 22:33:05 [RateCDR] => 1 ) [2025-04-11 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:33:05' and `end` < '2025-04-11 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:33:18] Production.INFO: count ==1087 [2025-04-11 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:33:05 - End Time 2025-04-11 22:33:05 [2025-04-11 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887300', 'tblTempUsageDetail_20' ) start [2025-04-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887300', 'tblTempUsageDetail_20' ) end [2025-04-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887300', 'tblTempVendorCDR_20' ) start [2025-04-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887300', 'tblTempVendorCDR_20' ) end [2025-04-11 22:33:18] Production.INFO: ProcessCDR(1,14887300,1,1,2) [2025-04-11 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887300', 'tblTempUsageDetail_20' ) start [2025-04-11 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887300', 'tblTempUsageDetail_20' ) end [2025-04-11 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:33:21] Production.INFO: ==23999== Releasing lock... [2025-04-11 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:33:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:34:05 [end_date_ymd] => 2025-04-11 22:34:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:34:05' and `end` < '2025-04-11 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-04-11 22:34:18] Production.INFO: count ==1086 [2025-04-11 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:34:05 - End Time 2025-04-11 22:34:05 [2025-04-11 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887305', 'tblTempUsageDetail_20' ) start [2025-04-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887305', 'tblTempUsageDetail_20' ) end [2025-04-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887305', 'tblTempVendorCDR_20' ) start [2025-04-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887305', 'tblTempVendorCDR_20' ) end [2025-04-11 22:34:18] Production.INFO: ProcessCDR(1,14887305,1,1,2) [2025-04-11 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887305', 'tblTempUsageDetail_20' ) start [2025-04-11 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887305', 'tblTempUsageDetail_20' ) end [2025-04-11 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:34:22] Production.INFO: ==24109== Releasing lock... [2025-04-11 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:35:05 [end_date_ymd] => 2025-04-11 22:35:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:35:05' and `end` < '2025-04-11 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-04-11 22:35:18] Production.INFO: count ==1088 [2025-04-11 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:35:05 - End Time 2025-04-11 22:35:05 [2025-04-11 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887310', 'tblTempUsageDetail_20' ) start [2025-04-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887310', 'tblTempUsageDetail_20' ) end [2025-04-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887310', 'tblTempVendorCDR_20' ) start [2025-04-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887310', 'tblTempVendorCDR_20' ) end [2025-04-11 22:35:18] Production.INFO: ProcessCDR(1,14887310,1,1,2) [2025-04-11 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887310', 'tblTempUsageDetail_20' ) start [2025-04-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887310', 'tblTempUsageDetail_20' ) end [2025-04-11 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:35:21] Production.INFO: ==24184== Releasing lock... [2025-04-11 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:35:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:36:05 [end_date_ymd] => 2025-04-11 22:36:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:36:05' and `end` < '2025-04-11 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-04-11 22:36:18] Production.INFO: count ==1087 [2025-04-11 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:36:05 - End Time 2025-04-11 22:36:05 [2025-04-11 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887315', 'tblTempUsageDetail_20' ) start [2025-04-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887315', 'tblTempUsageDetail_20' ) end [2025-04-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887315', 'tblTempVendorCDR_20' ) start [2025-04-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887315', 'tblTempVendorCDR_20' ) end [2025-04-11 22:36:18] Production.INFO: ProcessCDR(1,14887315,1,1,2) [2025-04-11 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887315', 'tblTempUsageDetail_20' ) start [2025-04-11 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887315', 'tblTempUsageDetail_20' ) end [2025-04-11 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:36:22] Production.INFO: ==24263== Releasing lock... [2025-04-11 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:36:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:37:05 [end_date_ymd] => 2025-04-11 22:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:37:05' and `end` < '2025-04-11 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-04-11 22:37:18] Production.INFO: count ==1083 [2025-04-11 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:37:05 - End Time 2025-04-11 22:37:05 [2025-04-11 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887320', 'tblTempUsageDetail_20' ) start [2025-04-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887320', 'tblTempUsageDetail_20' ) end [2025-04-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887320', 'tblTempVendorCDR_20' ) start [2025-04-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887320', 'tblTempVendorCDR_20' ) end [2025-04-11 22:37:18] Production.INFO: ProcessCDR(1,14887320,1,1,2) [2025-04-11 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887320', 'tblTempUsageDetail_20' ) start [2025-04-11 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887320', 'tblTempUsageDetail_20' ) end [2025-04-11 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:37:22] Production.INFO: ==24335== Releasing lock... [2025-04-11 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:37:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:38:05 [end_date_ymd] => 2025-04-11 22:38:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:38:05' and `end` < '2025-04-11 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-04-11 22:38:18] Production.INFO: count ==1087 [2025-04-11 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:38:05 - End Time 2025-04-11 22:38:05 [2025-04-11 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887325', 'tblTempUsageDetail_20' ) start [2025-04-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887325', 'tblTempUsageDetail_20' ) end [2025-04-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887325', 'tblTempVendorCDR_20' ) start [2025-04-11 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887325', 'tblTempVendorCDR_20' ) end [2025-04-11 22:38:18] Production.INFO: ProcessCDR(1,14887325,1,1,2) [2025-04-11 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887325', 'tblTempUsageDetail_20' ) start [2025-04-11 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887325', 'tblTempUsageDetail_20' ) end [2025-04-11 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:38:22] Production.INFO: ==24408== Releasing lock... [2025-04-11 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:38:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:39:04 [end_date_ymd] => 2025-04-11 22:39:04 [RateCDR] => 1 ) [2025-04-11 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:39:04' and `end` < '2025-04-11 22:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:39:17] Production.INFO: count ==1081 [2025-04-11 22:39:17] Production.ERROR: pbx CDR StartTime 2025-04-11 19:39:04 - End Time 2025-04-11 22:39:04 [2025-04-11 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887330', 'tblTempUsageDetail_20' ) start [2025-04-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887330', 'tblTempUsageDetail_20' ) end [2025-04-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887330', 'tblTempVendorCDR_20' ) start [2025-04-11 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887330', 'tblTempVendorCDR_20' ) end [2025-04-11 22:39:17] Production.INFO: ProcessCDR(1,14887330,1,1,2) [2025-04-11 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887330', 'tblTempUsageDetail_20' ) start [2025-04-11 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887330', 'tblTempUsageDetail_20' ) end [2025-04-11 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:39:21] Production.INFO: ==24488== Releasing lock... [2025-04-11 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:39:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:40:06 [end_date_ymd] => 2025-04-11 22:40:06 [RateCDR] => 1 ) [2025-04-11 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:40:06' and `end` < '2025-04-11 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:40:19] Production.INFO: count ==1084 [2025-04-11 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:40:06 - End Time 2025-04-11 22:40:06 [2025-04-11 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887335', 'tblTempUsageDetail_20' ) start [2025-04-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887335', 'tblTempUsageDetail_20' ) end [2025-04-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887335', 'tblTempVendorCDR_20' ) start [2025-04-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887335', 'tblTempVendorCDR_20' ) end [2025-04-11 22:40:19] Production.INFO: ProcessCDR(1,14887335,1,1,2) [2025-04-11 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887335', 'tblTempUsageDetail_20' ) start [2025-04-11 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887335', 'tblTempUsageDetail_20' ) end [2025-04-11 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:40:24] Production.INFO: ==24562== Releasing lock... [2025-04-11 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:40:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:41:05 [end_date_ymd] => 2025-04-11 22:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:41:05' and `end` < '2025-04-11 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-04-11 22:41:18] Production.INFO: count ==995 [2025-04-11 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:41:05 - End Time 2025-04-11 22:41:05 [2025-04-11 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887341', 'tblTempUsageDetail_20' ) start [2025-04-11 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887341', 'tblTempUsageDetail_20' ) end [2025-04-11 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887341', 'tblTempVendorCDR_20' ) start [2025-04-11 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887341', 'tblTempVendorCDR_20' ) end [2025-04-11 22:41:18] Production.INFO: ProcessCDR(1,14887341,1,1,2) [2025-04-11 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887341', 'tblTempUsageDetail_20' ) start [2025-04-11 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887341', 'tblTempUsageDetail_20' ) end [2025-04-11 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:41:21] Production.INFO: ==24641== Releasing lock... [2025-04-11 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:41:21] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:42:06 [end_date_ymd] => 2025-04-11 22:42:06 [RateCDR] => 1 ) [2025-04-11 22: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-04-11 19:42:06' and `end` < '2025-04-11 22: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-04-11 22:42:19] Production.INFO: count ==994 [2025-04-11 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:42:06 - End Time 2025-04-11 22:42:06 [2025-04-11 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887346', 'tblTempUsageDetail_20' ) start [2025-04-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887346', 'tblTempUsageDetail_20' ) end [2025-04-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887346', 'tblTempVendorCDR_20' ) start [2025-04-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887346', 'tblTempVendorCDR_20' ) end [2025-04-11 22:42:19] Production.INFO: ProcessCDR(1,14887346,1,1,2) [2025-04-11 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887346', 'tblTempUsageDetail_20' ) start [2025-04-11 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887346', 'tblTempUsageDetail_20' ) end [2025-04-11 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:42:22] Production.INFO: ==24718== Releasing lock... [2025-04-11 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:42:22] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:43:05 [end_date_ymd] => 2025-04-11 22:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:43:05' and `end` < '2025-04-11 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-04-11 22:43:18] Production.INFO: count ==996 [2025-04-11 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:43:05 - End Time 2025-04-11 22:43:05 [2025-04-11 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887351', 'tblTempUsageDetail_20' ) start [2025-04-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887351', 'tblTempUsageDetail_20' ) end [2025-04-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887351', 'tblTempVendorCDR_20' ) start [2025-04-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887351', 'tblTempVendorCDR_20' ) end [2025-04-11 22:43:18] Production.INFO: ProcessCDR(1,14887351,1,1,2) [2025-04-11 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887351', 'tblTempUsageDetail_20' ) start [2025-04-11 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887351', 'tblTempUsageDetail_20' ) end [2025-04-11 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:43:23] Production.INFO: ==24790== Releasing lock... [2025-04-11 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:43:23] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:44:05 [end_date_ymd] => 2025-04-11 22:44:05 [RateCDR] => 1 ) [2025-04-11 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:44:05' and `end` < '2025-04-11 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:44:18] Production.INFO: count ==996 [2025-04-11 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:44:05 - End Time 2025-04-11 22:44:05 [2025-04-11 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887352', 'tblTempUsageDetail_20' ) start [2025-04-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887352', 'tblTempUsageDetail_20' ) end [2025-04-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887352', 'tblTempVendorCDR_20' ) start [2025-04-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887352', 'tblTempVendorCDR_20' ) end [2025-04-11 22:44:18] Production.INFO: ProcessCDR(1,14887352,1,1,2) [2025-04-11 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887352', 'tblTempUsageDetail_20' ) start [2025-04-11 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887352', 'tblTempUsageDetail_20' ) end [2025-04-11 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:44:22] Production.INFO: ==24867== Releasing lock... [2025-04-11 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:44:22] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:45:05 [end_date_ymd] => 2025-04-11 22:45:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:45:05' and `end` < '2025-04-11 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-04-11 22:45:18] Production.INFO: count ==996 [2025-04-11 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:45:05 - End Time 2025-04-11 22:45:05 [2025-04-11 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887361', 'tblTempUsageDetail_20' ) start [2025-04-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887361', 'tblTempUsageDetail_20' ) end [2025-04-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887361', 'tblTempVendorCDR_20' ) start [2025-04-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887361', 'tblTempVendorCDR_20' ) end [2025-04-11 22:45:18] Production.INFO: ProcessCDR(1,14887361,1,1,2) [2025-04-11 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887361', 'tblTempUsageDetail_20' ) start [2025-04-11 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887361', 'tblTempUsageDetail_20' ) end [2025-04-11 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:45:21] Production.INFO: ==24944== Releasing lock... [2025-04-11 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:45:21] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:46:06 [end_date_ymd] => 2025-04-11 22:46:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:46:06' and `end` < '2025-04-11 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-04-11 22:46:19] Production.INFO: count ==996 [2025-04-11 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:46:06 - End Time 2025-04-11 22:46:06 [2025-04-11 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887366', 'tblTempUsageDetail_20' ) start [2025-04-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887366', 'tblTempUsageDetail_20' ) end [2025-04-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887366', 'tblTempVendorCDR_20' ) start [2025-04-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887366', 'tblTempVendorCDR_20' ) end [2025-04-11 22:46:19] Production.INFO: ProcessCDR(1,14887366,1,1,2) [2025-04-11 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887366', 'tblTempUsageDetail_20' ) start [2025-04-11 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887366', 'tblTempUsageDetail_20' ) end [2025-04-11 22:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:46:24] Production.INFO: ==25020== Releasing lock... [2025-04-11 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:46:24] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:47:05 [end_date_ymd] => 2025-04-11 22:47:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:47:05' and `end` < '2025-04-11 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-04-11 22:47:18] Production.INFO: count ==993 [2025-04-11 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:47:05 - End Time 2025-04-11 22:47:05 [2025-04-11 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887371', 'tblTempUsageDetail_20' ) start [2025-04-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887371', 'tblTempUsageDetail_20' ) end [2025-04-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887371', 'tblTempVendorCDR_20' ) start [2025-04-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887371', 'tblTempVendorCDR_20' ) end [2025-04-11 22:47:18] Production.INFO: ProcessCDR(1,14887371,1,1,2) [2025-04-11 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887371', 'tblTempUsageDetail_20' ) start [2025-04-11 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887371', 'tblTempUsageDetail_20' ) end [2025-04-11 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:47:22] Production.INFO: ==25090== Releasing lock... [2025-04-11 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:47:22] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:48:05 [end_date_ymd] => 2025-04-11 22:48:05 [RateCDR] => 1 ) [2025-04-11 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:48:05' and `end` < '2025-04-11 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:48:18] Production.INFO: count ==992 [2025-04-11 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:48:05 - End Time 2025-04-11 22:48:05 [2025-04-11 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887376', 'tblTempUsageDetail_20' ) start [2025-04-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887376', 'tblTempUsageDetail_20' ) end [2025-04-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887376', 'tblTempVendorCDR_20' ) start [2025-04-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887376', 'tblTempVendorCDR_20' ) end [2025-04-11 22:48:18] Production.INFO: ProcessCDR(1,14887376,1,1,2) [2025-04-11 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887376', 'tblTempUsageDetail_20' ) start [2025-04-11 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887376', 'tblTempUsageDetail_20' ) end [2025-04-11 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:48:23] Production.INFO: ==25162== Releasing lock... [2025-04-11 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:48:23] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:49:05 [end_date_ymd] => 2025-04-11 22:49:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:49:05' and `end` < '2025-04-11 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-04-11 22:49:18] Production.INFO: count ==989 [2025-04-11 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:49:05 - End Time 2025-04-11 22:49:05 [2025-04-11 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887381', 'tblTempUsageDetail_20' ) start [2025-04-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887381', 'tblTempUsageDetail_20' ) end [2025-04-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887381', 'tblTempVendorCDR_20' ) start [2025-04-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887381', 'tblTempVendorCDR_20' ) end [2025-04-11 22:49:18] Production.INFO: ProcessCDR(1,14887381,1,1,2) [2025-04-11 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887381', 'tblTempUsageDetail_20' ) start [2025-04-11 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887381', 'tblTempUsageDetail_20' ) end [2025-04-11 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:49:21] Production.INFO: ==25271== Releasing lock... [2025-04-11 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:49:21] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:50:06 [end_date_ymd] => 2025-04-11 22:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:50:06' and `end` < '2025-04-11 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-04-11 22:50:19] Production.INFO: count ==988 [2025-04-11 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:50:06 - End Time 2025-04-11 22:50:06 [2025-04-11 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887387', 'tblTempUsageDetail_20' ) start [2025-04-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887387', 'tblTempUsageDetail_20' ) end [2025-04-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887387', 'tblTempVendorCDR_20' ) start [2025-04-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887387', 'tblTempVendorCDR_20' ) end [2025-04-11 22:50:19] Production.INFO: ProcessCDR(1,14887387,1,1,2) [2025-04-11 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887387', 'tblTempUsageDetail_20' ) start [2025-04-11 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887387', 'tblTempUsageDetail_20' ) end [2025-04-11 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:50:23] Production.INFO: ==25345== Releasing lock... [2025-04-11 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:50:23] Production.INFO: 35 MB #Memory Used# [2025-04-11 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:51:05 [end_date_ymd] => 2025-04-11 22:51:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:51:05' and `end` < '2025-04-11 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-04-11 22:51:18] Production.INFO: count ==962 [2025-04-11 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:51:05 - End Time 2025-04-11 22:51:05 [2025-04-11 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887392', 'tblTempUsageDetail_20' ) start [2025-04-11 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887392', 'tblTempUsageDetail_20' ) end [2025-04-11 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887392', 'tblTempVendorCDR_20' ) start [2025-04-11 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887392', 'tblTempVendorCDR_20' ) end [2025-04-11 22:51:18] Production.INFO: ProcessCDR(1,14887392,1,1,2) [2025-04-11 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887392', 'tblTempUsageDetail_20' ) start [2025-04-11 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887392', 'tblTempUsageDetail_20' ) end [2025-04-11 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:51:22] Production.INFO: ==25425== Releasing lock... [2025-04-11 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:51:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:52:05 [end_date_ymd] => 2025-04-11 22:52:05 [RateCDR] => 1 ) [2025-04-11 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:52:05' and `end` < '2025-04-11 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:52:18] Production.INFO: count ==960 [2025-04-11 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:52:05 - End Time 2025-04-11 22:52:05 [2025-04-11 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887397', 'tblTempUsageDetail_20' ) start [2025-04-11 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887397', 'tblTempUsageDetail_20' ) end [2025-04-11 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887397', 'tblTempVendorCDR_20' ) start [2025-04-11 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887397', 'tblTempVendorCDR_20' ) end [2025-04-11 22:52:19] Production.INFO: ProcessCDR(1,14887397,1,1,2) [2025-04-11 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887397', 'tblTempUsageDetail_20' ) start [2025-04-11 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887397', 'tblTempUsageDetail_20' ) end [2025-04-11 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:52:22] Production.INFO: ==25498== Releasing lock... [2025-04-11 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:53:06 [end_date_ymd] => 2025-04-11 22:53:06 [RateCDR] => 1 ) [2025-04-11 22: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-04-11 19:53:06' and `end` < '2025-04-11 22: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-04-11 22:53:19] Production.INFO: count ==960 [2025-04-11 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:53:06 - End Time 2025-04-11 22:53:06 [2025-04-11 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887402', 'tblTempUsageDetail_20' ) start [2025-04-11 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887402', 'tblTempUsageDetail_20' ) end [2025-04-11 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887402', 'tblTempVendorCDR_20' ) start [2025-04-11 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887402', 'tblTempVendorCDR_20' ) end [2025-04-11 22:53:19] Production.INFO: ProcessCDR(1,14887402,1,1,2) [2025-04-11 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887402', 'tblTempUsageDetail_20' ) start [2025-04-11 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887402', 'tblTempUsageDetail_20' ) end [2025-04-11 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:53:23] Production.INFO: ==25571== Releasing lock... [2025-04-11 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:53:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:54:05 [end_date_ymd] => 2025-04-11 22:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:54:05' and `end` < '2025-04-11 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-04-11 22:54:18] Production.INFO: count ==962 [2025-04-11 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:54:05 - End Time 2025-04-11 22:54:05 [2025-04-11 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887407', 'tblTempUsageDetail_20' ) start [2025-04-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887407', 'tblTempUsageDetail_20' ) end [2025-04-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887407', 'tblTempVendorCDR_20' ) start [2025-04-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887407', 'tblTempVendorCDR_20' ) end [2025-04-11 22:54:18] Production.INFO: ProcessCDR(1,14887407,1,1,2) [2025-04-11 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887407', 'tblTempUsageDetail_20' ) start [2025-04-11 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887407', 'tblTempUsageDetail_20' ) end [2025-04-11 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:54:22] Production.INFO: ==25647== Releasing lock... [2025-04-11 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:55:05 [end_date_ymd] => 2025-04-11 22:55:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:55:05' and `end` < '2025-04-11 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-04-11 22:55:18] Production.INFO: count ==961 [2025-04-11 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:55:05 - End Time 2025-04-11 22:55:05 [2025-04-11 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887412', 'tblTempUsageDetail_20' ) start [2025-04-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887412', 'tblTempUsageDetail_20' ) end [2025-04-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887412', 'tblTempVendorCDR_20' ) start [2025-04-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887412', 'tblTempVendorCDR_20' ) end [2025-04-11 22:55:18] Production.INFO: ProcessCDR(1,14887412,1,1,2) [2025-04-11 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887412', 'tblTempUsageDetail_20' ) start [2025-04-11 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887412', 'tblTempUsageDetail_20' ) end [2025-04-11 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:55:22] Production.INFO: ==25718== Releasing lock... [2025-04-11 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:56:06 [end_date_ymd] => 2025-04-11 22:56:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:56:06' and `end` < '2025-04-11 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-04-11 22:56:19] Production.INFO: count ==959 [2025-04-11 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-11 19:56:06 - End Time 2025-04-11 22:56:06 [2025-04-11 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887417', 'tblTempUsageDetail_20' ) start [2025-04-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887417', 'tblTempUsageDetail_20' ) end [2025-04-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887417', 'tblTempVendorCDR_20' ) start [2025-04-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887417', 'tblTempVendorCDR_20' ) end [2025-04-11 22:56:19] Production.INFO: ProcessCDR(1,14887417,1,1,2) [2025-04-11 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887417', 'tblTempUsageDetail_20' ) start [2025-04-11 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887417', 'tblTempUsageDetail_20' ) end [2025-04-11 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:56:22] Production.INFO: ==25790== Releasing lock... [2025-04-11 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:57:05 [end_date_ymd] => 2025-04-11 22:57:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:57:05' and `end` < '2025-04-11 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-04-11 22:57:18] Production.INFO: count ==956 [2025-04-11 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:57:05 - End Time 2025-04-11 22:57:05 [2025-04-11 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887422', 'tblTempUsageDetail_20' ) start [2025-04-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887422', 'tblTempUsageDetail_20' ) end [2025-04-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887422', 'tblTempVendorCDR_20' ) start [2025-04-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887422', 'tblTempVendorCDR_20' ) end [2025-04-11 22:57:18] Production.INFO: ProcessCDR(1,14887422,1,1,2) [2025-04-11 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887422', 'tblTempUsageDetail_20' ) start [2025-04-11 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887422', 'tblTempUsageDetail_20' ) end [2025-04-11 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:57:21] Production.INFO: ==25873== Releasing lock... [2025-04-11 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:57:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:58:05 [end_date_ymd] => 2025-04-11 22:58:05 [RateCDR] => 1 ) [2025-04-11 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 19:58:05' and `end` < '2025-04-11 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 22:58:18] Production.INFO: count ==951 [2025-04-11 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:58:05 - End Time 2025-04-11 22:58:05 [2025-04-11 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887427', 'tblTempUsageDetail_20' ) start [2025-04-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887427', 'tblTempUsageDetail_20' ) end [2025-04-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887427', 'tblTempVendorCDR_20' ) start [2025-04-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887427', 'tblTempVendorCDR_20' ) end [2025-04-11 22:58:18] Production.INFO: ProcessCDR(1,14887427,1,1,2) [2025-04-11 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887427', 'tblTempUsageDetail_20' ) start [2025-04-11 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887427', 'tblTempUsageDetail_20' ) end [2025-04-11 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:58:22] Production.INFO: ==25948== Releasing lock... [2025-04-11 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 19:59:05 [end_date_ymd] => 2025-04-11 22:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 19:59:05' and `end` < '2025-04-11 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-04-11 22:59:18] Production.INFO: count ==952 [2025-04-11 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 19:59:05 - End Time 2025-04-11 22:59:05 [2025-04-11 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887432', 'tblTempUsageDetail_20' ) start [2025-04-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887432', 'tblTempUsageDetail_20' ) end [2025-04-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887432', 'tblTempVendorCDR_20' ) start [2025-04-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887432', 'tblTempVendorCDR_20' ) end [2025-04-11 22:59:18] Production.INFO: ProcessCDR(1,14887432,1,1,2) [2025-04-11 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887432', 'tblTempUsageDetail_20' ) start [2025-04-11 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887432', 'tblTempUsageDetail_20' ) end [2025-04-11 22:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 22:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 22:59:24] Production.INFO: ==26025== Releasing lock... [2025-04-11 22:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 22:59:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:00:06 [end_date_ymd] => 2025-04-11 23:00:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:00:06' and `end` < '2025-04-11 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-04-11 23:00:19] Production.INFO: count ==953 [2025-04-11 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:00:06 - End Time 2025-04-11 23:00:06 [2025-04-11 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887438', 'tblTempUsageDetail_20' ) start [2025-04-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887438', 'tblTempUsageDetail_20' ) end [2025-04-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887438', 'tblTempVendorCDR_20' ) start [2025-04-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887438', 'tblTempVendorCDR_20' ) end [2025-04-11 23:00:19] Production.INFO: ProcessCDR(1,14887438,1,1,2) [2025-04-11 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887438', 'tblTempUsageDetail_20' ) start [2025-04-11 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887438', 'tblTempUsageDetail_20' ) end [2025-04-11 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:00:24] Production.INFO: ==26100== Releasing lock... [2025-04-11 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:00:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-11 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:01:06 [end_date_ymd] => 2025-04-11 23:01:06 [RateCDR] => 1 ) [2025-04-11 23: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-04-11 20:01:06' and `end` < '2025-04-11 23: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-04-11 23:01:19] Production.INFO: count ==928 [2025-04-11 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:01:06 - End Time 2025-04-11 23:01:06 [2025-04-11 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887443', 'tblTempUsageDetail_20' ) start [2025-04-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887443', 'tblTempUsageDetail_20' ) end [2025-04-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887443', 'tblTempVendorCDR_20' ) start [2025-04-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887443', 'tblTempVendorCDR_20' ) end [2025-04-11 23:01:19] Production.INFO: ProcessCDR(1,14887443,1,1,2) [2025-04-11 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887443', 'tblTempUsageDetail_20' ) start [2025-04-11 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887443', 'tblTempUsageDetail_20' ) end [2025-04-11 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:01:23] Production.INFO: ==26191== Releasing lock... [2025-04-11 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:01:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-11 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:02:04 [end_date_ymd] => 2025-04-11 23:02:04 [RateCDR] => 1 ) [2025-04-11 23:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:02:04' and `end` < '2025-04-11 23:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:02:17] Production.INFO: count ==924 [2025-04-11 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:02:04 - End Time 2025-04-11 23:02:04 [2025-04-11 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887448', 'tblTempUsageDetail_20' ) start [2025-04-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887448', 'tblTempUsageDetail_20' ) end [2025-04-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887448', 'tblTempVendorCDR_20' ) start [2025-04-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887448', 'tblTempVendorCDR_20' ) end [2025-04-11 23:02:18] Production.INFO: ProcessCDR(1,14887448,1,1,2) [2025-04-11 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887448', 'tblTempUsageDetail_20' ) start [2025-04-11 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887448', 'tblTempUsageDetail_20' ) end [2025-04-11 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:02:21] Production.INFO: ==26343== Releasing lock... [2025-04-11 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:02:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-11 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:03:06 [end_date_ymd] => 2025-04-11 23:03:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:03:06' and `end` < '2025-04-11 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-04-11 23:03:19] Production.INFO: count ==924 [2025-04-11 23:03:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:03:06 - End Time 2025-04-11 23:03:06 [2025-04-11 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887453', 'tblTempUsageDetail_20' ) start [2025-04-11 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887453', 'tblTempUsageDetail_20' ) end [2025-04-11 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887453', 'tblTempVendorCDR_20' ) start [2025-04-11 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887453', 'tblTempVendorCDR_20' ) end [2025-04-11 23:03:19] Production.INFO: ProcessCDR(1,14887453,1,1,2) [2025-04-11 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887453', 'tblTempUsageDetail_20' ) start [2025-04-11 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887453', 'tblTempUsageDetail_20' ) end [2025-04-11 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:03:22] Production.INFO: ==26420== Releasing lock... [2025-04-11 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-11 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:04:05 [end_date_ymd] => 2025-04-11 23:04:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:04:05' and `end` < '2025-04-11 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-04-11 23:04:18] Production.INFO: count ==922 [2025-04-11 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:04:05 - End Time 2025-04-11 23:04:05 [2025-04-11 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887458', 'tblTempUsageDetail_20' ) start [2025-04-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887458', 'tblTempUsageDetail_20' ) end [2025-04-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887458', 'tblTempVendorCDR_20' ) start [2025-04-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887458', 'tblTempVendorCDR_20' ) end [2025-04-11 23:04:18] Production.INFO: ProcessCDR(1,14887458,1,1,2) [2025-04-11 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887458', 'tblTempUsageDetail_20' ) start [2025-04-11 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887458', 'tblTempUsageDetail_20' ) end [2025-04-11 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:04:22] Production.INFO: ==26493== Releasing lock... [2025-04-11 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:04:22] Production.INFO: 34 MB #Memory Used# [2025-04-11 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:05:06 [end_date_ymd] => 2025-04-11 23:05:06 [RateCDR] => 1 ) [2025-04-11 23: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-04-11 20:05:06' and `end` < '2025-04-11 23: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-04-11 23:05:19] Production.INFO: count ==922 [2025-04-11 23:05:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:05:06 - End Time 2025-04-11 23:05:06 [2025-04-11 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887463', 'tblTempUsageDetail_20' ) start [2025-04-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887463', 'tblTempUsageDetail_20' ) end [2025-04-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887463', 'tblTempVendorCDR_20' ) start [2025-04-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887463', 'tblTempVendorCDR_20' ) end [2025-04-11 23:05:19] Production.INFO: ProcessCDR(1,14887463,1,1,2) [2025-04-11 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887463', 'tblTempUsageDetail_20' ) start [2025-04-11 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887463', 'tblTempUsageDetail_20' ) end [2025-04-11 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:05:22] Production.INFO: ==26680== Releasing lock... [2025-04-11 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:05:22] Production.INFO: 34 MB #Memory Used# [2025-04-11 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:06:05 [end_date_ymd] => 2025-04-11 23:06:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:06:05' and `end` < '2025-04-11 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-04-11 23:06:18] Production.INFO: count ==922 [2025-04-11 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:06:05 - End Time 2025-04-11 23:06:05 [2025-04-11 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887468', 'tblTempUsageDetail_20' ) start [2025-04-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887468', 'tblTempUsageDetail_20' ) end [2025-04-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887468', 'tblTempVendorCDR_20' ) start [2025-04-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887468', 'tblTempVendorCDR_20' ) end [2025-04-11 23:06:18] Production.INFO: ProcessCDR(1,14887468,1,1,2) [2025-04-11 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887468', 'tblTempUsageDetail_20' ) start [2025-04-11 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887468', 'tblTempUsageDetail_20' ) end [2025-04-11 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:06:22] Production.INFO: ==26778== Releasing lock... [2025-04-11 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:06:22] Production.INFO: 34 MB #Memory Used# [2025-04-11 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:07:06 [end_date_ymd] => 2025-04-11 23:07:06 [RateCDR] => 1 ) [2025-04-11 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:07:06' and `end` < '2025-04-11 23:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:07:19] Production.INFO: count ==921 [2025-04-11 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:07:06 - End Time 2025-04-11 23:07:06 [2025-04-11 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887473', 'tblTempUsageDetail_20' ) start [2025-04-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887473', 'tblTempUsageDetail_20' ) end [2025-04-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887473', 'tblTempVendorCDR_20' ) start [2025-04-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887473', 'tblTempVendorCDR_20' ) end [2025-04-11 23:07:19] Production.INFO: ProcessCDR(1,14887473,1,1,2) [2025-04-11 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887473', 'tblTempUsageDetail_20' ) start [2025-04-11 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887473', 'tblTempUsageDetail_20' ) end [2025-04-11 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:07:22] Production.INFO: ==27133== Releasing lock... [2025-04-11 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:07:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-11 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:08:05 [end_date_ymd] => 2025-04-11 23:08:05 [RateCDR] => 1 ) [2025-04-11 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:08:05' and `end` < '2025-04-11 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:08:18] Production.INFO: count ==1078 [2025-04-11 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:08:05 - End Time 2025-04-11 23:08:05 [2025-04-11 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887478', 'tblTempUsageDetail_20' ) start [2025-04-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887478', 'tblTempUsageDetail_20' ) end [2025-04-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887478', 'tblTempVendorCDR_20' ) start [2025-04-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887478', 'tblTempVendorCDR_20' ) end [2025-04-11 23:08:18] Production.INFO: ProcessCDR(1,14887478,1,1,2) [2025-04-11 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887478', 'tblTempUsageDetail_20' ) start [2025-04-11 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887478', 'tblTempUsageDetail_20' ) end [2025-04-11 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:08:22] Production.INFO: ==27354== Releasing lock... [2025-04-11 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:08:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:09:05 [end_date_ymd] => 2025-04-11 23:09:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:09:05' and `end` < '2025-04-11 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-04-11 23:09:18] Production.INFO: count ==1076 [2025-04-11 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:09:05 - End Time 2025-04-11 23:09:05 [2025-04-11 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887483', 'tblTempUsageDetail_20' ) start [2025-04-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887483', 'tblTempUsageDetail_20' ) end [2025-04-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887483', 'tblTempVendorCDR_20' ) start [2025-04-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887483', 'tblTempVendorCDR_20' ) end [2025-04-11 23:09:19] Production.INFO: ProcessCDR(1,14887483,1,1,2) [2025-04-11 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887483', 'tblTempUsageDetail_20' ) start [2025-04-11 23:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887483', 'tblTempUsageDetail_20' ) end [2025-04-11 23:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:09:24] Production.INFO: ==27469== Releasing lock... [2025-04-11 23:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:09:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:10:06 [end_date_ymd] => 2025-04-11 23:10:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:10:06' and `end` < '2025-04-11 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-04-11 23:10:19] Production.INFO: count ==1078 [2025-04-11 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:10:06 - End Time 2025-04-11 23:10:06 [2025-04-11 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887489', 'tblTempUsageDetail_20' ) start [2025-04-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887489', 'tblTempUsageDetail_20' ) end [2025-04-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887489', 'tblTempVendorCDR_20' ) start [2025-04-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887489', 'tblTempVendorCDR_20' ) end [2025-04-11 23:10:19] Production.INFO: ProcessCDR(1,14887489,1,1,2) [2025-04-11 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887489', 'tblTempUsageDetail_20' ) start [2025-04-11 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887489', 'tblTempUsageDetail_20' ) end [2025-04-11 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:10:24] Production.INFO: ==27543== Releasing lock... [2025-04-11 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:10:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-11 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:11:05 [end_date_ymd] => 2025-04-11 23:11:05 [RateCDR] => 1 ) [2025-04-11 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:11:05' and `end` < '2025-04-11 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:11:18] Production.INFO: count ==1058 [2025-04-11 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:11:05 - End Time 2025-04-11 23:11:05 [2025-04-11 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887494', 'tblTempUsageDetail_20' ) start [2025-04-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887494', 'tblTempUsageDetail_20' ) end [2025-04-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887494', 'tblTempVendorCDR_20' ) start [2025-04-11 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887494', 'tblTempVendorCDR_20' ) end [2025-04-11 23:11:18] Production.INFO: ProcessCDR(1,14887494,1,1,2) [2025-04-11 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887494', 'tblTempUsageDetail_20' ) start [2025-04-11 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887494', 'tblTempUsageDetail_20' ) end [2025-04-11 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:11:22] Production.INFO: ==27618== Releasing lock... [2025-04-11 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:11:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-11 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:12:05 [end_date_ymd] => 2025-04-11 23:12:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:12:05' and `end` < '2025-04-11 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-04-11 23:12:18] Production.INFO: count ==1055 [2025-04-11 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:12:05 - End Time 2025-04-11 23:12:05 [2025-04-11 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887499', 'tblTempUsageDetail_20' ) start [2025-04-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887499', 'tblTempUsageDetail_20' ) end [2025-04-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887499', 'tblTempVendorCDR_20' ) start [2025-04-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887499', 'tblTempVendorCDR_20' ) end [2025-04-11 23:12:18] Production.INFO: ProcessCDR(1,14887499,1,1,2) [2025-04-11 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887499', 'tblTempUsageDetail_20' ) start [2025-04-11 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887499', 'tblTempUsageDetail_20' ) end [2025-04-11 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:12:21] Production.INFO: ==27776== Releasing lock... [2025-04-11 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-11 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:13:05 [end_date_ymd] => 2025-04-11 23:13:05 [RateCDR] => 1 ) [2025-04-11 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:13:05' and `end` < '2025-04-11 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:13:18] Production.INFO: count ==1059 [2025-04-11 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:13:05 - End Time 2025-04-11 23:13:05 [2025-04-11 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887504', 'tblTempUsageDetail_20' ) start [2025-04-11 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887504', 'tblTempUsageDetail_20' ) end [2025-04-11 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887504', 'tblTempVendorCDR_20' ) start [2025-04-11 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887504', 'tblTempVendorCDR_20' ) end [2025-04-11 23:13:18] Production.INFO: ProcessCDR(1,14887504,1,1,2) [2025-04-11 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887504', 'tblTempUsageDetail_20' ) start [2025-04-11 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887504', 'tblTempUsageDetail_20' ) end [2025-04-11 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:13:22] Production.INFO: ==27853== Releasing lock... [2025-04-11 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:13:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-11 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:14:05 [end_date_ymd] => 2025-04-11 23:14:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:14:05' and `end` < '2025-04-11 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-04-11 23:14:18] Production.INFO: count ==1049 [2025-04-11 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:14:05 - End Time 2025-04-11 23:14:05 [2025-04-11 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887509', 'tblTempUsageDetail_20' ) start [2025-04-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887509', 'tblTempUsageDetail_20' ) end [2025-04-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887509', 'tblTempVendorCDR_20' ) start [2025-04-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887509', 'tblTempVendorCDR_20' ) end [2025-04-11 23:14:18] Production.INFO: ProcessCDR(1,14887509,1,1,2) [2025-04-11 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887509', 'tblTempUsageDetail_20' ) start [2025-04-11 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887509', 'tblTempUsageDetail_20' ) end [2025-04-11 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:14:22] Production.INFO: ==27925== Releasing lock... [2025-04-11 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:14:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-11 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:15:06 [end_date_ymd] => 2025-04-11 23:15:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:15:06' and `end` < '2025-04-11 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-04-11 23:15:19] Production.INFO: count ==1452 [2025-04-11 23:15:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:15:06 - End Time 2025-04-11 23:15:06 [2025-04-11 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887514', 'tblTempUsageDetail_20' ) start [2025-04-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887514', 'tblTempUsageDetail_20' ) end [2025-04-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887514', 'tblTempVendorCDR_20' ) start [2025-04-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887514', 'tblTempVendorCDR_20' ) end [2025-04-11 23:15:19] Production.INFO: ProcessCDR(1,14887514,1,1,2) [2025-04-11 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887514', 'tblTempUsageDetail_20' ) start [2025-04-11 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887514', 'tblTempUsageDetail_20' ) end [2025-04-11 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:15:23] Production.INFO: ==28078== Releasing lock... [2025-04-11 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:15:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:16:05 [end_date_ymd] => 2025-04-11 23:16:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:16:05' and `end` < '2025-04-11 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-04-11 23:16:18] Production.INFO: count ==1494 [2025-04-11 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:16:05 - End Time 2025-04-11 23:16:05 [2025-04-11 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887519', 'tblTempUsageDetail_20' ) start [2025-04-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887519', 'tblTempUsageDetail_20' ) end [2025-04-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887519', 'tblTempVendorCDR_20' ) start [2025-04-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887519', 'tblTempVendorCDR_20' ) end [2025-04-11 23:16:18] Production.INFO: ProcessCDR(1,14887519,1,1,2) [2025-04-11 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887519', 'tblTempUsageDetail_20' ) start [2025-04-11 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887519', 'tblTempUsageDetail_20' ) end [2025-04-11 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:16:23] Production.INFO: ==28154== Releasing lock... [2025-04-11 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:16:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:17:05 [end_date_ymd] => 2025-04-11 23:17:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:17:05' and `end` < '2025-04-11 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-04-11 23:17:18] Production.INFO: count ==1493 [2025-04-11 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:17:05 - End Time 2025-04-11 23:17:05 [2025-04-11 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887524', 'tblTempUsageDetail_20' ) start [2025-04-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887524', 'tblTempUsageDetail_20' ) end [2025-04-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887524', 'tblTempVendorCDR_20' ) start [2025-04-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887524', 'tblTempVendorCDR_20' ) end [2025-04-11 23:17:18] Production.INFO: ProcessCDR(1,14887524,1,1,2) [2025-04-11 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887524', 'tblTempUsageDetail_20' ) start [2025-04-11 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887524', 'tblTempUsageDetail_20' ) end [2025-04-11 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:17:22] Production.INFO: ==28224== Releasing lock... [2025-04-11 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:17:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:18:05 [end_date_ymd] => 2025-04-11 23:18:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:18:05' and `end` < '2025-04-11 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-04-11 23:18:17] Production.INFO: count ==1491 [2025-04-11 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:18:05 - End Time 2025-04-11 23:18:05 [2025-04-11 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887529', 'tblTempUsageDetail_20' ) start [2025-04-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887529', 'tblTempUsageDetail_20' ) end [2025-04-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887529', 'tblTempVendorCDR_20' ) start [2025-04-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887529', 'tblTempVendorCDR_20' ) end [2025-04-11 23:18:18] Production.INFO: ProcessCDR(1,14887529,1,1,2) [2025-04-11 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887529', 'tblTempUsageDetail_20' ) start [2025-04-11 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887529', 'tblTempUsageDetail_20' ) end [2025-04-11 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:18:21] Production.INFO: ==28293== Releasing lock... [2025-04-11 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:18:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:19:05 [end_date_ymd] => 2025-04-11 23:19:05 [RateCDR] => 1 ) [2025-04-11 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:19:05' and `end` < '2025-04-11 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:19:18] Production.INFO: count ==1489 [2025-04-11 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:19:05 - End Time 2025-04-11 23:19:05 [2025-04-11 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887534', 'tblTempUsageDetail_20' ) start [2025-04-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887534', 'tblTempUsageDetail_20' ) end [2025-04-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887534', 'tblTempVendorCDR_20' ) start [2025-04-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887534', 'tblTempVendorCDR_20' ) end [2025-04-11 23:19:18] Production.INFO: ProcessCDR(1,14887534,1,1,2) [2025-04-11 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887534', 'tblTempUsageDetail_20' ) start [2025-04-11 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887534', 'tblTempUsageDetail_20' ) end [2025-04-11 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:19:21] Production.INFO: ==28369== Releasing lock... [2025-04-11 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:19:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:20:06 [end_date_ymd] => 2025-04-11 23:20:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:20:06' and `end` < '2025-04-11 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-04-11 23:20:19] Production.INFO: count ==1490 [2025-04-11 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:20:06 - End Time 2025-04-11 23:20:06 [2025-04-11 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887540', 'tblTempUsageDetail_20' ) start [2025-04-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887540', 'tblTempUsageDetail_20' ) end [2025-04-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887540', 'tblTempVendorCDR_20' ) start [2025-04-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887540', 'tblTempVendorCDR_20' ) end [2025-04-11 23:20:19] Production.INFO: ProcessCDR(1,14887540,1,1,2) [2025-04-11 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887540', 'tblTempUsageDetail_20' ) start [2025-04-11 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887540', 'tblTempUsageDetail_20' ) end [2025-04-11 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:20:23] Production.INFO: ==28485== Releasing lock... [2025-04-11 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:20:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:21:05 [end_date_ymd] => 2025-04-11 23:21:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:21:05' and `end` < '2025-04-11 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-04-11 23:21:18] Production.INFO: count ==1450 [2025-04-11 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:21:05 - End Time 2025-04-11 23:21:05 [2025-04-11 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887545', 'tblTempUsageDetail_20' ) start [2025-04-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887545', 'tblTempUsageDetail_20' ) end [2025-04-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887545', 'tblTempVendorCDR_20' ) start [2025-04-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887545', 'tblTempVendorCDR_20' ) end [2025-04-11 23:21:18] Production.INFO: ProcessCDR(1,14887545,1,1,2) [2025-04-11 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887545', 'tblTempUsageDetail_20' ) start [2025-04-11 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887545', 'tblTempUsageDetail_20' ) end [2025-04-11 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:21:22] Production.INFO: ==28560== Releasing lock... [2025-04-11 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:21:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:22:05 [end_date_ymd] => 2025-04-11 23:22:05 [RateCDR] => 1 ) [2025-04-11 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:22:05' and `end` < '2025-04-11 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:22:18] Production.INFO: count ==1449 [2025-04-11 23:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:22:05 - End Time 2025-04-11 23:22:05 [2025-04-11 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887550', 'tblTempUsageDetail_20' ) start [2025-04-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887550', 'tblTempUsageDetail_20' ) end [2025-04-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887550', 'tblTempVendorCDR_20' ) start [2025-04-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887550', 'tblTempVendorCDR_20' ) end [2025-04-11 23:22:19] Production.INFO: ProcessCDR(1,14887550,1,1,2) [2025-04-11 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887550', 'tblTempUsageDetail_20' ) start [2025-04-11 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887550', 'tblTempUsageDetail_20' ) end [2025-04-11 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:22:22] Production.INFO: ==28635== Releasing lock... [2025-04-11 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:22:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:23:05 [end_date_ymd] => 2025-04-11 23:23:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:23:05' and `end` < '2025-04-11 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-04-11 23:23:18] Production.INFO: count ==1448 [2025-04-11 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:23:05 - End Time 2025-04-11 23:23:05 [2025-04-11 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887555', 'tblTempUsageDetail_20' ) start [2025-04-11 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887555', 'tblTempUsageDetail_20' ) end [2025-04-11 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887555', 'tblTempVendorCDR_20' ) start [2025-04-11 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887555', 'tblTempVendorCDR_20' ) end [2025-04-11 23:23:18] Production.INFO: ProcessCDR(1,14887555,1,1,2) [2025-04-11 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887555', 'tblTempUsageDetail_20' ) start [2025-04-11 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887555', 'tblTempUsageDetail_20' ) end [2025-04-11 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:23:22] Production.INFO: ==28707== Releasing lock... [2025-04-11 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:23:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:24:05 [end_date_ymd] => 2025-04-11 23:24:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:24:05' and `end` < '2025-04-11 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-04-11 23:24:18] Production.INFO: count ==1446 [2025-04-11 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:24:05 - End Time 2025-04-11 23:24:05 [2025-04-11 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887560', 'tblTempUsageDetail_20' ) start [2025-04-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887560', 'tblTempUsageDetail_20' ) end [2025-04-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887560', 'tblTempVendorCDR_20' ) start [2025-04-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887560', 'tblTempVendorCDR_20' ) end [2025-04-11 23:24:18] Production.INFO: ProcessCDR(1,14887560,1,1,2) [2025-04-11 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887560', 'tblTempUsageDetail_20' ) start [2025-04-11 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887560', 'tblTempUsageDetail_20' ) end [2025-04-11 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:24:22] Production.INFO: ==28782== Releasing lock... [2025-04-11 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:24:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:25:05 [end_date_ymd] => 2025-04-11 23:25:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:25:05' and `end` < '2025-04-11 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-04-11 23:25:17] Production.INFO: count ==1444 [2025-04-11 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:25:05 - End Time 2025-04-11 23:25:05 [2025-04-11 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887565', 'tblTempUsageDetail_20' ) start [2025-04-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887565', 'tblTempUsageDetail_20' ) end [2025-04-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887565', 'tblTempVendorCDR_20' ) start [2025-04-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887565', 'tblTempVendorCDR_20' ) end [2025-04-11 23:25:18] Production.INFO: ProcessCDR(1,14887565,1,1,2) [2025-04-11 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887565', 'tblTempUsageDetail_20' ) start [2025-04-11 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887565', 'tblTempUsageDetail_20' ) end [2025-04-11 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:25:21] Production.INFO: ==28852== Releasing lock... [2025-04-11 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:25:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:26:05 [end_date_ymd] => 2025-04-11 23:26:05 [RateCDR] => 1 ) [2025-04-11 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:26:05' and `end` < '2025-04-11 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:26:18] Production.INFO: count ==1442 [2025-04-11 23:26:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:26:05 - End Time 2025-04-11 23:26:05 [2025-04-11 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887570', 'tblTempUsageDetail_20' ) start [2025-04-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887570', 'tblTempUsageDetail_20' ) end [2025-04-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887570', 'tblTempVendorCDR_20' ) start [2025-04-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887570', 'tblTempVendorCDR_20' ) end [2025-04-11 23:26:19] Production.INFO: ProcessCDR(1,14887570,1,1,2) [2025-04-11 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887570', 'tblTempUsageDetail_20' ) start [2025-04-11 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887570', 'tblTempUsageDetail_20' ) end [2025-04-11 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:26:22] Production.INFO: ==28938== Releasing lock... [2025-04-11 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:26:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:27:04 [end_date_ymd] => 2025-04-11 23:27:04 [RateCDR] => 1 ) [2025-04-11 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:27:04' and `end` < '2025-04-11 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:27:17] Production.INFO: count ==1440 [2025-04-11 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:27:04 - End Time 2025-04-11 23:27:04 [2025-04-11 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887575', 'tblTempUsageDetail_20' ) start [2025-04-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887575', 'tblTempUsageDetail_20' ) end [2025-04-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887575', 'tblTempVendorCDR_20' ) start [2025-04-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887575', 'tblTempVendorCDR_20' ) end [2025-04-11 23:27:18] Production.INFO: ProcessCDR(1,14887575,1,1,2) [2025-04-11 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887575', 'tblTempUsageDetail_20' ) start [2025-04-11 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887575', 'tblTempUsageDetail_20' ) end [2025-04-11 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:27:21] Production.INFO: ==29008== Releasing lock... [2025-04-11 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:27:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:28:06 [end_date_ymd] => 2025-04-11 23:28:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:28:06' and `end` < '2025-04-11 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-04-11 23:28:18] Production.INFO: count ==1441 [2025-04-11 23:28:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:28:06 - End Time 2025-04-11 23:28:06 [2025-04-11 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887580', 'tblTempUsageDetail_20' ) start [2025-04-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887580', 'tblTempUsageDetail_20' ) end [2025-04-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887580', 'tblTempVendorCDR_20' ) start [2025-04-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887580', 'tblTempVendorCDR_20' ) end [2025-04-11 23:28:19] Production.INFO: ProcessCDR(1,14887580,1,1,2) [2025-04-11 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887580', 'tblTempUsageDetail_20' ) start [2025-04-11 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887580', 'tblTempUsageDetail_20' ) end [2025-04-11 23:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:28:24] Production.INFO: ==29081== Releasing lock... [2025-04-11 23:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:28:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:29:04 [end_date_ymd] => 2025-04-11 23:29:04 [RateCDR] => 1 ) [2025-04-11 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:29:04' and `end` < '2025-04-11 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:29:17] Production.INFO: count ==1441 [2025-04-11 23:29:17] Production.ERROR: pbx CDR StartTime 2025-04-11 20:29:04 - End Time 2025-04-11 23:29:04 [2025-04-11 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887585', 'tblTempUsageDetail_20' ) start [2025-04-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887585', 'tblTempUsageDetail_20' ) end [2025-04-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887585', 'tblTempVendorCDR_20' ) start [2025-04-11 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887585', 'tblTempVendorCDR_20' ) end [2025-04-11 23:29:17] Production.INFO: ProcessCDR(1,14887585,1,1,2) [2025-04-11 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887585', 'tblTempUsageDetail_20' ) start [2025-04-11 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887585', 'tblTempUsageDetail_20' ) end [2025-04-11 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:29:22] Production.INFO: ==29153== Releasing lock... [2025-04-11 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:29:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:30:06 [end_date_ymd] => 2025-04-11 23:30:06 [RateCDR] => 1 ) [2025-04-11 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:30:06' and `end` < '2025-04-11 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:30:19] Production.INFO: count ==1438 [2025-04-11 23:30:20] Production.ERROR: pbx CDR StartTime 2025-04-11 20:30:06 - End Time 2025-04-11 23:30:06 [2025-04-11 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887591', 'tblTempUsageDetail_20' ) start [2025-04-11 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887591', 'tblTempUsageDetail_20' ) end [2025-04-11 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887591', 'tblTempVendorCDR_20' ) start [2025-04-11 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887591', 'tblTempVendorCDR_20' ) end [2025-04-11 23:30:20] Production.INFO: ProcessCDR(1,14887591,1,1,2) [2025-04-11 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887591', 'tblTempUsageDetail_20' ) start [2025-04-11 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887591', 'tblTempUsageDetail_20' ) end [2025-04-11 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:30:23] Production.INFO: ==29229== Releasing lock... [2025-04-11 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:30:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:31:04 [end_date_ymd] => 2025-04-11 23:31:04 [RateCDR] => 1 ) [2025-04-11 23: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-04-11 20:31:04' and `end` < '2025-04-11 23: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-04-11 23:31:17] Production.INFO: count ==1427 [2025-04-11 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:31:04 - End Time 2025-04-11 23:31:04 [2025-04-11 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887596', 'tblTempUsageDetail_20' ) start [2025-04-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887596', 'tblTempUsageDetail_20' ) end [2025-04-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887596', 'tblTempVendorCDR_20' ) start [2025-04-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887596', 'tblTempVendorCDR_20' ) end [2025-04-11 23:31:18] Production.INFO: ProcessCDR(1,14887596,1,1,2) [2025-04-11 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887596', 'tblTempUsageDetail_20' ) start [2025-04-11 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887596', 'tblTempUsageDetail_20' ) end [2025-04-11 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:31:23] Production.INFO: ==29306== Releasing lock... [2025-04-11 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:31:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:32:05 [end_date_ymd] => 2025-04-11 23:32:05 [RateCDR] => 1 ) [2025-04-11 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:32:05' and `end` < '2025-04-11 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:32:18] Production.INFO: count ==1428 [2025-04-11 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:32:05 - End Time 2025-04-11 23:32:05 [2025-04-11 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887601', 'tblTempUsageDetail_20' ) start [2025-04-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887601', 'tblTempUsageDetail_20' ) end [2025-04-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887601', 'tblTempVendorCDR_20' ) start [2025-04-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887601', 'tblTempVendorCDR_20' ) end [2025-04-11 23:32:18] Production.INFO: ProcessCDR(1,14887601,1,1,2) [2025-04-11 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887601', 'tblTempUsageDetail_20' ) start [2025-04-11 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887601', 'tblTempUsageDetail_20' ) end [2025-04-11 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:32:23] Production.INFO: ==29385== Releasing lock... [2025-04-11 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:32:23] Production.INFO: 39 MB #Memory Used# [2025-04-11 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:33:05 [end_date_ymd] => 2025-04-11 23:33:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:33:05' and `end` < '2025-04-11 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-04-11 23:33:18] Production.INFO: count ==1431 [2025-04-11 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:33:05 - End Time 2025-04-11 23:33:05 [2025-04-11 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887606', 'tblTempUsageDetail_20' ) start [2025-04-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887606', 'tblTempUsageDetail_20' ) end [2025-04-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887606', 'tblTempVendorCDR_20' ) start [2025-04-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887606', 'tblTempVendorCDR_20' ) end [2025-04-11 23:33:18] Production.INFO: ProcessCDR(1,14887606,1,1,2) [2025-04-11 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887606', 'tblTempUsageDetail_20' ) start [2025-04-11 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887606', 'tblTempUsageDetail_20' ) end [2025-04-11 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:33:23] Production.INFO: ==29472== Releasing lock... [2025-04-11 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:33:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:34:05 [end_date_ymd] => 2025-04-11 23:34:05 [RateCDR] => 1 ) [2025-04-11 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:34:05' and `end` < '2025-04-11 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:34:18] Production.INFO: count ==1432 [2025-04-11 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:34:05 - End Time 2025-04-11 23:34:05 [2025-04-11 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887611', 'tblTempUsageDetail_20' ) start [2025-04-11 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887611', 'tblTempUsageDetail_20' ) end [2025-04-11 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887611', 'tblTempVendorCDR_20' ) start [2025-04-11 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887611', 'tblTempVendorCDR_20' ) end [2025-04-11 23:34:19] Production.INFO: ProcessCDR(1,14887611,1,1,2) [2025-04-11 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887611', 'tblTempUsageDetail_20' ) start [2025-04-11 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887611', 'tblTempUsageDetail_20' ) end [2025-04-11 23:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:34:24] Production.INFO: ==29552== Releasing lock... [2025-04-11 23:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:34:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:35:06 [end_date_ymd] => 2025-04-11 23:35:06 [RateCDR] => 1 ) [2025-04-11 23: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-04-11 20:35:06' and `end` < '2025-04-11 23: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-04-11 23:35:19] Production.INFO: count ==1430 [2025-04-11 23:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:35:06 - End Time 2025-04-11 23:35:06 [2025-04-11 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887616', 'tblTempUsageDetail_20' ) start [2025-04-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887616', 'tblTempUsageDetail_20' ) end [2025-04-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887616', 'tblTempVendorCDR_20' ) start [2025-04-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887616', 'tblTempVendorCDR_20' ) end [2025-04-11 23:35:19] Production.INFO: ProcessCDR(1,14887616,1,1,2) [2025-04-11 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887616', 'tblTempUsageDetail_20' ) start [2025-04-11 23:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887616', 'tblTempUsageDetail_20' ) end [2025-04-11 23:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:35:24] Production.INFO: ==29635== Releasing lock... [2025-04-11 23:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:35:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-11 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:36:05 [end_date_ymd] => 2025-04-11 23:36:05 [RateCDR] => 1 ) [2025-04-11 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:36:05' and `end` < '2025-04-11 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:36:18] Production.INFO: count ==1429 [2025-04-11 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:36:05 - End Time 2025-04-11 23:36:05 [2025-04-11 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887621', 'tblTempUsageDetail_20' ) start [2025-04-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887621', 'tblTempUsageDetail_20' ) end [2025-04-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887621', 'tblTempVendorCDR_20' ) start [2025-04-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887621', 'tblTempVendorCDR_20' ) end [2025-04-11 23:36:18] Production.INFO: ProcessCDR(1,14887621,1,1,2) [2025-04-11 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887621', 'tblTempUsageDetail_20' ) start [2025-04-11 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887621', 'tblTempUsageDetail_20' ) end [2025-04-11 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:36:22] Production.INFO: ==29760== Releasing lock... [2025-04-11 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:36:22] Production.INFO: 39 MB #Memory Used# [2025-04-11 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:37:05 [end_date_ymd] => 2025-04-11 23:37:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:37:05' and `end` < '2025-04-11 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-04-11 23:37:18] Production.INFO: count ==1428 [2025-04-11 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:37:05 - End Time 2025-04-11 23:37:05 [2025-04-11 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887626', 'tblTempUsageDetail_20' ) start [2025-04-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887626', 'tblTempUsageDetail_20' ) end [2025-04-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887626', 'tblTempVendorCDR_20' ) start [2025-04-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887626', 'tblTempVendorCDR_20' ) end [2025-04-11 23:37:18] Production.INFO: ProcessCDR(1,14887626,1,1,2) [2025-04-11 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887626', 'tblTempUsageDetail_20' ) start [2025-04-11 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887626', 'tblTempUsageDetail_20' ) end [2025-04-11 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:37:22] Production.INFO: ==29851== Releasing lock... [2025-04-11 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:38:05 [end_date_ymd] => 2025-04-11 23:38:05 [RateCDR] => 1 ) [2025-04-11 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:38:05' and `end` < '2025-04-11 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:38:18] Production.INFO: count ==1431 [2025-04-11 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:38:05 - End Time 2025-04-11 23:38:05 [2025-04-11 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887631', 'tblTempUsageDetail_20' ) start [2025-04-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887631', 'tblTempUsageDetail_20' ) end [2025-04-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887631', 'tblTempVendorCDR_20' ) start [2025-04-11 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887631', 'tblTempVendorCDR_20' ) end [2025-04-11 23:38:18] Production.INFO: ProcessCDR(1,14887631,1,1,2) [2025-04-11 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887631', 'tblTempUsageDetail_20' ) start [2025-04-11 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887631', 'tblTempUsageDetail_20' ) end [2025-04-11 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:38:23] Production.INFO: ==29937== Releasing lock... [2025-04-11 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:38:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:39:05 [end_date_ymd] => 2025-04-11 23:39:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:39:05' and `end` < '2025-04-11 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-04-11 23:39:18] Production.INFO: count ==1433 [2025-04-11 23:39:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:39:05 - End Time 2025-04-11 23:39:05 [2025-04-11 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887636', 'tblTempUsageDetail_20' ) start [2025-04-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887636', 'tblTempUsageDetail_20' ) end [2025-04-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887636', 'tblTempVendorCDR_20' ) start [2025-04-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887636', 'tblTempVendorCDR_20' ) end [2025-04-11 23:39:19] Production.INFO: ProcessCDR(1,14887636,1,1,2) [2025-04-11 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887636', 'tblTempUsageDetail_20' ) start [2025-04-11 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887636', 'tblTempUsageDetail_20' ) end [2025-04-11 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:39:23] Production.INFO: ==30033== Releasing lock... [2025-04-11 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:39:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:40:06 [end_date_ymd] => 2025-04-11 23:40:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:40:06' and `end` < '2025-04-11 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-04-11 23:40:19] Production.INFO: count ==1424 [2025-04-11 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:40:06 - End Time 2025-04-11 23:40:06 [2025-04-11 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887642', 'tblTempUsageDetail_20' ) start [2025-04-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887642', 'tblTempUsageDetail_20' ) end [2025-04-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887642', 'tblTempVendorCDR_20' ) start [2025-04-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887642', 'tblTempVendorCDR_20' ) end [2025-04-11 23:40:19] Production.INFO: ProcessCDR(1,14887642,1,1,2) [2025-04-11 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887642', 'tblTempUsageDetail_20' ) start [2025-04-11 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887642', 'tblTempUsageDetail_20' ) end [2025-04-11 23:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:40:24] Production.INFO: ==30126== Releasing lock... [2025-04-11 23:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:40:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-11 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:41:05 [end_date_ymd] => 2025-04-11 23:41:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:41:05' and `end` < '2025-04-11 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-04-11 23:41:18] Production.INFO: count ==1364 [2025-04-11 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:41:05 - End Time 2025-04-11 23:41:05 [2025-04-11 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887647', 'tblTempUsageDetail_20' ) start [2025-04-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887647', 'tblTempUsageDetail_20' ) end [2025-04-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887647', 'tblTempVendorCDR_20' ) start [2025-04-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887647', 'tblTempVendorCDR_20' ) end [2025-04-11 23:41:18] Production.INFO: ProcessCDR(1,14887647,1,1,2) [2025-04-11 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887647', 'tblTempUsageDetail_20' ) start [2025-04-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887647', 'tblTempUsageDetail_20' ) end [2025-04-11 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:41:22] Production.INFO: ==30214== Releasing lock... [2025-04-11 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:41:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-11 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:42:05 [end_date_ymd] => 2025-04-11 23:42:05 [RateCDR] => 1 ) [2025-04-11 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:42:05' and `end` < '2025-04-11 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:42:18] Production.INFO: count ==1360 [2025-04-11 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:42:05 - End Time 2025-04-11 23:42:05 [2025-04-11 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887652', 'tblTempUsageDetail_20' ) start [2025-04-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887652', 'tblTempUsageDetail_20' ) end [2025-04-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887652', 'tblTempVendorCDR_20' ) start [2025-04-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887652', 'tblTempVendorCDR_20' ) end [2025-04-11 23:42:18] Production.INFO: ProcessCDR(1,14887652,1,1,2) [2025-04-11 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887652', 'tblTempUsageDetail_20' ) start [2025-04-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887652', 'tblTempUsageDetail_20' ) end [2025-04-11 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:42:21] Production.INFO: ==30300== Releasing lock... [2025-04-11 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:42:21] Production.INFO: 39 MB #Memory Used# [2025-04-11 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:43:05 [end_date_ymd] => 2025-04-11 23:43:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:43:05' and `end` < '2025-04-11 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-04-11 23:43:18] Production.INFO: count ==1360 [2025-04-11 23:43:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:43:05 - End Time 2025-04-11 23:43:05 [2025-04-11 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887657', 'tblTempUsageDetail_20' ) start [2025-04-11 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887657', 'tblTempUsageDetail_20' ) end [2025-04-11 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887657', 'tblTempVendorCDR_20' ) start [2025-04-11 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887657', 'tblTempVendorCDR_20' ) end [2025-04-11 23:43:19] Production.INFO: ProcessCDR(1,14887657,1,1,2) [2025-04-11 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887657', 'tblTempUsageDetail_20' ) start [2025-04-11 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887657', 'tblTempUsageDetail_20' ) end [2025-04-11 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:43:22] Production.INFO: ==30387== Releasing lock... [2025-04-11 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:43:22] Production.INFO: 39 MB #Memory Used# [2025-04-11 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:44:04 [end_date_ymd] => 2025-04-11 23:44:04 [RateCDR] => 1 ) [2025-04-11 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:44:04' and `end` < '2025-04-11 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:44:18] Production.INFO: count ==1360 [2025-04-11 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:44:04 - End Time 2025-04-11 23:44:04 [2025-04-11 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887662', 'tblTempUsageDetail_20' ) start [2025-04-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887662', 'tblTempUsageDetail_20' ) end [2025-04-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887662', 'tblTempVendorCDR_20' ) start [2025-04-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887662', 'tblTempVendorCDR_20' ) end [2025-04-11 23:44:18] Production.INFO: ProcessCDR(1,14887662,1,1,2) [2025-04-11 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887662', 'tblTempUsageDetail_20' ) start [2025-04-11 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887662', 'tblTempUsageDetail_20' ) end [2025-04-11 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:44:21] Production.INFO: ==30474== Releasing lock... [2025-04-11 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:44:21] Production.INFO: 39 MB #Memory Used# [2025-04-11 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:45:05 [end_date_ymd] => 2025-04-11 23:45:05 [RateCDR] => 1 ) [2025-04-11 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:45:05' and `end` < '2025-04-11 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:45:18] Production.INFO: count ==1359 [2025-04-11 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:45:05 - End Time 2025-04-11 23:45:05 [2025-04-11 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887667', 'tblTempUsageDetail_20' ) start [2025-04-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887667', 'tblTempUsageDetail_20' ) end [2025-04-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887667', 'tblTempVendorCDR_20' ) start [2025-04-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887667', 'tblTempVendorCDR_20' ) end [2025-04-11 23:45:18] Production.INFO: ProcessCDR(1,14887667,1,1,2) [2025-04-11 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887667', 'tblTempUsageDetail_20' ) start [2025-04-11 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887667', 'tblTempUsageDetail_20' ) end [2025-04-11 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:45:23] Production.INFO: ==30564== Releasing lock... [2025-04-11 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:45:23] Production.INFO: 39 MB #Memory Used# [2025-04-11 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:46:05 [end_date_ymd] => 2025-04-11 23:46:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:46:05' and `end` < '2025-04-11 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-04-11 23:46:18] Production.INFO: count ==1359 [2025-04-11 23:46:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:46:05 - End Time 2025-04-11 23:46:05 [2025-04-11 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887672', 'tblTempUsageDetail_20' ) start [2025-04-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887672', 'tblTempUsageDetail_20' ) end [2025-04-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887672', 'tblTempVendorCDR_20' ) start [2025-04-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887672', 'tblTempVendorCDR_20' ) end [2025-04-11 23:46:19] Production.INFO: ProcessCDR(1,14887672,1,1,2) [2025-04-11 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887672', 'tblTempUsageDetail_20' ) start [2025-04-11 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887672', 'tblTempUsageDetail_20' ) end [2025-04-11 23:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:46:24] Production.INFO: ==30649== Releasing lock... [2025-04-11 23:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:47:04 [end_date_ymd] => 2025-04-11 23:47:04 [RateCDR] => 1 ) [2025-04-11 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:47:04' and `end` < '2025-04-11 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:47:17] Production.INFO: count ==1359 [2025-04-11 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:47:04 - End Time 2025-04-11 23:47:04 [2025-04-11 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887677', 'tblTempUsageDetail_20' ) start [2025-04-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887677', 'tblTempUsageDetail_20' ) end [2025-04-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887677', 'tblTempVendorCDR_20' ) start [2025-04-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887677', 'tblTempVendorCDR_20' ) end [2025-04-11 23:47:18] Production.INFO: ProcessCDR(1,14887677,1,1,2) [2025-04-11 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887677', 'tblTempUsageDetail_20' ) start [2025-04-11 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887677', 'tblTempUsageDetail_20' ) end [2025-04-11 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:47:21] Production.INFO: ==30735== Releasing lock... [2025-04-11 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:47:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:48:06 [end_date_ymd] => 2025-04-11 23:48:06 [RateCDR] => 1 ) [2025-04-11 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:48:06' and `end` < '2025-04-11 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:48:19] Production.INFO: count ==1359 [2025-04-11 23:48:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:48:06 - End Time 2025-04-11 23:48:06 [2025-04-11 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887682', 'tblTempUsageDetail_20' ) start [2025-04-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887682', 'tblTempUsageDetail_20' ) end [2025-04-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887682', 'tblTempVendorCDR_20' ) start [2025-04-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887682', 'tblTempVendorCDR_20' ) end [2025-04-11 23:48:19] Production.INFO: ProcessCDR(1,14887682,1,1,2) [2025-04-11 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887682', 'tblTempUsageDetail_20' ) start [2025-04-11 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887682', 'tblTempUsageDetail_20' ) end [2025-04-11 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:48:22] Production.INFO: ==30820== Releasing lock... [2025-04-11 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:48:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:49:05 [end_date_ymd] => 2025-04-11 23:49:05 [RateCDR] => 1 ) [2025-04-11 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:49:05' and `end` < '2025-04-11 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:49:18] Production.INFO: count ==1358 [2025-04-11 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:49:05 - End Time 2025-04-11 23:49:05 [2025-04-11 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887687', 'tblTempUsageDetail_20' ) start [2025-04-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887687', 'tblTempUsageDetail_20' ) end [2025-04-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887687', 'tblTempVendorCDR_20' ) start [2025-04-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887687', 'tblTempVendorCDR_20' ) end [2025-04-11 23:49:18] Production.INFO: ProcessCDR(1,14887687,1,1,2) [2025-04-11 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887687', 'tblTempUsageDetail_20' ) start [2025-04-11 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887687', 'tblTempUsageDetail_20' ) end [2025-04-11 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:49:21] Production.INFO: ==30912== Releasing lock... [2025-04-11 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:49:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:50:06 [end_date_ymd] => 2025-04-11 23:50:06 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:50:06' and `end` < '2025-04-11 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-04-11 23:50:19] Production.INFO: count ==1359 [2025-04-11 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:50:06 - End Time 2025-04-11 23:50:06 [2025-04-11 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887692', 'tblTempUsageDetail_20' ) start [2025-04-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887692', 'tblTempUsageDetail_20' ) end [2025-04-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887692', 'tblTempVendorCDR_20' ) start [2025-04-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887692', 'tblTempVendorCDR_20' ) end [2025-04-11 23:50:19] Production.INFO: ProcessCDR(1,14887692,1,1,2) [2025-04-11 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887692', 'tblTempUsageDetail_20' ) start [2025-04-11 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887692', 'tblTempUsageDetail_20' ) end [2025-04-11 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:50:24] Production.INFO: ==30998== Releasing lock... [2025-04-11 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:50:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-11 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:51:05 [end_date_ymd] => 2025-04-11 23:51:05 [RateCDR] => 1 ) [2025-04-11 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 20:51:05' and `end` < '2025-04-11 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-11 23:51:18] Production.INFO: count ==1303 [2025-04-11 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:51:05 - End Time 2025-04-11 23:51:05 [2025-04-11 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887698', 'tblTempUsageDetail_20' ) start [2025-04-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887698', 'tblTempUsageDetail_20' ) end [2025-04-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887698', 'tblTempVendorCDR_20' ) start [2025-04-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887698', 'tblTempVendorCDR_20' ) end [2025-04-11 23:51:18] Production.INFO: ProcessCDR(1,14887698,1,1,2) [2025-04-11 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887698', 'tblTempUsageDetail_20' ) start [2025-04-11 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887698', 'tblTempUsageDetail_20' ) end [2025-04-11 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:51:22] Production.INFO: ==31127== Releasing lock... [2025-04-11 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-11 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:52:05 [end_date_ymd] => 2025-04-11 23:52:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:52:05' and `end` < '2025-04-11 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-04-11 23:52:18] Production.INFO: count ==1302 [2025-04-11 23:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:52:05 - End Time 2025-04-11 23:52:05 [2025-04-11 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887703', 'tblTempUsageDetail_20' ) start [2025-04-11 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887703', 'tblTempUsageDetail_20' ) end [2025-04-11 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887703', 'tblTempVendorCDR_20' ) start [2025-04-11 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887703', 'tblTempVendorCDR_20' ) end [2025-04-11 23:52:19] Production.INFO: ProcessCDR(1,14887703,1,1,2) [2025-04-11 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887703', 'tblTempUsageDetail_20' ) start [2025-04-11 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887703', 'tblTempUsageDetail_20' ) end [2025-04-11 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:52:22] Production.INFO: ==31213== Releasing lock... [2025-04-11 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:52:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-11 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:53:05 [end_date_ymd] => 2025-04-11 23:53:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:53:05' and `end` < '2025-04-11 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-04-11 23:53:18] Production.INFO: count ==1301 [2025-04-11 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:53:05 - End Time 2025-04-11 23:53:05 [2025-04-11 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887708', 'tblTempUsageDetail_20' ) start [2025-04-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887708', 'tblTempUsageDetail_20' ) end [2025-04-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887708', 'tblTempVendorCDR_20' ) start [2025-04-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887708', 'tblTempVendorCDR_20' ) end [2025-04-11 23:53:18] Production.INFO: ProcessCDR(1,14887708,1,1,2) [2025-04-11 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887708', 'tblTempUsageDetail_20' ) start [2025-04-11 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887708', 'tblTempUsageDetail_20' ) end [2025-04-11 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:53:22] Production.INFO: ==31302== Releasing lock... [2025-04-11 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:54:05 [end_date_ymd] => 2025-04-11 23:54:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:54:05' and `end` < '2025-04-11 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-04-11 23:54:18] Production.INFO: count ==1299 [2025-04-11 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:54:05 - End Time 2025-04-11 23:54:05 [2025-04-11 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887713', 'tblTempUsageDetail_20' ) start [2025-04-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887713', 'tblTempUsageDetail_20' ) end [2025-04-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887713', 'tblTempVendorCDR_20' ) start [2025-04-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887713', 'tblTempVendorCDR_20' ) end [2025-04-11 23:54:18] Production.INFO: ProcessCDR(1,14887713,1,1,2) [2025-04-11 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887713', 'tblTempUsageDetail_20' ) start [2025-04-11 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887713', 'tblTempUsageDetail_20' ) end [2025-04-11 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:54:23] Production.INFO: ==31394== Releasing lock... [2025-04-11 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:54:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-11 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:55:06 [end_date_ymd] => 2025-04-11 23:55:06 [RateCDR] => 1 ) [2025-04-11 23: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-04-11 20:55:06' and `end` < '2025-04-11 23: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-04-11 23:55:19] Production.INFO: count ==1299 [2025-04-11 23:55:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:55:06 - End Time 2025-04-11 23:55:06 [2025-04-11 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887718', 'tblTempUsageDetail_20' ) start [2025-04-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887718', 'tblTempUsageDetail_20' ) end [2025-04-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887718', 'tblTempVendorCDR_20' ) start [2025-04-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887718', 'tblTempVendorCDR_20' ) end [2025-04-11 23:55:19] Production.INFO: ProcessCDR(1,14887718,1,1,2) [2025-04-11 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887718', 'tblTempUsageDetail_20' ) start [2025-04-11 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887718', 'tblTempUsageDetail_20' ) end [2025-04-11 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:55:22] Production.INFO: ==31481== Releasing lock... [2025-04-11 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:55:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-11 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:56:05 [end_date_ymd] => 2025-04-11 23:56:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:56:05' and `end` < '2025-04-11 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-04-11 23:56:18] Production.INFO: count ==1301 [2025-04-11 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:56:05 - End Time 2025-04-11 23:56:05 [2025-04-11 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887723', 'tblTempUsageDetail_20' ) start [2025-04-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887723', 'tblTempUsageDetail_20' ) end [2025-04-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887723', 'tblTempVendorCDR_20' ) start [2025-04-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887723', 'tblTempVendorCDR_20' ) end [2025-04-11 23:56:18] Production.INFO: ProcessCDR(1,14887723,1,1,2) [2025-04-11 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887723', 'tblTempUsageDetail_20' ) start [2025-04-11 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887723', 'tblTempUsageDetail_20' ) end [2025-04-11 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:56:22] Production.INFO: ==31565== Releasing lock... [2025-04-11 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-11 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:57:06 [end_date_ymd] => 2025-04-11 23:57:06 [RateCDR] => 1 ) [2025-04-11 23: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-04-11 20:57:06' and `end` < '2025-04-11 23: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-04-11 23:57:18] Production.INFO: count ==1303 [2025-04-11 23:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:57:06 - End Time 2025-04-11 23:57:06 [2025-04-11 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887728', 'tblTempUsageDetail_20' ) start [2025-04-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887728', 'tblTempUsageDetail_20' ) end [2025-04-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887728', 'tblTempVendorCDR_20' ) start [2025-04-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887728', 'tblTempVendorCDR_20' ) end [2025-04-11 23:57:19] Production.INFO: ProcessCDR(1,14887728,1,1,2) [2025-04-11 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887728', 'tblTempUsageDetail_20' ) start [2025-04-11 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887728', 'tblTempUsageDetail_20' ) end [2025-04-11 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:57:23] Production.INFO: ==31645== Releasing lock... [2025-04-11 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:57:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:58:05 [end_date_ymd] => 2025-04-11 23:58:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:58:05' and `end` < '2025-04-11 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-04-11 23:58:17] Production.INFO: count ==1303 [2025-04-11 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 20:58:05 - End Time 2025-04-11 23:58:05 [2025-04-11 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887733', 'tblTempUsageDetail_20' ) start [2025-04-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887733', 'tblTempUsageDetail_20' ) end [2025-04-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887733', 'tblTempVendorCDR_20' ) start [2025-04-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887733', 'tblTempVendorCDR_20' ) end [2025-04-11 23:58:18] Production.INFO: ProcessCDR(1,14887733,1,1,2) [2025-04-11 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887733', 'tblTempUsageDetail_20' ) start [2025-04-11 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887733', 'tblTempUsageDetail_20' ) end [2025-04-11 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:58:21] Production.INFO: ==31724== Releasing lock... [2025-04-11 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:58:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-11 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 20:59:05 [end_date_ymd] => 2025-04-11 23:59:05 [RateCDR] => 1 ) [2025-04-11 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-04-11 20:59:05' and `end` < '2025-04-11 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-04-11 23:59:18] Production.INFO: count ==1302 [2025-04-11 23:59:19] Production.ERROR: pbx CDR StartTime 2025-04-11 20:59:05 - End Time 2025-04-11 23:59:05 [2025-04-11 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887738', 'tblTempUsageDetail_20' ) start [2025-04-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887738', 'tblTempUsageDetail_20' ) end [2025-04-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887738', 'tblTempVendorCDR_20' ) start [2025-04-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887738', 'tblTempVendorCDR_20' ) end [2025-04-11 23:59:19] Production.INFO: ProcessCDR(1,14887738,1,1,2) [2025-04-11 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-11 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-11 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887738', 'tblTempUsageDetail_20' ) start [2025-04-11 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887738', 'tblTempUsageDetail_20' ) end [2025-04-11 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-11 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-11 23:59:22] Production.INFO: ==31803== Releasing lock... [2025-04-11 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-11 23:59:22] Production.INFO: 38.25 MB #Memory Used#